Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
Qt Creator 8.0.2, Qt Creator 9.0.0, Qt Creator 9.0.1
-
Mac (M1 Apple Silicon), macOS 12.6, Apple clang version 13.1.6 (clang-1316.0.21.2.5), Qt Creator 9.0.0
Description
The following QML shows up with lint errors in Qt Creator:
- instance of `Component` gets M300 Unknown component error
- instance of `QtObject` gets M300 Unknown component error
- property `Component` gets M16 Invalid property name
In Qt 6.3.2, everything looks and works fine even if:
- CMake find_package omits Qml but includes Quick
- CMake target_link_libraries omits Qt6::Qml but includes Qt6::Quick
- QML file omits `import QtQml` but includes `import QtQuick`
In Qt 6.4.1, omitting or including the above, works fine but displays the lint errors.
Minimal project attached, along with a screenshot.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-28287 Code model cannot recognize QtObject
- Closed