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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.12.3
    • Fix Version/s: Qt Creator 4.13.0-beta1
    • Labels:
    • Environment:
      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
    • Platform/s:
      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

        For Gerrit Dashboard: QTCREATORBUG-24206
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            hunger Tobias Hunger
            Reporter:
            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