[PyKDE] ConvertToSubClassCode
Gerard Vermeulen
gvermeul at grenoble.cnrs.fr
Wed Nov 19 09:05:01 GMT 2003
On Tue, 18 Nov 2003 19:13:10 +0000
Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
[ snip ]
> >
> > were due to the fact that I did not implement ConvertToSubClassCode for
> > the Qwt widgets. Therefore, the 'is' operator did not work as expected.
> >
> > Since Qwt is more of a bunch of widgets than a neat hierarchy like PyKDE,
> > the most natural choice is to convert down from a QObject to a specific
> > subclass.
> >
> > As far as I understand, the sipc module knows how to handle more than
> > one "static PyObject *sipSubClass_QObject(const QObject *sipCpp)" (as
> > long as they are implemented in different modules), but sip does not
> > support it.
>
> I don't understand - sip does support it, look at qtable.sip or qcanvas.sip.
> Or am I missing something?
>
My fault. Of course I looked at those *.sip files but not close enough to
the generated code. Sorry.
Gerard
More information about the PyQt
mailing list