![]() |
Qt 6.x
The Qt SDK
|
#include <QApplication>#include <QMessageBox>
Include dependency graph for src_gui_dialogs_qmessagebox.cpp:Go to the source code of this file.
Functions | |
| msgBox | exec () |
| if (msgBox.clickedButton()==connectButton) | |
| if (messageBox.clickedButton()==disconnectButton) | |
| int | main (int argc, char *argv[]) |
| [3] | |
| msgBox | setText ("The document has been modified.") |
| msgBox | setInformativeText ("Do you want to save your changes?") |
| msgBox | setStandardButtons (QMessageBox::Save|QMessageBox::Discard|QMessageBox::Cancel) |
| msgBox | setDefaultButton (QMessageBox::Save) |
| switch (ret) | |
| [6] | |
Variables | |
| int | ret |
| [0] | |
| QMessageBox | msgBox |
| [0] | |
| QPushButton * | connectButton = msgBox.addButton(tr("Connect"), QMessageBox::ActionRole) |
| QPushButton * | abortButton = msgBox.addButton(QMessageBox::Abort) |
| QMessageBox | messageBox (this) |
| [2] | |
| QAbstractButton * | disconnectButton |
| msgBox exec | ( | ) |
| if | ( | messageBox. | clickedButton() = = disconnectButton | ) |
Definition at line 35 of file src_gui_dialogs_qmessagebox.cpp.
| else if | ( | msgBox. | clickedButton() = = connectButton | ) |
Definition at line 21 of file src_gui_dialogs_qmessagebox.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
[3]
[2]
[4]
[0]
[0] [1]
[1]
[0]
[0]
[1]
[1] [2]
[2]
[0]
[0]
[2]
[2]
[22]
[22]
[3]
[3]
[4]
[4]
[10]
[10]
[qcinfo_stream]
[qcinfo_stream]
[11]
[11]
[12]
[12]
[13]
[13]
[qcinfo_printf]
[qcinfo_printf]
[14]
[14]
[15]
[15]
[16]
[16]
[17]
[17]
[0]
[0]
[1]
[1]
[2]
[2]
[Window class using revision]
[Window class using revision]
[0]
[0]
[0]
[0]
[1]
[1]
[2]
[2]
[0]
[0]
[write output] [start stream]
[start stream]
[write element]
[write element]
[finish stream]
[finish stream] [write output]
[1]
[1]
[0]
[0]
[0]
[0] //! [1]
[1]
[0]
[0] //! [1]
[1]
[0]
[0] //! [1]
[1] //! [2]
[2]
[0]
[0]
[1]
[1]
[Adding a resource]
[Adding a resource]
[Inserting an image with a cursor]
[Inserting an image with a cursor]
[Inserting an image using HTML]
[Inserting an image using HTML]
[0]
[0] //! [1]
[1]
Definition at line 45 of file src_gui_dialogs_qmessagebox.cpp.
References app, QApplication::exec(), and QT_REQUIRE_VERSION.
Here is the call graph for this function:| msgBox setDefaultButton | ( | QMessageBox::Save | ) |
| msgBox setInformativeText | ( | "Do you want to save your changes?" | ) |
| msgBox setStandardButtons | ( | QMessageBox::Save|QMessageBox::Discard|QMessageBox::Cancel | ) |
| msgBox setText | ( | "The document has been modified." | ) |
| switch | ( | ret | ) |
[6]
[7]
Definition at line 71 of file src_gui_dialogs_qmessagebox.cpp.
References QMessageBox::Cancel, QMessageBox::Discard, and QMessageBox::Save.
| QPushButton* abortButton = msgBox.addButton(QMessageBox::Abort) |
Definition at line 17 of file src_gui_dialogs_qmessagebox.cpp.
| QPushButton* connectButton = msgBox.addButton(tr("Connect"), QMessageBox::ActionRole) |
Definition at line 16 of file src_gui_dialogs_qmessagebox.cpp.
Referenced by QWizardPrivate::ensureButton().
| QAbstractButton* disconnectButton |
Definition at line 31 of file src_gui_dialogs_qmessagebox.cpp.
| QMessageBox messageBox(this) | ( | this | ) |
[2]
[3]
Referenced by QMessageBoxPrivate::showOldMessageBox(), and QMessageBoxPrivate::showOldMessageBox().
| QMessageBox msgBox |
[0]
[4]
[2]
[5]
[6]
Definition at line 15 of file src_gui_dialogs_qmessagebox.cpp.
Referenced by QMessageBox::about(), QMessageBox::aboutQt(), and showNewMessageBox().
| int ret |
[0]
Definition at line 5 of file src_gui_dialogs_qmessagebox.cpp.