Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 6.2.3, 6.3.0 Beta2
-
Fix Version/s: 6.2.5, 6.3.0 Beta3, 6.4.0 Beta1
-
Component/s: QML: Compiler
-
Labels:None
-
Commits:1e722f5e8e (qt/qtdeclarative/dev) 1e722f5e8e (qt/tqtc-qtdeclarative/dev) b386b6491d (qt/qtdeclarative/6.3) d864d15a66 (qt/qtdeclarative/6.2) d864d15a66 (qt/tqtc-qtdeclarative/6.2) b386b6491d (qt/tqtc-qtdeclarative/6.3)
Description
There is a lookup for a property of QQmlDelegateModelAttached in there. QQmlDelegateModelAttached has a dynamic meta object, but also some regular properties. We don't see the dynamic meta object at compile time, but at run time we cannot create a QQmlPropertyCache for the type. This leads to a type error being thrown from the lookup.
property int visualIndex: DelegateModel.itemsIndex
itemsIndex is one of the regular properties. Therefore the compiler assumes it can use a lookup for it.