[PyQt] issues with webkit javascript interaction
Phil Thompson
phil at riverbankcomputing.com
Sun Nov 28 15:05:16 GMT 2010
On Sun, 28 Nov 2010 13:15:15 +0100, "Hans-Peter Jansen" <hpj at urpla.net>
wrote:
> Hi Phil,
>
> here's the next issue, this time related to webkit javascript
> interaction. The code is ported from Qt's webkit/formextractor example.
>
> It tries to make use of addToJavaScriptWindowObject(), which should be
> allow to interact with javascript code. Unfortunately, triggering
> submit, which should result in a call to FormExtractor.submit() isn't
> executed at all.
>
> python: 2.6
> sip: 4.12-snapshot-ca22b358ab05
> qt4: 4.7.1
> pyqt4: snapshot-4.8.2-a935ffc263c2
>
> Pete
You just need to decorate submit() with pyqtSlot().
It will be in tonight's snapshot.
Thanks,
Phil
More information about the PyQt
mailing list