Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Does calling QObject::connect() spawn a new thread internally? ["SOLVED"]
Does calling a connect() actually create a new thread? I just wanted to know since one of my colleague says so?
According to him calling connect() in a loop repeatedly creates multiple threads, which can be observed from windows task manager.
It is no where mentioned in Qt docs thats calling a coonect() spawns a thread.
andre last edited by
No. It does not.
You have all the source code available, so you can check if you want. But really: no threads are involved.
@Andre - Thanks a lot Andre.
Jeroentjehome last edited by
Hm, you would only make the event handler very busy.
@Jeroentje - thanks for the reply.