Since update() function will not repaint QT widget directly, it is just schedule a event for later process, so is it safe to call it in worker thread? My thread is a boost::thread, not QThread. I find it seems work but sometimes the widget will not receive any paintEvent. I do not know if it is because of my direct update() call.
Asked
Active
Viewed 37 times
0
-
1It seems the same question of http://stackoverflow.com/questions/6420917/using-qwidgetupdate-from-non-gui-thread – kyleqian May 16 '17 at 22:17
-
There's no reason ever to do that. When you modify the contents of the widget, the widget should automatically update itself. – Kuba hasn't forgotten Monica May 17 '17 at 13:55