Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
6.5.3
-
92b107aed (dev), 18eb16e42 (6.6), c05aa74c7 (tqtc/lts-6.5)
Description
Enum types are not set during beginCreate when the component is compiled through qmlcachegen. To reproduce:
$ ./attachedpropertiesoncreate Attached property int value: QVariant(int, 42) Attached property enum value: QVariant(TestItem::EnumValue, TestItem::Value42) Attached property int value: QVariant(int, 42) Attached property enum value: QVariant(TestItem::EnumValue, TestItem::Value42)
Then try compiling the main.qml file and run:
$ qmlcachegen main.qml $ ./attachedpropertiesoncreate Attached property int value: QVariant(int, 42) Attached property enum value: QVariant(TestItem::EnumValue, TestItem::NoValue) Attached property int value: QVariant(int, 42) Attached property enum value: QVariant(TestItem::EnumValue, TestItem::Value42)
While this probably isn't a bug in itself as it eventually is set, it would be nice if the behavior matched.
Attachments
Issue Links
- relates to
-
QTBUG-114403 No way to set initial properties in QtQuick
- Reported
For Gerrit Dashboard: QTBUG-117968 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
514191,2 | Doc: Explicitly un-specify order of binding evaluation | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
515114,2 | Doc: Explicitly un-specify order of binding evaluation | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
515460,2 | Doc: Explicitly un-specify order of binding evaluation | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |