[Interest] Using QNAM from threads

Philipp Kursawe phil.kursawe at gmail.com
Wed Jan 29 16:27:19 CET 2014


I have the following problem. I want to have only one QNAM in the (heavily
plugin based) app.

So I create one QNAM in the main thread when the app starts and assign it
to the qApp->setProperty("qnam").

Now I have several threads that can run in the background and once in a
while need network access and process the (big) results. Naturally the
processing of this big data set cannot be done on the main thread, that
also runs the UI. So I have to use threads to keep the UI fast and
responsive.

But it seems to be impossible to connect a slot from a thread to a signal
of the QNAM created QNetworkReply object.

Is there any solution to my problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140129/9e0e2935/attachment.html>


More information about the Interest mailing list