PDA

View Full Version : How to show a "widget" immediately?



deweyjew
31st May 2006, 10:54
hi all:
i want to show three button in a widget, such as
void MyWidget :: showWidget()
{
........
showRedButton();
........
showCyanButton();
.......
showBlackButton();
.......
}
how can i show the "red button" on the screen immediately after i call the
function "showRedButton()"?

can anyone help me? thank you very much!

wysota
31st May 2006, 12:39
By using QWidget::show()? If you really want it to be immediately, you might also want to call QApplication::processEvents().

deweyjew
31st May 2006, 12:58
i use "show()" and "repaint()",
but both of them didn't work
i really need to update the screen immediately,

thank you, i'll have a try with your suggestion!