ProcessEvents does not add widget to layout & display.
Unsolved
General and Desktop
-
Hey
I wish to add a QOpenGLWindow to a widget during a long process & I would like it to get initialized(initializeGL) before continuing with function. However when I try qApp::ProcessEvents() or QApplication::processEvents() it does not get added nor initialized as I need it to. How can I do it?
Regards
Dariusz -
Hi,
Are you running your long process in the main thread ?
-
In that case, you should rather move it to a separate thread.
-
@SGaist I though I cant create widgets in non main thread?
I'm simply configuring my opengl window + its scene & crating following managers after the openGl window/scene is ceated. But they dont always relate to each other so I want to force initializeGL in order to get rest generated as well.