View Full Version : Display progress on another thread
radu_d
16th October 2007, 07:54
I want to make a custom dialog for displaying the progress of an operation. The operation is made on another thread which is not the UI thread. I cannot create the widget on that thread because QT does not allow that. If I create the widget on the UI thread and I update it from the worker thread I get a crash. Do you know a good approach to this problem? I am pretty new to Qt.
Thank you.
nile.one
16th October 2007, 08:02
please, provide some code on this and details on crash?
note that you should use signal-slots connections with Qt::QueuedConnection through different threads, for example
connect(workThreadObject, SIGNAL(somethingChanged()), progressDialog, SLOT(getSomethingChanged()), Qt::QueuedConnection);
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.