[Qt-interest] QWt Errors
Sean Harmer
sean.harmer at maps-technology.com
Tue May 5 12:41:00 CEST 2009
On Tuesday 05 May 2009 10:52:23 Sujan Dasmahapatra wrote:
> Plss see the errors below while I tried to compile chap 11's 1st code
> simply plotting a curve.....
>
> See also the code below
>
> ////////////////////////////////////////////////////////////////////////
> //////////////////////////////////////////////////////////////////////
>
> main.cpp: In constructor `MyPlot::MyPlot(QWidget*, char*)':
>
> main.cpp:7: error: no matching function for call to
> `QwtPlot::QwtPlot(QWidget*&, char*&)'
>
> /usr/local/include/qwt_plot.h:73: note: candidates are:
> QwtPlot::QwtPlot(const QwtPlot&)
>
> /usr/local/include/qwt_plot.h:130: note:
> QwtPlot::QwtPlot(const QwtText&, QWidget*)
>
> /usr/local/include/qwt_plot.h:129: note:
> QwtPlot::QwtPlot(QWidget*)
Well you're trying to call a constructor of QwtPlot with a signature that
doesn't exist - just like the error message says. Get rid of the char* name
argument and simply pass parent to the QwtPlot ctor. See if that then works.
Sean
More information about the Qt-interest-old
mailing list