Sql query blocks your application so that the progress bar doesn't have a chance to update itself. You can experiment with executing the query in a thread.
Sql query blocks your application so that the progress bar doesn't have a chance to update itself. You can experiment with executing the query in a thread.
As far as I understand, at least the title should appear before going into the blocking part.
Perhaps the UI operations are cached and need some extra help. I have sometimes added a xxxxx.update() after a xxxxx.show() to make a widget visible.
After widget show add QCoreApplication::processEvents. But the best solution is to move SQL operations to another thread.
anoraxis (12th May 2011)
Ok, thanks. I will the sql part to another thread.
Another thing, in my case the title of the QProgressDialog is the only element that appears, the rest of the dialog is blank.
Bookmarks