Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何绘制多个已设置动画的气泡?(Qt4.6)_Qt_Qt4.6 - Fatal编程技术网

如何绘制多个已设置动画的气泡?(Qt4.6)

如何绘制多个已设置动画的气泡?(Qt4.6),qt,qt4.6,Qt,Qt4.6,最近遇到麻烦,希望你能帮助我。 我在一个小部件中创建了三个按钮,我使用QPropertyAnimation类来实现三个按钮移动的位置 例如这个例子: QPushButton button("Animated Button"); button.show(); QPropertyAnimation animation(&button, "geometry"); animation.setDuration(10000); animation.setKeyValueAt(0, QRe

最近遇到麻烦,希望你能帮助我。 我在一个小部件中创建了三个按钮,我使用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()中绘制气泡还是其他好主意? 我很关心ARM 9板的运行速度和效果


谢谢。

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