Calling setText on a QPushButton should update the text onscreen with no need to call repaint/update
Could you make a minimal compilable example program that has the problem and post it here?
Calling setText on a QPushButton should update the text onscreen with no need to call repaint/update
Could you make a minimal compilable example program that has the problem and post it here?
Perhaps you block the event loop with a busy loop. As long as your function is executing, Qt has no chance to update the buttons.
J-P Nurmi
batileon (3rd December 2008)
Thanks!
Seems it is really related to the event loop. By adding
I solved the problem.Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks