Problème de classe graphique
Bonjour,
J'ai un problème pour ma classe Graphique me permettant de créer mes graphiques et de les afficher.
Je vous montre mon code :
Graphique.h
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| #ifndef GRAPHIQUE_H
#define GRAPHIQUE_H
#include "qwt_plot.h"
#include <qwt_plot_curve.h>
#include <qwt_plot_zoomer.h>
#include <qwt_plot_grid.h>
#include "maFenetre.h"
#include "ihm.h"
class MainWindow;
class Graphique: public QDialog
{
Q_OBJECT
private:
QwtPlot *graphe;
QwtPlotCurve *courbeParfaite;
QwtPlotCurve *courbeDefaut;
QwtPlotGrid grille;
QwtPlotZoomer *myZoomer;
Ui::MainWindow uimw;
MainWindow *mw;
public:
Graphique(QWidget *parent = 0);
void dessinerCourbesParfaiteDefaut();
void dessinerCourbesErreurs();
};
#endif // GRAPHIQUE_H |
Graphique.cpp
Code:
1 2 3 4 5 6 7
| #include "Graphique.h"
Graphique::Graphique(QWidget *parent) : QDialog(parent) // Erreur sur cette ligne
{
graphe = new QwtPlot(uimw.PartieGraphique);
mw = new MainWindow();
} |
ma fenêtre principale :
Code:
1 2 3 4 5 6 7 8 9 10
| MainWindow::MainWindow()
{
setFixedSize(820, 820);
uiMW.setupUi(this);
fic = new Fichiers(this);
graphique = new Graphique(this);
...
} |
Voici ce que le compilateur m'affiche :
Code:
1 2
| undefined reference to 'vtable for Graphique'
collect2: Id returned 1 exit status |