Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does moveToThread() rewrite direct connections to queued connections?

When moving an object from one thread to another, does moveToThread() automatically rewrite existing direct connections to queued connections?

Or in other words: Does it matter if automatic connections are established before or after a call to moveToThread()?

Unfortunately neither the documentation nor the WWW had an answer on this question.

like image 537
Silicomancer Avatar asked Sep 11 '14 09:09

Silicomancer


1 Answers

According to Qt documentation: If the receiver lives in the thread that emits the signal, Qt::DirectConnection is used. Otherwise, Qt::QueuedConnection is used. The connection type is determined when the signal is emitted.

like image 70
Dmitry Sazonov Avatar answered Sep 20 '22 22:09

Dmitry Sazonov