[PyQt] SIP tutorial/docs problems

piotr maliński riklaunim at gmail.com
Sun Nov 2 12:48:34 GMT 2008


I want to make Python/PyQt4 APIs for few widgets from qt-apps.org, but
I'm stuck with SIP problems.

I'm using http://www.qt-apps.org/content/show.php/QTermWidget?content=82832
QtermWidget

I've made a sip file:
##########################3
%Module QtermWidget 0

%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip


class QTermWidget : QWidget {

%TypeHeaderCode
#include <qtermwidget.h>
%End

public:
	QTermWidget(int startnow = 1, //start shell programm immediatelly
		QWidget *parent = 0);
	
};
#############################
Executing it returns:
#sip -I /usr/share/sip/ -t WS_X11 -c . *sip
sip: QFileIconProvider is undefined

When I add "%Import QtGui/qfileiconprovider.sip" then I get:

sip: No %Module has been specified for module defined in qtermwidget.sip

Any suggestion about this?


More information about the PyQt mailing list