2011-08-21 34 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

沒有更好的解決方案。我也可以寫更多的動畫。