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