Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.0.0
-
None
-
89cdaa901d227bed35f6c5405ce5d62f352a659c
Description
The following example fails, but works if myProp is changed to 'myProp' (with quotes)
import QtQuick 2.0 Item { property var myObjProp: { myProp: 'true' } Component.onCompleted: console.log(myObjProp.myProp) //prints 'undefined' }
The quotes are not required in an imperative code block.
Attachments
Issue Links
- relates to
-
QTBUG-23734 Empty property initializer produces unexpected result
- Closed
For Gerrit Dashboard: QTBUG-23388 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
30813,3 | Improve documentation for var properties | master | qt/qtdeclarative | Status: MERGED | +2 | 0 |