- 
    Bug 
- 
    Resolution: Done
- 
    P1: Critical 
- 
    6.2.3, 6.3.0 Beta2
- 
    None
- 
        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)
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.