[PyQt] Help needed with SIP
Phil Thompson
phil at riverbankcomputing.com
Sat Aug 6 16:49:33 BST 2011
On Sat, 6 Aug 2011 20:45:19 +0530, Vipul Raheja <vipul.iiith at gmail.com>
wrote:
> Hi all,
>
> I am trying to wrap the Qt module of OSSIM, an image-processing tool. I
was
> just beginning to dive into the wrapping process and created a .sip file
to
> wrap a class, ossimPlanetQtAboutDialog. But I am getting the following
> error
> on executing the sip command:
>
> vipul at vipul-laptop:~/ossim-svn/src/pyossim/sip$ sip -I /usr/include/qt4
-c
> .
> pyossim.sip
> sip: /usr/include/qt4/QtGui/QWidget:1: syntax error
>
> Here is the file ossimPlanetAboutDialog.h that I am trying to wrap:
>
------------------------------------------------------------------------------------------------
> #ifndef ossimPlanetAboutDialog_HEADER
> #define ossimPlanetAboutDialog_HEADER
> #include <QtGui/QDialog>
> #include <ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h>
> #include <ossimPlanetQt/ossimPlanetQtExport.h>
>
> class OSSIMPLANETQT_DLL ossimPlanetQtAboutDialog : public QDialog,
public
> Ui::ossimPlanetQtAboutDialog
> {
> public:
> ossimPlanetQtAboutDialog(QWidget* parent);
> };
>
> #endif
>
------------------------------------------------------------------------------------------------
>
>
> Here is the file pyossim.sip that I am trying to compile:
>
------------------------------------------------------------------------------------------------
> %Module pyossim 0
>
> %Import QtGui/QWidget
> %Import QtGui/QDialog
These are Qt .h files not .sip files.
Do something like...
%Import QtGui/QtGuimod.sip
Phil
More information about the PyQt
mailing list