Add support for Qt6, keep Qt5, remove Qt4 #283
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add support for Qt6.
Details
Adding support (and using) Qt6. The officially not supported Qt4 is removed. We now support Qt5 and Qt6. Both versions are tested within the CI.
The CMake option CUKE_ENABLE_QT is replaced with either CUKE_ENABLE_QT_6 or CUKE_ENABLE_QT_5 to give better control to the user as both versions can be installed side by side. CMake version 3.16 is now needed instead of 3.9.
The CalcQt example was refactored to be a bit more modern and compatible with Qt6.
Motivation and Context
Qt6 is the current version, Qt5 is still active but Qt4 is no longer supported by the developers. This changes reflect the current state.
How Has This Been Tested?
CI builds, runs unit test and examples for Qt5 and Qt6.
CalcQt example (GUI application) tested manually.
Types of changes
Breaking change should only be the mentioned CMake options and CMake version.
Checklist: