On Montag, 17. Mai 2010, detlev wrote:
> Hi,
>
> it seems, that the QWebPage module is not completely wrapped for Qt 4.6.x.
> I am missing these things.
>
> enum Extension is missing ErrorPageExtension
> enum ErrorDomain mssing
> class ErrorPageExtensionOption missing
> class ErrorPageExtensionReturn missing
>
> These have been added with Qt 4.6.0 but somehow the doc pages are
> incomplete although the documentation is included in qwebpage.cpp. This
> seems to be a documentation bug that has been fixed in Qt 4.7.
>
> I would need these classes and enums in order to show a proper error page
> in the eric web browser. Qt 4.6 doesn't seem to send the
> "unsupportedContent" signal in this situation (which is differnt to Qt
> 4.5).
>
> Regards,
> Detlev
>
Hi,
here is the patch for qwebpage.sip implementing these things.
Regards,
Detlev
--
Detlev Offenbach
[email protected]
228a229,231
> %If (Qt_4_6_0 -)
> ErrorPageExtension,
> %End
230a234,242
> %If (Qt_4_6_0 -)
> enum ErrorDomain
> {
> QtNetwork,
> Http,
> WebKit,
> };
> %End
>
318a331,367
> };
>
> %End
>
> %If (Qt_4_6_0 -)
>
> class ErrorPageExtensionOption : QWebPage::ExtensionOption
> {
>
> %TypeHeaderCode
> #include <qwebpage.h>
> %End
>
> public:
> QUrl url;
> QWebFrame* frame;
> QWebPage::ErrorDomain domain;
> int error;
> QString errorString;
> };
>
> %End
> %If (Qt_4_6_0 -)
>
> class ErrorPageExtensionReturn : QWebPage::ExtensionReturn
> {
>
> %TypeHeaderCode
> #include <qwebpage.h>
> %End
>
> public:
> ErrorPageExtensionReturn();
> QString contentType;
> QString encoding;
> QUrl baseUrl;
> QByteArray content;
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt