Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Support for QT6 #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CasparKielwein
Copy link

In the CMakeLists.txt add a branch to check of qt6 is available.
If it is, use that, otherwise assume QT5.

In qfsignalproxy slightly adapt call to constructor of QVariant.
QVariant(type, void*) signature has changed between QT5 and QT6.

change deprecated call to QQmlListProperty(..)

@CasparKielwein
Copy link
Author

I tried to maintain compatibility with the currently supported version by using pre-compiler switches.
I am in no way married to that solution and happy to change supported versions etc.

@OlivierLDff
Copy link
Contributor

Why don't you go with the one line find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
Like in Qt documentation: https://doc-snapshots.qt.io/qt6-dev/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions

In the CMakeLists.txt add a branch to check of qt6 is available.
If it is, use that, otherwise assume QT5.

In qfsignalproxy slightly adapt call to constructor of QVariant.
QVariant(type, void*) signature has changed between QT5 and QT6.

in qfstore adapt call to constructor of QQmlListProperty.
Signature has changed between QT5.13 and QT6
@CasparKielwein
Copy link
Author

Why don't you go with the one line find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
Like in Qt documentation: https://doc-snapshots.qt.io/qt6-dev/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions

I was not aware of this option and changed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants