Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24206

New project wizard with Qt6 and cmake adds 'Qt5' to CMakeLists.txt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.13.0-beta1
    • Qt Creator 4.12.3
    • Qt Creator 4.12.3
      Based on Qt 5.14.2 (MSVC 2017, 32 bit)
      Built on Jun 16 2020 01:19:17
      From revision 48e46132e3
    • Windows

    Description

      Install Qt6 snapshot binaries.

      Launch QtCreator and create new project with the wizard (Application (Qt) - Qt Widgets Application used in test), select CMake for build type and Qt6 MSVC as kit.

      AFAIK also the CMAKE_PREFIX_PATH needs to be set manually in build settings.

      See the CMakeLists.txt, it has:

      find_package(Qt5 COMPONENTS Widgets REQUIRED)
      ...
      target_link_libraries(test PRIVATE Qt5::Widgets)
      

      And the configure (? ) will fail, but when editing the 'Qt5'->'Qt6' build works and app can be launched.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes