How can I use QQC1 module with Qt6?
-
Hello,
I hope to use Menu in QQC1.
According to the description, in QQC2, Menu is Item-based popup and I cannot popup a menu without restricting within window boundaries. (https://doc.qt.io/qt-5/qtquickcontrols2-differences.html)
Now I am using CMake to build a project, and just tried to load QQC1 but failed.
I've got an CMake Error like "The INTERFACE_QT_MAJOR_VERSION property of "Qt5::Core" does not agree with the value of QT_MAJOR_VERSION already determined for "project_name"."Following is a part of my CMakeLists.txt contents.
find_package(Qt6
COMPONENTS
Core
Gui
Quick
Qml
QuickControls2
REQUIRED
)
find_package(Qt5
COMPONENTS
QuickControls
REQUIRED
)Am I using it wrong..?
How could I resolve the error?
(I installed Qt5 with specifying Qt5_DIR and there seems to be no problem with finding Qt5 directory.)Help me plz,
Thank you -
Hi,
You can't mix and match two different major versions of Qt in the same application like that.
-
That's correct.