[PyQt] sip: QFileIconProvider is undefined ??

Phil Thompson phil at riverbankcomputing.com
Mon Mar 30 12:04:25 BST 2009


On Mon, 30 Mar 2009 12:56:34 +0200, Oliver Heyme <olihey at googlemail.com>
wrote:
> Hi,
> 
> I am trying to create a module for my own derivate of the QApplication
> class with the latest SIP and PyQt snapshots!
> 
> The sip looks like this:
> 
> %Module LBBApplication 0
> %Import QtGui/QtGuimod.sip
> 
> class LBBApplication : QApplication {
> 
> %TypeHeaderCode
> #include "Core/LBBApplication.h"
> %End
> 
> public:
> 	LBBApplication(SIP_PYLIST argv);
> 	~LBBApplication();
> };
> 
> When I run sip I get the following error:
> 
> olimac:Core olihey$ sip -c .
> -I/Library/Frameworks/Python.framework/Versions/3.0/share/sip/PyQt4/
> -t WS_MACX LBBApplication.sip
> sip: QFileIconProvider is undefined
> 
> What am I doing wrong?

You need another -t flag to tell it what version of the Qt API you are
using.

Phil


More information about the PyQt mailing list