[PyQt] PyQt4 issue
Chris Roebuck
chris at cjroebuck.com
Wed Mar 6 12:42:12 GMT 2013
This works, however when I run the script:
from PyQt4.QtWebKit import *
I get:
ImportError: /usr/lib/python2.7/dist-packages/PyQt4/QtWebKit.so: undefined
symbol: _ZTI8QWebView
On 6 March 2013 09:55, Phil Thompson <phil at riverbankcomputing.com> wrote:
> On Wed, 6 Mar 2013 09:32:31 +0000, Chris Roebuck <chris at cjroebuck.com>
> wrote:
> > 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()")
>
> The problem with that is QWebElement wasn't in the first release of
> QtWebKit. How about...
>
> check_module("QtWebKit", "qwebsettings.h",
> "QWebSettings::globalSettings()")
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130306/69918031/attachment.html>
More information about the PyQt
mailing list