<p>That's it, thanks a lot Klaus!</p><p>Kor<br /><br /> <br /><br /><strong>On Wed Mar 7 11:38 , KlausDre 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;">Hi Kor,<br />
<br />
I got the same error because I forgot to define QSCINTILLA_DLL<br />
in my project.<br />
<br />
Greetings<br />
Klaus<br />
<br />
<br />
Kor de Jong schrieb:<br />
> <br />
> Hi all,<br />
> <br />
> I am creating two plugins for use in Qt's designer. One plugin is a <br />
> subclass of QTableWidget (table) and the other is a subclass of <br />
> 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 "public: <br />
> static struct QMetaObject const QsciScintilla::staticMetaObject" <br />
> (?<a href="javascript:top.opencompose('staticMetaObject@QsciScintilla','','','')">staticMetaObject@QsciScintilla</a>@@2UQMetaObject@@B)<br />
> <br />
> Linking succeeds if I remove the reference to QOBJECT from the editor <br />
> module and skip moc file generation for the editor. I can see both <br />
> plugins in designer, except the editor presents itself as a QscScintilla <br />
> object instead of a MyEditor object. I guess this is due to the fact <br />
> 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 <br />
> find the problem.<br />
> <br />
> The header files of the table class and the editor subclass are the <br />
> same, except for the base class they inherit from. Apart from the <br />
> constructors I haven't implemented any members yet. Here's the relevant <br />
> 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 />
> ------------------------------------------------------------------------<br />
> Dit bericht is verzonden via mijndomein.nl <<a target="_blank" href="parse.pl?redirect=http%3A%2F%2Fwww.mijndomein.nl">http://www.mijndomein.nl</a>><br />
> <br />
> <br />
> ------------------------------------------------------------------------<br />
> <br />
> _______________________________________________<br />
> QScintilla mailing list<br />
> <a href="javascript:top.opencompose('QScintilla@riverbankcomputing.com','','','')">QScintilla@riverbankcomputing.com</a><br />
> <a target="_blank" href="parse.pl?redirect=http%3A%2F%2Fwww.riverbankcomputing.com%2Fmailman%2Flistinfo%2Fqscintilla">http://www.riverbankcomputing.com/mailman/listinfo/qscintilla</a><br />
<br />
_______________________________________________<br />
QScintilla mailing list<br />
<a href="javascript:top.opencompose('QScintilla@riverbankcomputing.com','','','')">QScintilla@riverbankcomputing.com</a><br />
<a target="_blank" href="parse.pl?redirect=http%3A%2F%2Fwww.riverbankcomputing.com%2Fmailman%2Flistinfo%2Fqscintilla">http://www.riverbankcomputing.com/mailman/listinfo/qscintilla</a><br />
</blockquote>
</p><BR><hr>Dit bericht is verzonden via <a href="http://www.mijndomein.nl">mijndomein.nl</a>