<p>Hi, <br /></p><p>I have solved the link error by generating moc files for the QsciScintilla and QsciScintillaBase headers and including them in my library. I would have expected these were already included in the qscintilla2 library(?).<br /></p><p>Maybe something went wrong while installing qscintilla. I re-installed qscintilla twice yesterday, and checked for warnings and errors. Also checked the generated makefiles to see whether moc files were generated and included in the qscintilla library. All seemed to be OK.</p><p>Best regards,</p><p>Kor<br /><br /><strong>On Tue Mar  6 14:53 , Kor de Jong  sent:<br /><br /></strong><blockquote style="border-left: 2px solid rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px; padding-right: 0px;"><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 />  Q_OBJECT<br /><br />Public:<br /><br />  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></blockquote>
</p><BR><hr>Dit bericht is verzonden via <a href="http://www.mijndomein.nl">mijndomein.nl</a>