[Qt-qml] Cannot assign list to 'value' property in Binding

michael.brasser at nokia.com michael.brasser at nokia.com
Wed Sep 22 07:18:22 CEST 2010


On 21/09/2010, at 8:43 PM, ext simon.turvey at nokia.com<mailto:simon.turvey at nokia.com> wrote:
The following assignment to ‘value’ does not work. Only the final Rotation in the list seems to get assigned to the target property. Known issue? Or doing something silly?!

Binding {
target: albumImage
property: "transform"
value: [
Rotation {
axis.x: 1; axis.y: 0; axis.z: 0
angle: 180
origin.y: picColumn.picSize*1.32
},
Scale {
xScale: picColumn.sizeFactor; yScale: picColumn.sizeFactor;
origin.x: picColumn.picSize/2; origin.y: picColumn.picSize
},
Translate {
x: -picColumn.width/2 + picColumn.deltaX
y: -coverflow.height*0.1 -picColumn.place*picColumn.place*20
},
Rotation {
angle: picColumn.rotateY
origin.x: picColumn.picSize/2; origin.y: picColumn.picSize/2
axis.x: 0; axis.y: 1; axis.z: 0
}
]
when: picColumn.visible
}

Hi Simon,

It looks like the engine is incorrectly interpreting the assignment of the list of transforms to "value" as 4 individual object assignments (each effectively overriding the previous). I've created http://bugreports.qt.nokia.com/browse/QTBUG-13798 for this issue.

Regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100922/2cc58d2e/attachment.html 


More information about the Qt-qml mailing list