Hi, On 23/04/2010, at 6:03 PM, ext Gianni Valdambrini wrote: [email protected]<mailto:[email protected]> 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
SlidingText.qml
Description: SlidingText.qml
test.qml
Description: test.qml
_______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
