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

Misguiding error message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.5.2, 6.6.0
    • 6.5
    • Build System: CMake
    • None
    • Windows
    • 933e8d440 (dev), bc8c1d00a (6.5)

      I am getting an error message like below. 

      "O:\QT\Installation\6.5.0\mingw_64\lib\cmake\Qt6Qml\Qt6QmlMacros.cmake:2239: warning: Only .qml, .js or .mjs files should be added with QML_FILES. The following files should be added with RESOURCES instead: Timeout.h Timeout.cpp O:/QT/Installation/6.5.0/mingw_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:625 (qt6_target_qml_sources) content/CMakeLists.txt:7 (qt6_add_qml_module)"

      But this should be SOURCES instead of RESOURCES.

      Documentation Regarding:
      https://doc.qt.io/qt-6/qtqml-cppintegration-definetypes.html#registering-an-instantiable-object-type

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

            semlanik Alexey Edelev
            krv Rukshan Perera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes