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
Post a Comment