[PyQt] QWebPage plug-ins
phil at riverbankcomputing.com
Sun Jun 14 15:39:57 BST 2009
On Sun, 14 Jun 2009 16:02:16 +0200, Alejandro Serrano <trupill at gmail.com>
> On Domingo 14 Junio 2009 15:46:35 Phil Thompson escribió:
>> On Sun, 14 Jun 2009 15:36:29 +0200, Alejandro Serrano
<trupill at gmail.com>
>> > On Domingo 14 Junio 2009 14:26:38 Phil Thompson escribió:
>> >> On Sun, 14 Jun 2009 12:05:26 +0200, Alejandro Serrano
>> <trupill at gmail.com>
>> >> wrote:
>> >> > ...
>> >> It's true that earlier versions of PyQt registered a lot of C++ types
>> >> that
>> >> Qt didn't register automatically, but that was an implementation
>> >> detail
>> >> and
>> >> not documented behavior. As the registration is template based it has
>> >> to
>> >> be
>> >> done from C++.
>> >> Phil
>> > I see... The problem that I'm facing is that I am creating the
>> > using plug-ins, and I need them to create different widgets in the
>> > QWebPage. I
>> > have thought about two solutions, and I would like to know whether
>> > possible:
>> > 1. Create some C++ or SIP function that would register a type passed
>> > argument somehow. That way I would only need one C++ library. Maybe
>> > just
>> > something that would wrap qRegisterMetaType...
>> Not easy - it's a template.
>> > 2. Make all plug-in derive from some common class and then register
>> > base
>> > class. If I do that, could I use the derived classes from QWebPage?
>> I've no problem with including additional C++ classes that are then
>> so that particular things can be done from Python - see the various QPy
>> classes in PyQt - but somebody will have to say exactly what's needed.
> Just for reference: I'm using this tutorial http://daniel-
> albuschat.blogspot.com/2008/12/embedding-qt-widgets-into-qtwebkit.html as
Like I said before anything that needs to register a meta-type is going to
be a problem. However, it's not needed for ordinary widgets as the attached
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1269 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090614/41744804/plugin.py
More information about the PyQt