qt - QPushButton resize animation -



qt - QPushButton resize animation -

i want animate qpushbutton resize, there way know when button resized , final size can set final value animation?

thanks

quick @ qt4 documents show class qpropertyanimation can animate properties of widgets. below illustration code in qt documents shows can animate geometry , command initial , final values.

qpropertyanimation *animation = new qpropertyanimation(mywidget, "geometry"); animation->setduration(10000); animation->setstartvalue(qrect(0, 0, 100, 30)); animation->setendvalue(qrect(250, 250, 100, 30)); animation->start();

check if works you.

qt animation resize qpushbutton

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -