thanks.I use QGraphicsItemAnimate.
however.
for (int i = 0; i < 2000; ++i)
{
animation->setScaleAt(i/2000,1+4*(i/2000),1+4*(i/2000));
}
I cann't see the gradual change,although, timer = new QTimeLine(2000);
timer->setFrameRange(0, 300);
for (int i = 0; i < 2000; ++i)
{
animation->setScaleAt(i/2000,1+4*(i/2000),1+4*(i/2000));
}
I cann't see the gradual change,although, timer = new QTimeLine(2000);
timer->setFrameRange(0, 300);
To copy to clipboard, switch view to plain text mode
"setScaleAt(i/2000,1+4*(i/2000),1+4*(i/2000))",this don't understand.
(sorry,i don't know how to insert code)
Bookmarks