最近遇到了麻烦,希望你能帮助我。我在一个小部件中创建了三个按钮,我使用QPropertyAnimation类来实现这三个按钮的位置移动。
例如下面的示例:
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()或任何其他好主意中绘制气泡?我关心的是ARM9板的运行速度和效果…
谢谢。
发布于 2011-08-24 22:20:21
没有更好的解决方案了。我也可以写出更多的动画。
https://stackoverflow.com/questions/7139744
复制相似问题