[Solved] Toggle Button Text
General and Desktop
2
Posts
2
Posters
820
Views
1
Watching
-
wrote on 8 Oct 2013, 20:59 last edited by
Suppose I'm making a push button that can switch back and forth between two states, say "Celsius" and "Fahrenheit". Simply setCheckable() does not do the trick. I don't even want the button to remain lowered/"on" at any time; I just want the text to change.
Tips?
-
Hi,
Add a slot reacting on the click event and test the current button text, change it accordingly and you're done.
1/2