[PyKDE] Re: sip generated code does not compile

Phil Thompson phil at river-bank.demon.co.uk
Sun Sep 2 18:41:33 BST 2001


This should now be fixed in the CVS version.

Phil


> Phil,
>
> while adapting my PyQwt extension to sip/PyQt-2.5, sip generated some code that
> does not compile (no problems with sip-2.5pre1, sip-2.4 and earlier).
>
> There is some sort of "horizon" effect with inclusion of the declarations of 
> 'sipQClasses' in combination with protected member functions.
>
> To be more precise (code fragments in the PPS):
>
> QwtArrowButton is derived from QPushButton, which is derived from QButton.
> QButton has protected member functions, so for instance this line of code is
> generated by sip in the C++ code wrapping QwtArrowButton:
>
> sipQButton::sipVH_drawButton(&sipPyMethods[89],sipPyThis,relLock,a0);
>
> But, the declaration for sipQButton is not included in the corresponding header
> file. Of course, it is easy to work around this sip bug (see below).
>
> Gerard




More information about the PyQt mailing list