Hi everyone,

I have a project that is entirely "based on QWidget". Now, I need to add a simple animation to change automatically (based on an user interaction) the styleSheet of a sub-component (a small toolbar with 3 buttons, built in the QT Creator designer).
Since I have only 2 possible states, I though about creating a state machine to do the switching. However, on the Demo "states" (Animation Framework->States), it uses a QGraphicsView. If I would use QGraphicsView, I'd have to change almost all of my classes (yeah, bad code design, I know...).
So, my question is, can I have a QStateMachine animation in a QWidget?

thanks for any help