Get http status in Qt WebKit

Posted by RR on Stack Overflow See other posts from Stack Overflow or by RR
Published on 2010-04-27T05:29:32Z Indexed on 2010/04/27 5:33 UTC
Read the original article Hit count: 374

Filed under:
|
|
|
|

Hello all:

What I would like to implement is

1 Using Qt's WebView(part of QtWebKit) to access some page.

2 Show specified html page if got HTTP 4xx, 5xx status

(Ex> HTTP 404, 500).

3 Also shows specified page when network connection is unavailable.

For now, I had only done job 1... In job 2, how did I get http status from WebView ? In job 3, I'm looking about QUrl APIs now.

Anyone have idea or expreience yet ?

© Stack Overflow or respective owner

Related posts about qt

Related posts about webkit