You are blocking the event loop so the widget can't update itself.
[wiki]Keeping the GUI Responsive[/wiki]
You are blocking the event loop so the widget can't update itself.
[wiki]Keeping the GUI Responsive[/wiki]
Thank you very much. This solved the issue.
There is only one thing I'm noticing: even if I close my QMainWindow it seems the loop is not stopped... Any idea why?
Thanks!
Right... But I also tried to call the quit() method of QApplication when I get the closeEvent of my main window, but nothing happens. Shouldn't that be sufficient?
Thanks for your help!
Seems difficult to simply close an application...
I tried with:
qApp->setQuitOnLastWindowClosed(true);
but seems this is not quitting the event loop as well... Maybe my only option is to switch to using a worker thread...
Did you read the article I pointed you to? It deals with solutions to problems such as yours.
Bookmarks