Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-10017

Project template generated by QDS seems not compatible with the latest QTP001 policy

    XMLWordPrintable

Details

    • Windows
    • QDS Berlin - 2023 Week 23/24, QDS Berlin - 2023 Week 25/26

    Description

      Hi,

      When using the template generated by QDS in Qt Creator with Qt 6.5: I have the following message when running CMake:

      C:\Qt\6.5.0\mingw_64\lib\cmake\Qt6Core\Qt6CoreMacros.cmake:2690: warning: Qt policy QTP0001 is not set: ':/qt/qml/' is the default resource prefix for QML modules.  Check https://doc.qt.io/qt-6/qt-cmake-policy-qtp0001.html for policy details.  Use the qt_policy command to set the policy and suppress this warning. C:/Qt/6.5.0/mingw_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:445 (qt_internal_setup_policy) imports/UntitledProject/CMakeLists.txt:10 (qt6_add_qml_module)

       

      If I add qt_standard_project_setup(REQUIRES 6.5) to remove the message, the application does not work anymore:

       

      QQmlApplicationEngine failed to load component
      qrc:Main/main.qml: No such file or directory

      Attachments

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

        Activity

          People

            knud Knud Dollereder
            pijaouen Pierre Jaouen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes