[solved] Change icon using QAnimate or QStateMachine?
-
I can't seem to get the icon on a pushbutton to change using a state machine.
I'm currently doing this:@State->assignProperty( widget.pushButton, "icon", ":/LeftArrow.png" );@
Another property for the same state is being set:
@State->assignProperty( widget.pushButton, "text", "logged in" );@
So I'm sure the state is getting transitioned to.Thanks!
-
Try to be more specific:
@State->assignProperty( widget.pushButton, "icon", QIcon(":/LeftArrow.png") );@ -
Ah ha! Thanks Franz