[Interest] Rotation of an image (in a loop) is not smooth although the fps is 60
Thomas.Gietlhuber-EXT at continental-corporation.com
Thomas.Gietlhuber-EXT at continental-corporation.com
Tue Jun 26 15:34:11 CEST 2012
I tried two different possibilities.
First:
Image
{
id: media_cover
source: "../images/media_cover.png"
smooth: true
rotation: 0
transformOrigin: Item.Center
}
RotationAnimation
{
target: media_cover;
property: "rotation";
loops: Animation.Infinite;
from: 0;
to: 360;
duration: 8000
}
Second:
Image
{
id: media_cover
source: "../images/media_cover.png"
smooth: true
transform:
Rotation {
id: cover_rot
origin.x: parent.width/2
origin.y: parent.width/2
angle: 0
}
}
NumberAnimation
{
target: cover_rot;
property: "angle";
loops: Animation.Infinite;
from: 0;
to: 360;
duration: 8000
}
Both options don't work.
I tried it on windows xp, windows 7, i.MX53 with Qt 4.8 and also with Qt 5
Alpha. Everywhere with the same result.
Is it a known problem of Qt or rather someone knows a solution for this
problem.
Best regards
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120626/1cd40251/attachment.html>
More information about the Interest
mailing list