最近用QGraphicsItemAnimation 做一个动画
主要是完成一个QGraphicsPixmapItem在QGraphicsView移动的功能
- QTimeLine *timeline = new QTimeLine(3000);
-     QGraphicsItemAnimation *animation = new QGraphicsItemAnimation;
-     animation->setItem(item);
-     animation->setTimeLine(timeline);
-     item->show();
-     timeline->start();
下到板子上跑,图片总感觉一顿一顿的,而且item的边沿有时感觉屏幕像是刷新不过来
各位有何好的建议或方法?使图片能顺畅移动