Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.2.2
-
None
Description
With Qt5, I was using Qt5::QWindowsIntegrationPlugin to get the dll location to copy it next to my executable.
With Qt6, the same behavior does not work anymore and the only way I found to expose the Qt6::QWindowsIntegrationPlugin target to CMake seems strange to me. Is it due to something missing (bug ?) or is it the right way of doing this with Qt6/CMake ?
find_package(Qt6 COMPONENTS Gui Test REQUIRED) find_package(Qt6QWindowsIntegrationPlugin PATHS ${Qt6Gui_DIR}) # this line was not needed with Qt5 if (NOT TARGET Qt6::QWindowsIntegrationPlugin) message("Without the second find_package, I always end up here") endif()
Attachments
Issue Links
- duplicates
-
QTBUG-94066 Qt6 CMake targets for plugins missing in shared / official builds
- Closed