Re: [PyQt] Issue of QWebPage.extension

2013-01-08 Thread Phil Thompson
On Mon, 7 Jan 2013 21:55:27 +0800, Flya Flyaa wrote: > I want to get page detailed error message this way: > http://stackoverflow.com/questions/7279046/how-to-get-detailed-error-message-when-qtwebkit-fails-to-load-a-page > > This need reimplement QWebPage.extension > http://www.riverbankcomputi

Re: [PyQt] Issue of QWebPage.extension

2013-01-07 Thread Detlev Offenbach
Hello, you have to cast it explicitly using sip.cast. Here is a code extract of the eric5 web browser. if extension == QWebPage.ErrorPageExtension: info = sip.cast(option, QWebPage.ErrorPageExtensionOption) errorPage = sip.cast(output, QWebPage.ErrorPageExtensionR

[PyQt] Issue of QWebPage.extension

2013-01-07 Thread Flya Flyaa
I want to get page detailed error message this way: http://stackoverflow.com/questions/7279046/how-to-get-detailed-error-message-when-qtwebkit-fails-to-load-a-page This need reimplement QWebPage.extension http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwebpage.html#extension, and get