PDA

View Full Version : QThread SIGNALS



Max123
29th March 2010, 12:18
Hi,
whether the Thread is running or not I want to make some changes in my GUI. I think its the best way to do this with SIGNALS. When the Thread starts it emits the SIGNAL started() that's clear.

But to terminate the Thread in my program there are two options. At first the run method is leaven. What SIGNAL would be emit there? And the second option is that the Thread is stopped by using thread->exit() in the GUI. What SIGNAL is emitted here?

Thanks

Lykurg
29th March 2010, 13:17
Do you recognize the documentation which comes with Qt? Look at QThread under singnals: QThread::finished(), QThread::started() and QThread::terminated().