Unsolved Rotate Image of QPushButton
-
Hi everyone. I wonder if there is a possibility that I can rotate my pushbutton's background image everytime I move my cursor on it.
-
I would take a look at this. That should be what you're looking for in theory to handle when the cursor 'hovers' over the button. Instead, load a rotated version of the same image.
Alternatively, there may be more elegant approaches. Hope this helps!
-
@Carmoneer I mean it's a animation or movement. Not just only changing background image in the hover stylesheet.
-
@Anh-Phan
hi
you can create your own button and use the
http://doc.qt.io/qt-5/animation-overview.html
for the animation.I also had good results using gif animation and a QLabel child.
-
@mrjj Yup!! This is exactly what i need. Thank u alot, bro.