I have downloaded Qwt and did qmake, make, make install.
Create a project basead in that: http://www.body-sensing.com/index.ph...ivers&Itemid=6

This is what i have:



and this is the code:
testeempty.pro
Qt Code:
  1. SOURCES += \
  2. main.cpp \
  3. dataplot.cpp
  4.  
  5. HEADERS += \
  6. dataplot.h
  7.  
  8. QWT_DIR = /qwt-521
  9. INCLUDEPATH += $$QWT_DIR/include
  10.  
  11. CONFIG(debug, debug|release):LIBS += -L$$QWT_DIR\lib\ \
  12. -lqwtd5
  13. else:LIBS += -L$$QWT_DIR\lib\ \
  14. -lqwt5
  15.  
  16. DEFINES += QWT_DLL
To copy to clipboard, switch view to plain text mode 

dataplot.h
Qt Code:
  1. #ifndef DATAPLOT_H
  2. #define DATAPLOT_H
  3.  
  4. #include <qwt_plot.h>
  5. #include <qwt_plot_curve.h>
  6. #include <qwt_array.h>
  7. #include <qwt_math.h>
  8.  
  9.  
  10. class CurveData
  11. {
  12. public:
  13. CurveData( int size );
  14. const double *x() const;
  15. const double *y() const;
  16. QwtArray<double> d_x;
  17. QwtArray<double> d_y;
  18. };
  19.  
  20.  
  21. class DataPlot : public QwtPlot
  22. {
  23. public:
  24. DataPlot( QWidget* = NULL );
  25. QwtPlotCurve* curve;
  26. };
  27.  
  28.  
  29. #endif // DATAPLOT_H
To copy to clipboard, switch view to plain text mode 

dataplot.cpp
Qt Code:
  1. #include "dataplot.h"
  2.  
  3.  
  4. CurveData::CurveData( int size )
  5. {
  6. d_x.resize( size );
  7. d_y.resize( size );
  8. // Initialize data
  9. for (int i = 0; i< size; i++)
  10. {
  11. d_x[i] = 0.5 * i; // time axis
  12. d_y[i] = 0;
  13. }
  14. }
  15.  
  16.  
  17. const double *CurveData::x() const
  18. {
  19. return d_x.data();
  20. }
  21.  
  22.  
  23. const double *CurveData::y() const
  24. {
  25. return d_y.data();
  26. }
  27.  
  28.  
  29. DataPlot::DataPlot( QWidget* parent ): QwtPlot( parent )
  30. {
  31. setAxisScale( yLeft , -1 , 1 );
  32. // Create curve
  33. curve = new QwtPlotCurve();
  34. curve->attach( this );
  35. }
To copy to clipboard, switch view to plain text mode 

main.cpp
Qt Code:
  1. #include <QApplication>
  2. #include <QMainWindow>
  3. #include "dataplot.h"
  4.  
  5.  
  6. const int PLOT_SIZE = 201;
  7.  
  8.  
  9. class MainWindow : public QMainWindow
  10. {
  11. public:
  12. MainWindow()
  13. {
  14. data = new CurveData( PLOT_SIZE );
  15. plot = new DataPlot;
  16. plot->setTitle( QString("Simple Qwt Usage") );
  17. plot->curve->setRawData( data->x() , data->y() , PLOT_SIZE );
  18. setCentralWidget( plot );
  19. startTimer( 20 );
  20. }
  21. private:
  22. DataPlot* plot;
  23. CurveData* data;
  24. virtual void timerEvent( QTimerEvent* e );
  25. };
  26.  
  27.  
  28. void MainWindow::timerEvent( QTimerEvent* )
  29. {
  30. static double phase = 0.0;
  31. for ( int i = PLOT_SIZE - 1; i > 0; i-- )
  32. data->d_y[i] = data->d_y[i-1];
  33. data->d_y[0] = sin( phase );
  34. plot->replot();
  35. phase += M_PI * 0.02;
  36. }
  37.  
  38.  
  39. int main(int argc, char *argv[])
  40. {
  41. QApplication a(argc, argv);
  42. MainWindow mw;
  43. mw.resize(500,300);
  44. mw.show();
  45. return a.exec();
  46. }
To copy to clipboard, switch view to plain text mode 

And the now the error:
Running build steps for project testeempty...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/ze/Documentos/Qt/testeempty-build-desktop'
/usr/bin/qmake -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../testeempty/testeempty.pro
WARNING: /home/ze/Documentos/Qt/testeempty/testeempty.pro:13: Unescaped backslashes are deprecated.
make: Leaving directory `/home/ze/Documentos/Qt/testeempty-build-desktop'
make: Entering directory `/home/ze/Documentos/Qt/testeempty-build-desktop'
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQWT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testeempty -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/qwt-521/include -I. -I../testeempty -I. -o main.o ../testeempty/main.cpp
In file included from ../testeempty/main.cpp:3:
../testeempty/dataplot.h:4: fatal error: qwt_plot.h: No such file or directory
compilation terminated.
make: Leaving directory `/home/ze/Documentos/Qt/testeempty-build-desktop'
make: *** [main.o] Error 1
The process "/usr/bin/make" exited with code %2.
Error while building project testeempty (target: Desktop)
When executing build step 'Make'
Can anyone help me?!