# Using other Qt modules in loadable extension

**URL:** <https://discourse.slicer.org/t/using-other-qt-modules-in-loadable-extension/17250>\
**Category:** Development\
**Created:** [April 22, 2021, 12:07pm UTC](https://discourse.slicer.org/t/using-other-qt-modules-in-loadable-extension/17250 "2021-04-22T12:07:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LorenzE](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LorenzE](https://discourse.slicer.org/u/LorenzE)\
**Post date:** [April 22, 2021, 12:07pm UTC](https://discourse.slicer.org/t/using-other-qt-modules-in-loadable-extension/17250/1 "2021-04-22T12:07:49Z")

</div>

I am trying to include the QtConcurrent module into my loadable extension. So far I tried to set `find_package(Qt5 COMPONENTS Concurrent REQUIRED)` in my module’s CMakeLists file. I know that Slicer does not use this module. I saw that the qt modules used by Slicer are included in `\S4\CMake\SlicerBlockFindQtAndCheckVersion.cmake`. I do not want to change anything in the Slicer build though, since only the extension is supposed to depend on QtConcurrent. Any ideas on how to achieve that?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 22, 2021, 2:42pm UTC](https://discourse.slicer.org/t/using-other-qt-modules-in-loadable-extension/17250/2 "2021-04-22T14:42:18Z")

</div>

You might be able to add a binary that matches Slicer’s Qt but that could be difficult.

I wonder if we should enable these. I had thought the were available, since I know we had experimented with QFuture and related classes in CTK and elsewhere.

C++11 threads should be available if you want to use those.

---

<div class="post-metadata">

**Author:** ![LorenzE](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LorenzE](https://discourse.slicer.org/u/LorenzE)\
**Post date:** [April 26, 2021, 12:43pm UTC](https://discourse.slicer.org/t/using-other-qt-modules-in-loadable-extension/17250/3 "2021-04-26T12:43:51Z")

</div>

That would be great if the concurrent module could be included in the slicer build directly.
