No. The application owns the Qt event loop so if it isn't started (by QApplication::exec()) then nothing happens.Do you think I am doing it right?
No. The application owns the Qt event loop so if it isn't started (by QApplication::exec()) then nothing happens.Do you think I am doing it right?
Thanks. I replaced my code from w->exec() to w->show() and to a.exec() but still the main window was not updated until I closed my Qdialog.
The solution was that I created a new thread in my program and in this thread I generated my Qdialog. This way I was able to refresh the main window while my QDialog was up. Another problem I was facing in this setup. Every time I closed a message box in QDialog, the QDialog was closed also. This was solved when I went back and replaced w->exec() to w->show() and removed a.exec(). I am not sure why.
Bookmarks