[Qt-qml] problem with transitions

Gianni Valdambrini aleister at develer.com
Tue Apr 20 12:06:31 CEST 2010


Hi all,
I wrote a custom element that looks like a text element with a slide
effect on the text change.
The problem is in the transition. The element works in this way:
there are 2 text elements, one placed on the left and the other on the
right of the element. The latter has the same left and right anchor in
order to hide the element.
When the text changes the transition expands the text on the right
changing its left anchor and shrinks the left one.
Everything seems to work fine if I disable the transition, with the text
on the right not visibile. Using the old version of Qml from Qt Creator 
Qml 1.3.8 everything works fine even with transition enable (replacing 
"properties" with "matchProperties" and the easing syntax), so I cannot 
figure out what is wrong with this code.
Any help is appreciated.

Thanks,
Gianni

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SlidingText.qml
Url: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100420/35f88b87/attachment.pl 


More information about the Qt-qml mailing list