7#include <QtWidgets/qmessagebox.h>
8#include <QtWidgets/qabstractbutton.h>
20 QMessageBox::ButtonRole role = m_dialog->buttonRole(button);
21 QMessageBox::StandardButton standardButton = m_dialog->standardButton(button);
22 emit clicked(static_cast<StandardButton>(standardButton), static_cast<ButtonRole>(role));
41#if QT_CONFIG(textedit)
56#include "moc_qwidgetplatformmessagedialog_p.cpp"
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)
void setWindowTitle(const QString &title)
void buttonClicked(QAbstractButton *button)
This signal is emitted whenever a button is clicked inside the QMessageBox.
void setInformativeText(const QString &text)
Icon
This enum has the following values:
void setText(const QString &text)
StandardIcon standardIcon() const
QString detailedText() const
QString informativeText() const
QString windowTitle() const
QPlatformDialogHelper::StandardButtons standardButtons() const
QObject * parent() const
Returns a pointer to the parent object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
void setParent(QObject *parent)
Makes the object a child of parent.
T * data() const noexcept
Returns the value of the pointer referenced by this object.
Combined button and popup list for selecting options.
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent