Details
-
Technical task
-
Resolution: Fixed
-
P2: Important
-
-
03ff348b4 (dev)
Description
We've various properties that link to unsigned values in a model. Under certain conditions, the QML processing stops when using them.
The attached minimum example compiles with these messages:
Warning: main.qml:12:42: Type "quint16" of property "count" not found. This is likely due to a missing dependency entry or a type not being exposed declaratively. readonly property int count: Message.count ^^^^^ Warning: main.qml:12:42: Could not compile binding for count: Cannot load property count from Message of Message. readonly property int count: Message.count ^^^^^ Warning: main.qml:18:40: Property "arg" not found on type "void" text: qsTr('Messages: %1').arg(win.count) ^^^ Warning: main.qml:18:40: Could not compile binding for text: Type QJSPrimitiveValue of void does not have a property arg for calling text: qsTr('Messages: %1').arg(win.count) ^^^
When running it breaks with:
qrc:/msg/main.qml:22:13: Unable to assign [undefined] to QString
Attachments
Issue Links
- is duplicated by
-
QTBUG-109111 qmlsc should support casting of various int types
- Open
- is required for
-
QTBUG-112180 Properly support enums with underlying type != int
- Closed
- split from
-
QTBUG-104129 qmllint: Type "QList<int>" of property "boo" not found
- Closed