6 tr(
"The document has been modified.\n"
7 "Do you want to save your changes?"),
42#include <QApplication>
45int main(
int argc,
char *argv[])
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
virtual int exec()
Shows the dialog as a \l{QDialog::Modal Dialogs}{modal dialog}, blocking until the user closes it.
The QMessageBox class provides a modal dialog for informing the user or for asking the user a questio...
void setStandardButtons(StandardButtons buttons)
static StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
void addButton(QAbstractButton *button, ButtonRole role)
void setInformativeText(const QString &text)
QAbstractButton * clickedButton() const
void setText(const QString &text)
void setDefaultButton(QPushButton *button)
#define QT_REQUIRE_VERSION(argc, argv, str)
QMessageBox messageBox(this)
[2]
QAbstractButton * disconnectButton
QPushButton * connectButton
QPushButton * abortButton
QApplication app(argc, argv)
[0]