<br />Hi all,<br /><br />I am creating two plugins for use in Qt's designer. One plugin is a subclass of QTableWidget (table) and the other is a subclass of QscScintilla (editor).<br /><br />I get a link error on the module generated by moc of the editor class:<br /><br />moc_MyEditor.obj : error LNK2001: unresolved external symbol &quot;public: static struct QMetaObject const QsciScintilla::staticMetaObject&quot; (?staticMetaObject@QsciScintilla@@2UQMetaObject@@B) <br /><br />Linking succeeds if I remove the reference to QOBJECT from the editor module and skip moc file generation for the editor. I can see both plugins in designer, except the editor presents itself as a QscScintilla object instead of a MyEditor object. I guess this is due to the fact that no meta information about the editor class is available.<br /><br />I have the feeling something obvious is going wrong, but I can't seem to find the problem.<br /><br />The header files of the table class and the editor subclass are the same, except for the base class they inherit from. Apart from the constructors I haven't implemented any members yet. Here's the relevant part of the class definition:<br /><br />class __declspec(dllexport) MyEditor: public QsciScintilla {<br /><br />private:<br /><br />&nbsp; Q_OBJECT<br /><br />Public:<br /><br />&nbsp; MyEditor(QWidget* parent=0);<br /><br />};<br /><br />Again, the table class definition is very similar.<br /><br />Some context:<br />qt-4.2.2<br />qscintilla-1.72-gpl-2-snapshot-20070304<br />Windows XP<br />MS Visual Studio 2005, SP1<br /><br />Any hints are greatly appreciated.<br /><br />Best regards,<br />Kor de Jong<br /><br /> 
<BR><hr>Dit bericht is verzonden via <a href="http://www.mijndomein.nl">mijndomein.nl</a>