> > I tried the example I uploaded but I have the following message of error: > > > OsgViewerQt.obj : error LNK2001: unresolved external symbol "public: > virtual int __thiscall OsgViewerQt::qt_metacall(enum > QMetaObject::Call,int,void * *)" (?qt_metac...@osgviewerqt > @@uaehw4c...@qmetaobject@@hpa...@z) > > OsgViewerQt.obj : error LNK2001: unresolved external symbol "public: > virtual void * __thiscall OsgViewerQt::qt_metacast(char const *)" > (?qt_metac...@osgviewerqt@@uaepax...@z) > > OsgViewerQt.obj : error LNK2001: unresolved external symbol "public: > virtual struct QMetaObject const * __thiscall > OsgViewerQt::metaObject(void)const " (?metaobj...@osgviewerqt > @@UBEPBUQMetaObject@@XZ) > > OsgViewerQt.obj : error LNK2001: unresolved external symbol "public: > static struct QMetaObject const OsgViewerQt::staticMetaObject" > (?staticmetaobj...@osgviewerqt@@2UQMetaObject@@B) > > how can I fix this? > >
This is rather a Qt issue. You need to move the OsgViewerQt class declaration to a header file, and "moc" it. These links should help you : http://doc.trolltech.com/4.7/object.html http://doc.trolltech.com/4.7/moc.html To make your life easier with VS and Qt, you may want to install QtVSAddin (http://developer.qt.nokia.com/wiki/QtVSAddin) Mourad <http://doc.trolltech.com/4.7/object.html>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

