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
30
31
32
33
34 //maWin.h private: QFileDialog * maDialog; public slots: void affiche(); //maWin.cpp mainWin::mainWin() { setupUi(this); connect(pushButton, SIGNAL(clicked()),this,SLOT(passe())); connect(buttonAjouter,SIGNAL(clicked()),this,SLOT(ajouter())); connect(maDialog,SIGNAL(fileSelected ()),this,SLOT (affiche())); } void mainWin::ajouter() { maDialog=new QFileDialog(); maDialog->show(); } void mainWin::affiche() { QMessageBox aaa; aaa.setText("Putain Rien ne s'affiche") aaa.exec(); }
Quelqu'un pourrait t'il me dire pourquoi la connection au slot de maDialog ne marche pas.
Tous les Slots marche sauf celui de maDialog kan jouvre un fichier rien ne se passe.
D'avance merci
Partager