[Qt-interest] Fwd: QHttp howto get response code ? e.g 200 , 404

Rohan Prabhu rohan at rohanprabhu.com
Sun Mar 14 13:09:25 CET 2010


Hi Rohan,
>
>    Should i write this:
> -snip-
>    QHttp req;
>        connect(req,SIGNAL(responseHeaderReceived(const
> QHttpResponseHeader&)),this,SLOT(signalHandler(const
> QHttpResponseHeader&)));
> -snip-
>

Yes. That is exactly what you need to do as responseHeaderReceived(const
QHttpResponse&) is a signal of the QHttp class.


>    But i think `req' is not a QObject , so i can't write this .. I'm
> really not very familar with QHttp ..
>

'req' in your case is an instance of the class QHttp, which is derived from
QObject.

regards,
rohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100314/39818637/attachment.html 


More information about the Qt-interest-old mailing list