[Qt-interest] unresolved Symbol (QMetaObject const QwtPlot::staticMetaObject) in qwtplot derived Class
Matthias Pospiech
matthias.pospiech at gmx.de
Thu Dec 11 13:42:39 CET 2008
Matthias Pospiech schrieb:
> Matthias Pospiech schrieb:
>
>> I have the following class which is derived from QwtPlot (which is
>> derived from QFrame)
>> It includes Q_OBJECT, a moc file is created and part of the project,
>> but I get this linker error:
>>
>> 1>moc_QScatterPlot.obj : error LNK2001: Nicht aufgelöstes externes
>> Symbol ""public: static struct QMetaObject const
>> QwtPlot::staticMetaObject" (?staticMetaObject at QwtPlot@@2UQMetaObject@@B)".
>>
>> Why, and how do I resolve it?
>>
>>
>>
> It is resolved by removing Q_OBJECT
>
> class QScatterPlot : public QwtPlot
> {
> //Q_OBJECT
>
> ...
>
Which is no solution, since then I cannot place any signal or slot to
the class QScatterPlot.
Any help appreciated.
Matthias
More information about the Qt-interest-old
mailing list