Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.0
-
None
-
5dc7649f5ad7dca6e13707e827d001c3f118a6ef (qtdeclarative)
Description
If a component defines a var property with an Array or Object initializer, that property can be accessed before initialization. This causes an error stating that the property is undefined.
It is difficult to protect against this behavior in more complex use cases since the Component.onCompleted signal ordering is not defined.
We have primarily observed this behavior with var properties as indicated in the attached example, however we cannot say definitively whether this may happen with basic QML types as well.
Attachments
Issue Links
- replaces
-
QTBUG-36209 Referring to parent properties in onChildrenChanged results in TypeError
- Closed