bonjour,

je vous montre d'abord mon code

mon .cpp :
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
 
void FenPrincipale::creerActions()
{
    actionQuitter = new QAction(tr("&Quitter"), this);
    actionQuitter->setShortcut(tr("Ctrl+Q"));
    actionQuitter->setIcon(QIcon(":/images/images/arret-96px.png"));
    connect(actionQuitter, SIGNAL(triggered()), qApp, SLOT(quit()));
 
 
    actionAPropos = new QAction(tr("&A propos..."), this);
    connect(actionAPropos, SIGNAL(triggered()), this, SLOT(aPropos()));
    actionAPropos->setIcon(QIcon(":/images/images/info-96px.png"));
}
 
void FenPrincipale::aPropos()
{
    QMessageBox::information(this, tr("A propos..."), tr("texte"));
}
mon.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
 
class FenPrincipale : public QMainWindow
{
 
        public:
                FenPrincipale();
                ~FenPrincipale();
 
        private:
                void creerActions();
                void creerMenus();
                void creerBarresOutils();
                void creerBarreEtat();
 
                QAction *actionQuitter;
                QAction *actionAPropos;
 
public slots :
                void aPropos();
 
};
Le problème c'est qu'il me met en avertissement :
Object::connect: No such slot QMainWindow::aPropos() in ..\GestionPi\fenPrincipale.cpp:107
il compile bien, l'appli se lance bien, mais lorsque je clique sur "a propos" dans mon menu de la fenetre rien ne se passe.
Quelqu'un aurait il une idée sur mon erreur?

merci