Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-108325

QuicControls2 documentations incorrectly suggests to link to the library

XMLWordPrintable

    • f2b22a294 (dev), 284d42044 (6.5), 041f440c6 (6.4)

      As of 6.4, this page https://doc.qt.io/qt-6/qtquickcontrols-index.html suggests:

      find_package(Qt6 REQUIRED COMPONENTS QuickControls2)
      target_link_libraries(mytarget PRIVATE Qt6::QuickControls2)
      

      Following this causes configure errors in CI on Windows at least: http://coin.intra.qt.io/coin/integration/qt/qtconnectivity/tasks/1679554497

      Replacing the dependency with just Qt6::Quick makes the build pass (the solution was taken from a mediaplayer qtmultimedia example).

      I'm not sure what is wrong here, the documentation or the cmake stuff, but something should be fixed.

      I cannot reproduce the problem locally on Linux, it only appears in CI for me.

        For Gerrit Dashboard: QTBUG-108325
        # Subject Branch Project Status CR V

            qtbuildsystem Qt Build System Team
            ievgenii.meshcheriakov Ievgenii Meshcheriakov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: