Please, help me! This is my steps:
- I created a MainWindow application
- I added in the .pro file this code:
QWT_LOCATION = c:/Qwt-6.1.0
INCLUDEPATH += $${QWT_LOCATION}/include
LIBS = -L$${QWT_LOCATION}/lib \
-lqwtd
QWT_LOCATION = c:/Qwt-6.1.0
INCLUDEPATH += $${QWT_LOCATION}/include
LIBS = -L$${QWT_LOCATION}/lib \
-lqwtd
To copy to clipboard, switch view to plain text mode
- I create the class "Plot":
Plot.h
#ifndef PLOT_H
#define PLOT_H
#include "qwt_plot.h"
{
public:
};
#endif // PLOT_H
#ifndef PLOT_H
#define PLOT_H
#include "qwt_plot.h"
class Plot : public QwtPlot
{
public:
Plot( QWidget *parent = 0 );
};
#endif // PLOT_H
To copy to clipboard, switch view to plain text mode
Plot.cpp
#include "Plot.h"
{
}
#include "Plot.h"
Plot::Plot( QWidget *parent ) :
QwtPlot( parent )
{
}
To copy to clipboard, switch view to plain text mode
- I opened the file "MainWindow.ui" and I put on the form the widget "Widget"
- I promoted the "Widget" to "Plot"
- I ran my application and received this message:
The program has unexpectedly finished.
Bookmarks