53 tr(
"The document has been modified.\n"
54 "Do you want to save your changes?"),
106 #include <QApplication>
107 #include <QMessageBox>
109 int main(
int argc,
char *argv[])
154 "Do you want to save your changes?"));
The QApplication class manages the GUI application's control flow and main settings.
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)
int main(int argc, char *argv[])
[3]
QMessageBox messageBox(this)
[2]
QAbstractButton * disconnectButton
QPushButton * connectButton
QPushButton * abortButton
#define QT_REQUIRE_VERSION(argc, argv, str)
QApplication app(argc, argv)
[0]