Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QThread::wait() and QThread::finished()

Does QThread::wait() return (i.e., unblocks execution) after calling all the slots that were associated with QThread::finished() signal?

Thanks in advance.

like image 465
Donotalo Avatar asked Aug 06 '26 14:08

Donotalo


1 Answers

No, it may return before, during or after a slot associated with signal finished() is being executed.

This depends on the type of signal-slot connection, read about queued connections and direct connections.

like image 82
Gunther Piez Avatar answered Aug 09 '26 03:08

Gunther Piez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!