I send a QNetworkRequest from a QThread which creates a QNetworkReply there.
Then I try to read() this reply from the main thread.

Of course read()ing causes data removal from QNetworkReply's buffer.

But it seems such reads collide with the thread writing incoming data into the QNetworkReply's buffer. This leads to buffer's data loss and even crashes (malloc() related).

How can I solve this?