PDA

View Full Version : Is it possible to force widget to update its display?



feverzsj
12th January 2010, 12:34
For example, a trace module outputs information to QTextEdit or QTableWidget. Calling somthing like trace.ouput("...") could simply output the string to the widget. But the widget doesn't update the display at the calling point. So my question is : is there any intuitive way to force the widget update the display?

wysota
12th January 2010, 12:42
The widget should update itself automatically. If it doesn't, you are probably blocking the event loop. Return control to the application or run QApplication::processEvents().