Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 13.0.0-beta1
-
None
Description
Hi.
Types imported into namespace using import <ModuleIdentifier> [<Version.Number>] [as <Qualifier>] format cannot be used as types in property decleration (property <type> <name>: ...).
QML does exectue, but autocomplete shows properties from namespace instead of type. Also, qmllint does not check these types.
If importing into global namespace, type is properly identified. Linter still does not report errors.
Additional info:
I've rechecked and found following scenarios:
- Qt Creator does not understand namespaced typed property
- qmllint does understand namespaced typed property
- runtime does understand namespaced typed property
It seems problem is with Qt Creator.
Note for future reader, qmllint verifies only when attribute is bound to other's object attribute. In JavaScript code, type check is ignored.