Salut,

J'ai un petit problème pour compiler mes 2 classes IHM principale + QDialog Apropos.
Voici mes .h : lecteurv2.h
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
#ifndef LECTEURV2_H
#define LECTEURV2_H
 
#include <QtGui/QMainWindow>
#include <QFileDialog>
#include <QFileInfo>
#include <QMessageBox>
#include <QString>
#include "fmod.h"
#include "ui_lecteurv2.h"
 
class apropos;
class lecteurv2 : public QMainWindow
{
    Q_OBJECT
 
public:
    lecteurv2(QWidget *parent = 0);
    ~lecteurv2();
 
private slots:
	void afficherAPropos();
 
private:
    Ui::lecteurv2Class ui;
    apropos * pointeur_apropos;
};
 
#endif // LECTEURV2_H
apropos.h
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef APROPOS_H
#define APROPOS_H
 
#include <QtGui/QDialog>
#include "ui_apropos.h"
 
class apropos : public QDialog
{
    Q_OBJECT
 
public:
    apropos(QWidget *parent = 0);
    ~apropos();
 
private:
    Ui::aproposClass ui;
};
 
#endif // APROPOS_H
Lorsque je compile cette erreur est renvoyé :
Description Resource Path Location Type
`ui' undeclared (first use this function) apropos.cpp lecteurv2 line 6 C/C++ Problem
expected `;' before "ui" apropos.h apropos line 16 C/C++ Problem
expected `;' before "ui" apropos.h lecteurv2 line 16 C/C++ Problem
make: *** [debug] Error 2 apropos line 0 C/C++ Problem
make: *** [debug] Error 2 lecteurv2 line 0 C/C++ Problem
make[1]: *** [debug/apropos.o] Error 1 lecteurv2 line 0 C/C++ Problem
make[1]: *** [debug/main.o] Error 1 apropos line 0 C/C++ Problem
using-declaration for non-member at class scope apropos.h apropos line 16 C/C++ Problem
using-declaration for non-member at class scope apropos.h lecteurv2 line 16 C/C++ Problem
Apparament c'est le Ui::nomdelaClass ui qui pose problème mais comment faire pour arrangé sa ?

Merci d'avance,
++