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

simon.turvey at nokia.com simon.turvey at nokia.com
Wed Sep 22 12:26:43 CEST 2010


Wow. I just checked out that error report. Looks like it's generic and not constrained to the Binding element.

Thanks for the confirming the bug.

From: Brasser Michael (Nokia-MS-Qt/Brisbane)
Sent: 22 September 2010 06:18
To: Turvey Simon (Nokia-MS/London)
Cc: qt-qml at trolltech.com
Subject: Re: [Qt-qml] Cannot assign list to 'value' property in Binding

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/4deea97c/attachment.html 


More information about the Qt-qml mailing list