[PyQt] Creating PyQt4 bindings with SIP

NARCISO, Rui RUI.NARCISO at airbus.com
Thu Apr 16 13:30:43 BST 2009


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 
{
%TypeHeaderCode
#include "pictureflow.h" 
%End

public: 
	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 ?

Rui <<main.cpp>>  <<pictureflow.cpp>>  <<pictureflow.h>>  <<pictureflow.pro>>  <<pictureflow.sip>> 


__________________________________________________ 

Rui NARCISO 
Data for Handling Qualities 
Aerodynamics Department - EDGADYT  -  M01 N368 
AIRBUS France 

Phone:  +33 (0)5 61 18 10 77 
Fax: +33 (0)5 61 93 99 80 
<Mailto:rui.narciso at airbus.com> 



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.


This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: application/octet-stream
Size: 5490 bytes
Desc: main.cpp
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090416/7d9689ec/main-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pictureflow.cpp
Type: application/octet-stream
Size: 29016 bytes
Desc: pictureflow.cpp
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090416/7d9689ec/pictureflow-0004.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pictureflow.h
Type: application/octet-stream
Size: 4885 bytes
Desc: pictureflow.h
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090416/7d9689ec/pictureflow-0005.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pictureflow.pro
Type: application/octet-stream
Size: 95 bytes
Desc: pictureflow.pro
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090416/7d9689ec/pictureflow-0006.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pictureflow.sip
Type: application/octet-stream
Size: 206 bytes
Desc: pictureflow.sip
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090416/7d9689ec/pictureflow-0007.obj
-------------- next part --------------
_______________________________________________
Development work related to Python for the aerospace industry. For help, the archive, or to change your settings, visit http://dev.xype.com/mailman/listinfo/pythondev

To post a message, send mail to Pythondev at dev.xype.com 
To set a topic in your message, use a marker like [python] in the Subject line.


More information about the PyQt mailing list