-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.5
-
None
-
-
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 |
479250,3 | Detect if C++ files were added to QML_FILES and give correct advice | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
480250,2 | Detect if C++ files were added to QML_FILES and give correct advice | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |