Originally Posted by nix Hi, I think your problem comes from following line : Qt Code: Switch view //the gui thread should wait here until the worker has finishedm_background->wait(); //the gui thread should wait here until the worker has finished m_background->wait(); To copy to clipboard, switch view to plain text mode It seems you want block the Gui thread during the processing. But how your progressbar should be managed and refreshed if the GUI thread is blocked ?? You don't have to block the GUI thread, use QThread::finished() signal for manage post-treatement & cleaning once the processing is completed. 'hope it will help you. Yes! That was the hint I needed! Thanks a lot!
//the gui thread should wait here until the worker has finishedm_background->wait();
//the gui thread should wait here until the worker has finished m_background->wait();
Forum Rules
Bookmarks