[PyQt] PyQt4 issue

Chris Roebuck chris at cjroebuck.com
Wed Mar 6 09:32:31 GMT 2013


Thanks Phil,

I get the following error when changing configure.py as you suggested:

cfgtest_QtWebKit.cpp: In function ‘int main(int, char**)’:
cfgtest_QtWebKit.cpp:5:30: error: cannot allocate an object of abstract
type ‘QWebHistoryInterface’
qwebhistoryinterface.h:29:22: note:   because the following virtual
functions are pure within ‘QWebHistoryInterface’:
qwebhistoryinterface.h:38:18: note: virtual bool
QWebHistoryInterface::historyContains(const QString&) const
qwebhistoryinterface.h:39:18: note: virtual void
QWebHistoryInterface::addHistoryEntry(const QString&)

But I did manage to get the check to pass when
using check_module("QtWebKit", "qwebelement.h", "new QWebElement()")


On 6 March 2013 08:40, Phil Thompson <phil at riverbankcomputing.com> wrote:

> On Wed, 6 Mar 2013 01:25:18 +0000, Chris Roebuck <chris at cjroebuck.com>
> wrote:
> > Here's my result:
> >
> > objdump -T libQt5WebKit.so | grep QWebPage | grep QObject
> >
> > 00000000004a2530 g    DF .text 0000000000000935  Base
> >
>
> _ZN15QWebPageAdapter26dynamicPropertyChangeEventEP7QObjectP27QDynamicPropertyChangeEvent
> > 00000000004a3770 g    DF .text 000000000000002a  Base
> >  _ZN15QWebPageAdapter17setSystemTrayIconEP7QObject
> >
> > Interestingly, if I do the same for libQt5WebKitWidgets.so I get what
> you
> > reported:
> >
> > objdump -T libQt5WebKitWidgets.so | grep QWebPage | grep QObject
> >
> > 0000000000000000      DF *UND* 0000000000000000
> >  _ZN15QWebPageAdapter17setSystemTrayIconEP7QObject
> > 0000000000000000      DF *UND* 0000000000000000
> >
>
> _ZN15QWebPageAdapter26dynamicPropertyChangeEventEP7QObjectP27QDynamicPropertyChangeEvent
> > 0000000000027570 g    DF .text 00000000000000a4  Base
> >  _ZN8QWebPageC1EP7QObject
> > 0000000000027570 g    DF .text 00000000000000a4  Base
> >  _ZN8QWebPageC2EP7QObject
>
> Try changing the line in configure.py from...
>
> check_module("QtWebKit", "qwebpage.h", "new QWebPage()")
>
> ...to...
>
> check_module("QtWebKit", "qwebhistoryinterface.h", "new
> QWebHistoryInterface()")
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130306/0437dfe2/attachment.html>


More information about the PyQt mailing list