[PyQt] Creating PyQt4 bindings with SIP
phil at riverbankcomputing.com
Thu Apr 16 14:00:42 BST 2009
On Thu, 16 Apr 2009 14:30:43 +0200, "NARCISO, Rui" <RUI.NARCISO at airbus.com>
> I have donwloaded a Qt4 widget from teh internet and I'm trying to create
> the PyQt4 bindings for it.
> I created the SIP file:
> %Module pictureflow 0
> %Import QtCore/QtCoremod.sip
> class PictureFlow : QWidget
> #include "pictureflow.h"
> PictureFlow(QWidget *parent /TransferThis/);
> but I get an error:
> "QWidget has not been defined"
> if i try to add:
> %Import Qt/Qtmod.sip
> to the SIP file I get:
> "A %CompositeModule cannot be %Imported"
> what am I doing wrong ?
QWidget is defined in the QtGui module, so...
More information about the PyQt