Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.5
-
None
Description
class PieSliceListRegistration
{
Q_GADGET
QML_FOREIGN(QList<PieSlice *>)
QML_ANONYMOUS
QML_SEQUENTIAL_CONTAINER(PieSlice *)
};
Q_PROPERTY(QList<PieSlice*> slices READ slices WRITE setSlices NOTIFY slicesChanged FINAL)
slices: [ PieSlice { color: "red" }, PieSlice { color: "black" }, PieSlice { color: "blue" } ]
Assigning an array of Objects to a property that uses a QML_SEQUENTIAL_CONTAINER fails with "Cannot assign multiple values to a singular property".
This is an extension of the chapter 5 of the extending-qml tutorial.