Bonjour.
Je souhaiterais assigner au bouton d'une message box, l'ouverture d'un fichier dans un éditeur de texte.
Voila mon code :
Bien sur, l'appui sur ce bouton ne doit pas fermer ma MessageBox.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 QMessageBox msgBox; msgBox.setWindowTitle("Informations"); msgBox.setText("Choix ?"); msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel | QMessageBox::Open); int ret = msgBox.exec(); if(ret==QMessageBox::Open) { // VISUALISER LE CONTENU D'UN FICHIER } ...
Savez vous comment je peut m'y prendre ?
Pour information, je développe sous Windows.
Cordialement,
PKO
Partager