[Qt-interest] Qwt Error

Srdjan Todorovic todorovic.s at googlemail.com
Tue May 5 13:47:25 CEST 2009


Hi,

2009/5/5 Sujan Dasmahapatra <sdh at lmglasfiber.com>:
> Still these are the errors I am getting Srdjian.I have included qwt_plot.h header.
>
> Plsss tell me friends how to resolve these errors.
>
> main.cpp: In constructor `MyPlot::MyPlot(QWidget*, char*)':
> main.cpp:12: error: `setAutoLegend' was not declared in this scope
> main.cpp:13: error: `Qwt' has not been declared

Is Qwt a namespace?
A header? If you include it, what happens?

> main.cpp:13: error: `Bottom' was not declared in this scope
> main.cpp:13: error: `setLegendPos' was not declared in this scope
> main.cpp:20: error: `insertCurve' was not declared in this scope
> main.cpp:38: error: `setCurveData' was not declared in this scope
> main.cpp:42: error: `blue' was not declared in this scope
> main.cpp:42: error: invalid use of undefined type `struct QPen'
> /usr/local/pack/Qt-4.4.3/include/QtGui/qwindowdefs.h:69: error: forward declaration of `struct QPen'

Include QPen?

> main.cpp:42: error: `setCurvePen' was not declared in this scope
> main.cpp:43: error: `green' was not declared in this scope
> main.cpp:43: error: invalid use of undefined type `struct QPen'
> /usr/local/pack/Qt-4.4.3/include/QtGui/qwindowdefs.h:69: error: forward declaration of `struct QPen'
> main.cpp:12: warning: unused variable 'setAutoLegend'
> main.cpp:13: warning: unused variable 'Bottom'
> main.cpp:13: warning: unused variable 'setLegendPos'
> main.cpp:42: warning: unused variable 'blue'
> main.cpp:43: warning: unused variable 'green'
> main.cpp: In function `int main(int, char**)':
> main.cpp:56: error: 'class QApplication' has no member named 'setMainWidget'

I didnt think Qt4's QApplication has setMainWidget anymore..

Srdjan



More information about the Qt-interest-old mailing list