Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How can I use QQC1 module with Qt6?
Forum Updated to NodeBB v4.3 + New Features

How can I use QQC1 module with Qt6?

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 600 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    devriang
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can't mix and match two different major versions of Qt in the same application like that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D Offline
        D Offline
        devriang
        wrote on last edited by devriang
        #3

        @SGaist Thank you for answering.
        Should I understand that there's no way to use QQC1's Menu since it's removed from Qt6?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That's correct.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          0
          • SGaistS SGaist

            That's correct.

            D Offline
            D Offline
            devriang
            wrote on last edited by
            #5

            @SGaist Thanks, :)

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved