QtBase
v6.3.1
|
#include <QApplication>
#include <QMessageBox>
Go to the source code of this file.
Functions | |
msgBox | setStandardButtons (QMessageBox::Yes|QMessageBox::No) |
switch (msgBox.exec()) | |
msgBox | exec () |
if (msgBox.clickedButton()==connectButton) | |
if (messageBox.clickedButton()==disconnectButton) | |
int | main (int argc, char *argv[]) |
[3] More... | |
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] More... | |
QMessageBox | msgBox (this) |
[7] More... | |
msgBox | setText (tr("The document has been modified.\n" "Do you want to save your changes?")) |
Variables | |
int | ret |
[0] More... | |
QMessageBox | msgBox |
[0] More... | |
QPushButton * | connectButton = msgBox.addButton(tr("Connect"), QMessageBox::ActionRole) |
QPushButton * | abortButton = msgBox.addButton(QMessageBox::Abort) |
QMessageBox | messageBox (this) |
[2] More... | |
QAbstractButton * | disconnectButton |
msgBox exec | ( | ) |
if | ( | messageBox. | clickedButton() = = disconnectButton | ) |
Definition at line 99 of file src_gui_dialogs_qmessagebox.cpp.
if | ( | msgBox. | clickedButton() = = connectButton | ) |
Definition at line 85 of file src_gui_dialogs_qmessagebox.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
[3]
[1]
[4]
[0]
[0]
[1]
[1] //! [2]
[2]
[update-ui]
[update-ui]
[init]
[init]
[connect-price-changed]
[connect-price-changed]
[connect-validity-changed]
[connect-validity-changed]
[connect-user]
[connect-user]
[Connect button signals]
[Connect button signals]
[0] [1]
[main start] //! [register meta-type for queued communications]
[register meta-type for queued communications]
[main finish]
[printing a custom type]
[printing a custom type]
[storing a custom value]
[storing a custom value]
[retrieving a custom value]
[retrieving a custom value]
[1]
[1]
[0]
[0]
[1]
[1]
[adding a corner anchor]
[adding a corner anchor]
[adding anchors]
[adding anchors]
[adding anchors to match sizes]
[adding anchors to match sizes]
[0]
[1]
[1] //! [2]
[2]
[3]
[create, position and show]
[create, position and show]
[first part]
[set up the model]
[set up the model] [last part]
[create, resize and show]
[create, resize and show]
[create, lay out widgets and show]
[create, lay out widgets and show]
[0]
[0]
[1]
[1]
[2]
[2]
Definition at line 109 of file src_gui_dialogs_qmessagebox.cpp.
QMessageBox msgBox | ( | this | ) |
[7]
[9]
msgBox setDefaultButton | ( | QMessageBox::Save | ) |
msgBox setInformativeText | ( | "Do you want to save your changes?" | ) |
msgBox setStandardButtons | ( | QMessageBox::Save|QMessageBox::Discard|QMessageBox::Cancel | ) |
msgBox setStandardButtons | ( | QMessageBox::Yes|QMessageBox::No | ) |
msgBox setText | ( | tr("The document has been modified.\n" "Do you want to save your changes?") | ) |
switch | ( | msgBox. | exec() | ) |
Definition at line 64 of file src_gui_dialogs_qmessagebox.cpp.
switch | ( | ret | ) |
QPushButton* abortButton = msgBox.addButton(QMessageBox::Abort) |
Definition at line 81 of file src_gui_dialogs_qmessagebox.cpp.
QPushButton* connectButton = msgBox.addButton(tr("Connect"), QMessageBox::ActionRole) |
Definition at line 80 of file src_gui_dialogs_qmessagebox.cpp.
QAbstractButton* disconnectButton |
Definition at line 95 of file src_gui_dialogs_qmessagebox.cpp.
QMessageBox messageBox(this) | ( | this | ) |
[2]
[3]
QMessageBox msgBox |
int ret |
[0]
Definition at line 52 of file src_gui_dialogs_qmessagebox.cpp.