Hi
I am trying to create a transition annimation between two custom widgets.
I want the current widget to annimate out of the screen and be replaced by the incomming widget.
what I don't understand is how I can create the end pos of my transition to be the current screen width, if I switch between landscape and portrait this value will change.
currently in my QPropertyAnimation I have the end value hard coded, what i want to be able to do is set this to be the current screen width.
AnimateOut
->setStartValue
(QPoint(0,
0));
AnimateOut
->setEndValue
(QPoint(360,
0));
// really this end value should be the screen width
AnimateOut->setStartValue(QPoint(0,0));
AnimateOut->setEndValue(QPoint(360,0)); // really this end value should be the screen width
To copy to clipboard, switch view to plain text mode
is it possible do this dynamically or is there another way to do this?
thanks in advance
Guus Davidson
Bookmarks