Line 3: QHttp::get() is not synchronous, so that at line 4 of the QHttp::readAll() may not have anything to read. It' s a moot point though because at line 4 you discard the QByteArray return by readAll() so we have no idea where your debug output is coming from.

Is this the actual code or are you paraphrasing?