No, QWidget is not thread-safe as well. You musn't call any of QWidget (or descendant) methods from within a worker thread. If you want to transfer data between the worker thread and the main thread, you have to use either events or signals.
No, QWidget is not thread-safe as well. You musn't call any of QWidget (or descendant) methods from within a worker thread. If you want to transfer data between the worker thread and the main thread, you have to use either events or signals.
So you mean what i should do is to setup the thread to emit a signal when inside run() of the QThread Class and connect it back to a slot of the parent class and from that access the data?
schan117
follow this example ... it suits exact requirement for u on QThread
http://doc.trolltech.com/4.0/network...uneclient.html
"Behind every great fortune lies a crime" - Balzac
Bookmarks