Add an initial Qt6 support
Summary of changes:
- If Qt5 was not found, fall back to Qt6.
- Disable scene viewer in the editor when Qt6 is used (osgQt is still based on Qt4 code).
- Always use a "Grow Screen Limit" editor feature with Qt6 (otherwise it would use the Qt4).
- Drop outdated Qt5 5.12 support. It allows to use version-less CMake targets to avoid code duplication.
Tested on Windows 10 with such setup:
-
QT_VER="6.4.1"in thebefore_script.msvc.sh CI/before_script.msvc.sh -k -p Win64 -v 2022 -c RelWithDebInfo
Editor, launcher and wizard build and run with Qt6, but cells view and objects preview are disabled for now.
Possible follow-up work
- Rewrite osgQt to use Qt5/Qt6
- Update CI to use Qt6
- Test !2637 (merged) in the multiscreen setup
- Test earlier Qt6 versions (at least, 6.2 LTS)
Edited by Andrei Kortunov
