本来想用QPropertyAnimation做一个显示或者消失的动画的,结果莫名其妙会丢帧,有时候30帧,有时候10帧,结果只好自己做一个定时器来模拟动画。
qdialog做显示动画在showevent搞就可以了,但是消失动画就不能用closeevent,经过一番摸索,终于ok了。继续:
http://labisart.com/blog/index.php/Home/Index/article/aid/205
本来想用QPropertyAnimation做一个显示或者消失的动画的,结果莫名其妙会丢帧,有时候30帧,有时候10帧,结果只好自己做一个定时器来模拟动画。
qdialog做显示动画在showevent搞就可以了,但是消失动画就不能用closeevent,经过一番摸索,终于ok了。继续:
http://labisart.com/blog/index.php/Home/Index/article/aid/205