atomic
30th January 2014, 21:00
Hi, i am new user and my english is not a best so please for your understanding ;)
I have a few QToolButton in QToolBar which animates with QPropertAnimation. Something like this
animation_enabled->setTargetObject( button );
animation_enabled->setPropertyName( "pos" );
animation_enabled->setDuration( 100 );
animation_enabled->setEndValue( QPoint( button->pos().x(), animation_pos_end ) );
animation_enabled->start();
the problem is that when the animation is running and i change size of the main window my animation changing positions. Why it happens and what i am doing wrong?
9993
9994
I have a few QToolButton in QToolBar which animates with QPropertAnimation. Something like this
animation_enabled->setTargetObject( button );
animation_enabled->setPropertyName( "pos" );
animation_enabled->setDuration( 100 );
animation_enabled->setEndValue( QPoint( button->pos().x(), animation_pos_end ) );
animation_enabled->start();
the problem is that when the animation is running and i change size of the main window my animation changing positions. Why it happens and what i am doing wrong?
9993
9994