E
E
Evgeny Ivanovich2015-06-08 19:55:09
Qt
Evgeny Ivanovich, 2015-06-08 19:55:09

QT C++ QnetworkAccessManager doesn't want to run on a thread?

I declare QNetworkAccessManager in an explicit thread, connect the slot, make a request, launch it and I get this message, the slot is not running.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QNetworkAccessManager(0x13d37d0), parent's thread is QThread(0x130c150), current thread is Download(0x1362900)
Tried declaring QNetworkAccessManager without arguments - didn't help. How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Ivanovich, 2015-06-08
@Pauk_Code

Found the solution at the
linkTyk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question