You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
COMP: Add CMake configuration for Qt6 alongside Qt5
Enable building CTK with either Qt 5 or Qt 6 by updating CMake
configuration and Qt component selection:
* Allow `CTK_QT_VERSION` to be 5 or 6 (defaulting to 6 when `Qt6_DIR`
is defined, otherwise 5), and validate its value.
* Use common Qt APIs for both Qt 5 and Qt 6 where available
(e.g. `qt_add_resources`, `qt_create_translation`,
`qt_wrap_cpp`, plugin setup helpers).
* Add required Qt 6 components when building with Qt 6, including
`Core5Compat`, `StateMachine`, and `OpenGLWidgets`, while preserving
existing Qt 5 behavior.
* Restrict use of deprecated or Qt 5–only components:
* Require `XmlPatterns` only with Qt 5.
* Force `CTK_USE_QTTESTING` OFF with Qt 6, since QtTesting depends on
`XmlPatterns`.
* Disable CommandLine Modules components and applications that depend
on `XmlPatterns` for Qt 6 builds.
* Disable DICOM Application Hosting plug-ins and example applications
that depend on QtSOAP for Qt 6 builds.
* Update core, widgets, VTK widgets, and test CMakeLists to link against
the appropriate Qt 5/Qt 6 targets based on `CTK_QT_VERSION`.
Co-authored-by: Stefan Dinkelacker <s.dinkelacker@dkfz-heidelberg.de>
Co-authored-by: jporcher <jean.porcherot@cea.fr>
Co-authored-by: Hans Johnson <hans-johnson@uiowa.edu>
0 commit comments