Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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.
Carmoneer last edited by Carmoneer
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.
I also had good results using gif animation and a QLabel child.
@mrjj Yup!! This is exactly what i need. Thank u alot, bro.