[email protected] ha scritto: > 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)
Thank you, It works as I expected :-) Gianni _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
