[PyQt] QWebPage plug-ins
Alejandro Serrano
trupill at gmail.com
Sun Jun 14 11:05:26 BST 2009
Hi,
I'm trying to use QWebView to show some information to the user. However, I
need to include a custom plug-in for the task. Following some tutorials, I saw
that I has to implement some functions in QWebPage, and more important, to
register my plug-in types in the MetaType system (or something like that...)
With PyQt 4.4, I was using some sort of hack: I created a QVariant of some
instance of the type I wanted to register and everything worked (I read it on
some post in this list). But I updated to PyQt 4.5 and everything stopped
working, now it seems that just using QVariant(<instance>) does not register
the type. What's the correct way to do it now?
If it was possible, I would like not to use C++ code, because the app should
be easily portable.
Thanks in advance.
PS: PyQt is a great work!!
More information about the PyQt
mailing list