Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 8.0.2
-
5935536b7 (master), 90b8e482c (qds/dev)
Description
If using a Qt 6.4 kit QtObject is not recognized.
Adding an import for QtQml does not fix it.
import QtQml
Resetting the QML code model does fix it, but is inconvenient.
Types based on QtObject throughout the project are also incomplete until the code model is reset.
This can be fixed by editing the builtins.qmltypes file in the Qt 6.4 kit.
If we use the same exports as in Qt 6.3 everything does work again.
Component { file: "private/qqmlengine_p.h" name: "QObject" extension: "Object" accessSemantics: "reference" //exports: ["QML/QtObject 1.0"] exports: ["QtQml/QtObject 2.0", "QtQml/QtObject 6.0"] exportMetaObjectRevisions: [256] Property { name: "objectName" type: "QString" bindable: "bindableObjectName" read: "objectName" write: "setObjectName" notify: "objectNameChanged" index: 0 }
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-28287 Code model cannot recognize QtObject
- Closed
- relates to
-
QDS-8102 Workaround for Qt 6.4 kit and QtObject
- Closed
For Gerrit Dashboard: QTCREATORBUG-28375 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
448303,6 | qml code model: load builtins import | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
448621,1 | qml code model: load builtins import | qds/dev | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |
448622,2 | qml code model: load builtins import | qds/dev | qt-creator/qt-creator | Status: MERGED | +2 | 0 |