[PyKDE] Trouble binding code with SIP

Aurélien Gâteau aurelien at dental-on-line.fr
Mon Oct 13 19:02:00 BST 2003


Le Lundi 13 Octobre 2003 18:50, Phil Thompson a écrit :

> I said put the %HeaderCode section in the class definition.
>
> I was also going to say that you probably also need to add a %HeaderCode
> section to the DolSphinx namespace that #includes dolsphinx.h - but looking
> quickly at the parser I'm not sure it allows you to. If so then that's
> something I need to fix.

Just added the following:

---
%HeaderCode
#include <dolsphinx.h>
%End
---

After the "class Listener : QObject {" line. Sip parses it correctly, but 
compilation fails in the same place.

Aurélien




More information about the PyQt mailing list