Rotating a push button
-
The example here http://doc.qt.io/qt-5/qpropertyanimation.html shows how to modify properties. In your case instead of moving it you will be changing the QRect from a new location to a new size.
In that case though it won't be a rotation but more of a morph from a horizontal size to a vertical one.
If you want an actual rotation you will probably need to write a custom RotationAnimation class to handle the actual rotation using a pathing animation.
Or you could just use QML for your mobile GUI (that's what it was really made for), and then use http://doc.qt.io/qt-5/qml-qtquick-rotationanimation.html.
-
@JoMath hi,
maybe check out the official transformation example
you should be able to make a roatated QPushbutton out of it. However I'm not sure if you can tie a QpPropertyAnimation to it. (At least with QWidgets)