Hi all,
I followed the Custom Widged Plugin Example - http://qt-project.org/doc/qt-4.8/des...getplugin.html, then tried to modify it, replacing class AnalogClock with a QwtPlot based class, Creator is reporting the following. Project files are appended.
So I would like to ask for help in understand what's the problem with MyQwtPlot's constructor/destructor.
Thanks in advance.
debug
/customwidgetplugin.
o:customwidgetplugin.
cpp:(.
rdata$_ZTV9MyQwtPlot
[vtable
for MyQwtPlot
]+0x8
): undefined reference to `
QwtPlot::metaObject() const'debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xc): undefined reference to `QwtPlot::qt_metacast(char const*)'
debug
/customwidgetplugin.
o:customwidgetplugin.
cpp:(.
rdata$_ZTV9MyQwtPlot
[vtable
for MyQwtPlot
]+0x10
): undefined reference to `
QwtPlot::qt_metacall(QMetaObject::Call,
int,
void**)'debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x1c): undefined reference to `QwtPlot::event(QEvent*)'
debug
/customwidgetplugin.
o:customwidgetplugin.
cpp:(.
rdata$_ZTV9MyQwtPlot
[vtable
for MyQwtPlot
]+0x40
): undefined reference to `
QwtPlot::sizeHint() const'debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x44): undefined reference to `QwtPlot::minimumSizeHint() const'
debug
/customwidgetplugin.
o:customwidgetplugin.
cpp:(.
rdata$_ZTV9MyQwtPlot
[vtable
for MyQwtPlot
]+0x8c
): undefined reference to `
QwtPlot::resizeEvent(QResizeEvent*)'debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xe8): undefined reference to `QwtPlot::canvasMap(int) const'
debug
/customwidgetplugin.
o:customwidgetplugin.
cpp:(.
rdata$_ZTV9MyQwtPlot
[vtable
for MyQwtPlot
]+0xec
): undefined reference to `
QwtPlot::updateLayout()'debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xf0): undefined reference to `QwtPlot::drawCanvas(QPainter*)'
debug
/customwidgetplugin.
o:customwidgetplugin.
cpp:(.
rdata$_ZTV9MyQwtPlot
[vtable
for MyQwtPlot
]+0xf4
): undefined reference to `
QwtPlot::drawItems(QPainter*,
QRectF const
&,
QwtScaleMap const*) const'debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xf8): undefined reference to `QwtPlot::replot()'
debug
/customwidgetplugin.
o:customwidgetplugin.
cpp:(.
rdata$_ZTV9MyQwtPlot
[vtable
for MyQwtPlot
]+0xfc
): undefined reference to `
QwtPlot::legendItemClicked()'debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x100): undefined reference to `QwtPlot::legendItemChecked(bool)'
debug
/customwidgetplugin.
o:customwidgetplugin.
cpp:(.
rdata$_ZTV9MyQwtPlot
[vtable
for MyQwtPlot
]+0x104
): undefined reference to `
QwtPlot::updateTabOrder()'debug/customwidgetplugin.o: In function `~MyQwtPlot':
C
:\Documents and Settings\cristiano.
strieder\Meus documentos\QtProjects\CustomWidgetPluginExample
/myqwtplot.
h:8: undefined reference to `
QwtPlot::~
QwtPlot()'C:\Documents and Settings\cristiano.strieder\Meus documentos\QtProjects\CustomWidgetPluginExample/myqwtplot.h:8: undefined reference to `QwtPlot::~QwtPlot()'
debug/myqwtplot.o: In function `MyQwtPlot':
C:\Documents and Settings\cristiano.strieder\Meus documentos\QtProjects\CustomWidgetPluginExample/myqwtplot.cpp:5: undefined reference to `QwtPlot::QwtPlot(QWidget*)'
C
:\Documents and Settings\cristiano.
strieder\Meus documentos\QtProjects\CustomWidgetPluginExample
/myqwtplot.
cpp:5: undefined reference to `
QwtPlot::QwtPlot(QWidget*)'collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [c:\QtSDK\QtCreator\bin\plugins\designer\customwidgetplugin.dll] Error 1
mingw32-make.exe: *** [debug] Error 2
08:13:40: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project customwidgetplugin (target: Desktop)
When executing build step 'Make'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x8): undefined reference to `QwtPlot::metaObject() const'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xc): undefined reference to `QwtPlot::qt_metacast(char const*)'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x10): undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x1c): undefined reference to `QwtPlot::event(QEvent*)'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x40): undefined reference to `QwtPlot::sizeHint() const'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x44): undefined reference to `QwtPlot::minimumSizeHint() const'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x8c): undefined reference to `QwtPlot::resizeEvent(QResizeEvent*)'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xe8): undefined reference to `QwtPlot::canvasMap(int) const'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xec): undefined reference to `QwtPlot::updateLayout()'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xf0): undefined reference to `QwtPlot::drawCanvas(QPainter*)'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xf4): undefined reference to `QwtPlot::drawItems(QPainter*, QRectF const&, QwtScaleMap const*) const'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xf8): undefined reference to `QwtPlot::replot()'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0xfc): undefined reference to `QwtPlot::legendItemClicked()'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x100): undefined reference to `QwtPlot::legendItemChecked(bool)'
debug/customwidgetplugin.o:customwidgetplugin.cpp:(.rdata$_ZTV9MyQwtPlot[vtable for MyQwtPlot]+0x104): undefined reference to `QwtPlot::updateTabOrder()'
debug/customwidgetplugin.o: In function `~MyQwtPlot':
C:\Documents and Settings\cristiano.strieder\Meus documentos\QtProjects\CustomWidgetPluginExample/myqwtplot.h:8: undefined reference to `QwtPlot::~QwtPlot()'
C:\Documents and Settings\cristiano.strieder\Meus documentos\QtProjects\CustomWidgetPluginExample/myqwtplot.h:8: undefined reference to `QwtPlot::~QwtPlot()'
debug/myqwtplot.o: In function `MyQwtPlot':
C:\Documents and Settings\cristiano.strieder\Meus documentos\QtProjects\CustomWidgetPluginExample/myqwtplot.cpp:5: undefined reference to `QwtPlot::QwtPlot(QWidget*)'
C:\Documents and Settings\cristiano.strieder\Meus documentos\QtProjects\CustomWidgetPluginExample/myqwtplot.cpp:5: undefined reference to `QwtPlot::QwtPlot(QWidget*)'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [c:\QtSDK\QtCreator\bin\plugins\designer\customwidgetplugin.dll] Error 1
mingw32-make.exe: *** [debug] Error 2
08:13:40: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project customwidgetplugin (target: Desktop)
When executing build step 'Make'
To copy to clipboard, switch view to plain text mode
Bookmarks