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