[Qt-interest] unresolved Symbol (QMetaObject const QwtPlot::staticMetaObject) in qwtplot derived Class
Matthias Pospiech
matthias.pospiech at gmx.de
Thu Dec 11 12:59:11 CET 2008
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
...
Matthias
More information about the Qt-interest-old
mailing list