This might be the next duplicate, but nevertheless I do not find the error in this code:
#include <qwt_plot.h>
class QLinePlot : public QwtPlot
{
Q_OBJECT
public:
QLinePlot(QWidget* parent = 0, Qt::WindowFlags flags = 0): QwtPlot(parent)
{
}
~QLinePlot()
{
}
};
int main( int argc, char **argv )
{
QLinePlot * plot = new QLinePlot();
}
I deleted the build folder and also ran qmake again, but no change. The error message is
test.cpp:7: undefined reference to `vtable for QLinePlot'