On 02/03/2012 08:12 PM, Adriano Rezende wrote:
On Tue, Jan 24, 2012 at 9:21 AM, Harri Pasanen <ha...@mpaja.com <mailto:ha...@mpaja.com>> wrote:

    Hi,

    I found out that ParallelAnimation is not truly parallel, if I try to
    animate to objects
    moving next to one and other, like train wagons, I get overlaps.


They are parallel afaik.
Can you give a self-contained testcase?

What could be happening is some kind of pixel adjustment during the animation. The x,y,width,height values are real numbers that are rounded to an int when mapping to the display, so 1-pixel shifts could happen due that fact.


It's much more than 1-pixel, like tens of pixels. In some cases it looks like they are serialized. But it is not consistent, happens only maybe 1/10 times. Looks like some display list order
is arbitrary.

I'll see if I can get together a test case when I have time.

Btw. I've seen a similar temporal oddity with following type of code:

Piece {
    id: piece
    ...

    states: State {
        name: "moved";
PropertyChanges { target: piece; x: nX; y: nY; restoreEntryValues: false }
    }
}

The if in javascript if I have Piece A and B and do

A.state = 'moved'
B.state = 'moved'

sometimes B moves before A.


Cheers,

Harri


_______________________________________________
Qt-qml mailing list
Qt-qml@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to