How do I change the text of a PushButton with an action that has no relation to what the button does?
Basically, I want the button to be pressed, some routines to run and if one of them does something right then the text on the button should change.

I thought that just button.setText(qstring) will do the trick but it doesn't. I've tried following it up with update, repaint, paintEvent and a million other things I've found with Google searches but it doesn't work. The only thing I've thought of but haven't tried was to destroy and reload the entire UI.

I could really use some help on this. Thanks.