2011-08-21 86 views
0

最近麻烦了,希望你能帮助我。 我在一个小部件中创建了三个按钮,我使用QPropertyAnimation类来实现三个按钮移动的位置。如何绘制一些动画泡泡? (Qt4.6)

如这个例子:

QPushButton button("Animated Button"); 
button.show(); 

QPropertyAnimation animation(&button, "geometry"); 
animation.setDuration(10000); 

animation.setKeyValueAt(0, QRect(0, 0, 100, 30)); 
animation.setKeyValueAt(0.8, QRect(250, 250, 100, 30)); 
animation.setKeyValueAt(1, QRect(0, 0, 100, 30)); 

animation.start(); 

我要画若干围绕这些按钮动画气泡当它们移动。没有OpenGL和qml。在paintEvent()或其他好主意中绘制泡泡? 我很关心ARM 9板的运行速度和效果......

谢谢。

回答

0

没有更好的解决方案。我也可以写更多的动画。