pra*_*ran 3 c++ plugins animation qt gif
我正在尝试在 QGraphicsPixmapItem 中使用一个闪烁的图像。图像显示没有动画效果。下图为原图,下图为QGraphicsPixmapItem中使用该图的QGraphicsScene。任何人都可以说如何实现这一目标?
小智 5
使用此代码
QGraphicsScene scene; QLabel *gif_anim = new QLabel(); QMovie *movie = new QMovie(image); gif_anim->setMovie(movie); movie->start(); QGraphicsProxyWidget *proxy = scene.addWidget(gif_anim);
归档时间:
14 年,9 月 前
查看次数:
7855 次
最近记录:
12 年 前