Http connexion from secondary thread
-
Hi
I am trying to create a HTTP connexion from a secondary thread, while the object receiving the finished() signal is in the main thread. The idea here is to let the main thread do UI initialisations. In this case it seems that the finished() signal is no longer received, but no connect() error is seen. Could you help in solving this issue ?
thanks
Bogdan -
Where do you connect the finished signal (in which thread) and in which thread the sending and receiving objects live? Is the connection type the proper one, i.e. Qt::QueuedConnection?
Btw. the QNAM requests are asynchronous so there is usually no benefit in running them from another thread.
-
Ok then. Without some code I can only throw guesses - are you sure both the QNAM and the connected object are still alive when the signal is emitted? can you connect a lambda and see if it gets called?