PDA

View Full Version : Question on QByteArray::QHttp::readAll()



ask8y@yahoo.com
17th June 2010, 15:37
In my slot, I call the function to get http data received.

I am guessing that I do not own this QByteArray, can I pass it along with my signal from here?

As a general rule, how should deal with the data passed between signal/slot?

Thanks,

Naami
17th June 2010, 16:46
Hi;
Add more details :rolleyes:

ask8y@yahoo.com
17th June 2010, 16:51
Hi;
Add more details :rolleyes:

Well, does it code cause memory problem?

QByteArray data=mhttp->readAll();
emit dataAvailable( true, data);