Hi, this is a linker error. Do you link against the qwt library?
Ginsengelf
Hi, this is a linker error. Do you link against the qwt library?
Ginsengelf
I used the following commands to link the Qwt with Qtcreator.
Qt Code:
ln -s /opt/qwt-6.1.0/plugins/designer/libqwt_designer_plugin.so /opt/Qt5.1.1/Tools/QtCreator/bin/plugins/designer/ echo /opt/qwt-6.1.0/lib | tee /etc/ld.so.conf.d/qwt.conf ldconfig -vTo copy to clipboard, switch view to plain text mode
This command is linking against the Qwt plugin for Qt Designer, not the Qwt library itself.ln -s /opt/qwt-6.1.0/plugins/designer/libqwt_designer_plugin.so /opt/Qt5.1.1/Tools/QtCreator/bin/plugins/designer/
Your code also inherits privately from QwtPlot, which is not recommended. Your declaration for class plot should be:
Qt Code:
{ // ... };To copy to clipboard, switch view to plain text mode
No, all you have done is declare a member variable that is a pointer to a QwtPlotCurve instance, which you don't actually instantiate (with "new") in the cpp file. So the compiler and linker are perfectly happy with that since nothing needs to be known about a pointer that is never used. It isn't proof of anything.I don't get any error for QwtPlotCurve (which shows that QWT is installed correctly).
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks