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

Qt policy QTP0004 is not set: You need qmldir files for each extra directory that contains .qml files for your module

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8
    • 6.8
    • QML: Tooling
    • None
    • ff3abb650 (dev), e71f0d0a8 (dev), cd008745a (6.8), 3b11e75d4 (6.8)

    Description

      When building declarative dev:

      CMake Warning (dev) at /Users/torarne/build/qt/6.x-xcode-16/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3373 (message):
        Qt policy QTP0004 is not set: You need qmldir files for each extra
        directory that contains .qml files for your module.  Check
        https://doc.qt.io/qt-6/qt-cmake-policy-qtp0004.html for policy details.
        Use the qt_policy command to set the policy and suppress this warning.

      Call Stack (most recent call first):
        qtdeclarative/src/qml/Qt6QmlMacros.cmake:3220 (__qt_internal_setup_policy)
        qtdeclarative/src/qml/Qt6QmlMacros.cmake:891 (qt6_target_qml_sources)
        qtdeclarative/src/qml/Qt6QmlMacros.cmake:1148 (qt6_add_qml_module)
        qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/CMakeLists.txt:23 (qt_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

       

      CMake Warning (dev) at /Users/torarne/build/qt/6.x-xcode-16/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3373 (message):
        Qt policy QTP0004 is not set: You need qmldir files for each extra
        directory that contains .qml files for your module.  Check
        https://doc.qt.io/qt-6/qt-cmake-policy-qtp0004.html for policy details.
        Use the qt_policy command to set the policy and suppress this warning.

      Call Stack (most recent call first):
        qtdeclarative/src/qml/Qt6QmlMacros.cmake:3220 (__qt_internal_setup_policy)
        qtdeclarative/src/qml/Qt6QmlMacros.cmake:891 (qt6_target_qml_sources)
        qtdeclarative/src/qml/Qt6QmlBuildInternals.cmake:304 (qt6_add_qml_module)
        qtdeclarative/src/quicknativestyle/CMakeLists.txt:37 (qt_internal_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.

       

       

      Attachments

        Issue Links

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

          Activity

            People

              fabiankosmale Fabian Kosmale
              vestbo Tor Arne Vestbø
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes