Discussion:
Q_PID undefined
Mike Rovner
2006-05-19 01:31:10 UTC
Permalink
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?

Thanks,
Mike
Phil Thompson
2006-05-19 08:44:35 UTC
Permalink
Post by Mike Rovner
Hi,
%Module rzc
%Import QtGui/QtGuimod.sip
class ResolutionZoomController
{
%TypeHeaderCode
#include "reszoom.h"
%End
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

Loading...