[PyKDE] Q_PID undefined

Phil Thompson phil at riverbankcomputing.co.uk
Fri May 19 09:44:35 BST 2006


On Friday 19 May 2006 2:31 am, Mike Rovner wrote:
> Hi,
>
> I'm trying to wrap my C++ class with SIP (4.4):
>
> %Module rzc
>
> %Import QtGui/QtGuimod.sip
>
> class ResolutionZoomController
> {
> %TypeHeaderCode
> #include "reszoom.h"
> %End
>
> public:
>      ResolutionZoomController();
>      ~ResolutionZoomController();
> };
>
> but I'm getting error from
> sip -I ~/tools/share/sip/PyQt4 reszoom.sip
>
> sip: Q_PID is undefined
>
> What I'm doing wrong?

You need to set the correct -t flags on the sip command line. If you use the 
build system this is done for you.

Phil




More information about the PyQt mailing list