[Qt-qml] problem with transitions
michael.brasser at nokia.com
michael.brasser at nokia.com
Wed Apr 28 03:49:51 CEST 2010
Hi,
On 23/04/2010, at 6:03 PM, ext Gianni Valdambrini wrote:
michael.brasser at nokia.com<mailto:michael.brasser at nokia.com> ha scritto:
I'm having a hard time trying to reproduce the bug, as the attached file only seems to be the component itself. Could you add an additional 'wrapper' file that shows how to reproduce the bug? (or have I missed something?)
My apologies. In the real program I change the text using a property
updated by the C++ part of the program. However, I rewrote that part
(with the same problems) in Javascript using a timer, and that file is
attacched. To run the example you should place the SlidingText file in a
subdirectory named qml and execute the test.qml using the qml viewer
from the Qt 4.7 stable branch.
Thanks, I was able to reproduce the issue. The attached version should work properly (the animations are changed slightly, but only so I could more clearly see what was happening). The changes included:
* clipping the text: QML items are not clipped by default, so even when the Text's width was being decreased, it was still painting all the text.
* the AnchorChanges specified in State3 were changed (they looked like perhaps they were meant as a set of changes from State2 rather than changes from the base state? In this case you can use extends)
Other notes:
- In the AnchorAnimation I can't specify the duration, so at the moment
it isn't exactly what I need.
duration and easing for AnchorAnimation were added to our development branch yesterday, so hopefully should be integrated into 4.7 soon. Note that 4.7-stable is almost 3 weeks behind 4.7 now.
Should I use the 4.7 branch instead of the stable one?
That would be my suggestion -- there have been lots of fixes since April 4 (and all changes that make it to 4.7 have to pass all existing autotests, so the quality remains high)
Regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100428/95352668/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SlidingText.qml
Type: application/octet-stream
Size: 3718 bytes
Desc: SlidingText.qml
Url : http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100428/95352668/attachment.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100428/95352668/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.qml
Type: application/octet-stream
Size: 792 bytes
Desc: test.qml
Url : http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100428/95352668/attachment-0001.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100428/95352668/attachment-0001.htm
More information about the Qt-qml
mailing list