On Wednesday 31 March 2010 17:56:03 Josh wrote:
> I'm trying to make a binding for a trivial test class:
>
> #include <QGLWidget>
>
> class Math : public QGLWidget
> {
> Q_OBJECT
> public:
> Math() {}
> virtual ~Math() {}
> int squared(int x);
>
> signals:
> void aSignal(QPoint, QSize);
> };
>
> I have a typesystem file for the binding:
>
> <?xml version="1.0"?>
> <typesystem package="foo">
> <load-typesystem name="typesystem_core.xml" generate="no"/>
> <load-typesystem name="typesystem_opengl.xml" generate="no"/>
> <object-type name="Math"/>
> </typesystem>
>
>
> When I run this through shiboken I get the following
>
> WARNING :: signal 'aSignal' in non-QObject class 'Math'
> WARNING :: unknown baseclass for 'Math': 'QGLWidget'
> WARNING :: type 'QFontDialog' is specified in typesystem, but not
> defined. This could potentially lead to compilation errors.
> .... lots more of the last warning...
>
> Does someone have a working example of a trivial binding using shiboken
> I could look at?Check if the header that you used with the generator (global.h) have the includes for QtCore, QtGui and QtOpenGL modules, and if the include paths are correct. These problems are due the parser did not find the class declarations of QObject, QWidget and QGLWidget. > Thanks, > > Josh -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
