QMessageBox Class Reference
[QtGui module]
Inherits QDialog.
Types
- enum ButtonRole { InvalidRole, AcceptRole, RejectRole, DestructiveRole, ..., ApplyRole }
- enum Icon { NoIcon, Information, Warning, Critical, Question }
- enum StandardButton { NoButton, Ok, Save, SaveAll, ..., ButtonMask }
- class StandardButtons
Methods
- __init__ (self, QWidget parent = None)
- __init__ (self, Icon, QString, QString, StandardButtons buttons = QMessageBox.NoButton, QWidget parent = None, Qt.WindowFlags flags = Qt.Dialog|Qt.MSWindowsFixedSizeDialogHint)
- __init__ (self, QString, QString, Icon, int, int, int, QWidget parent = None, Qt.WindowFlags flags = Qt.Dialog|Qt.MSWindowsFixedSizeDialogHint)
- addButton (self, QAbstractButton, ButtonRole)
- QPushButton addButton (self, QString, ButtonRole)
- QPushButton addButton (self, StandardButton)
- QAbstractButton button (self, StandardButton)
- ButtonRole buttonRole (self, QAbstractButton)
- list-of-QAbstractButton buttons (self)
- QString buttonText (self, int)
- changeEvent (self, QEvent)
- QAbstractButton clickedButton (self)
- closeEvent (self, QCloseEvent)
- QPushButton defaultButton (self)
- QString detailedText (self)
- QAbstractButton escapeButton (self)
- bool event (self, QEvent)
- Icon icon (self)
- QPixmap iconPixmap (self)
- QString informativeText (self)
- keyPressEvent (self, QKeyEvent)
- open (self)
- open (self, QObject, SLOT()SLOT())
- open (self, callable)
- removeButton (self, QAbstractButton)
- resizeEvent (self, QResizeEvent)
- setButtonText (self, int, QString)
- setDefaultButton (self, QPushButton)
- setDefaultButton (self, StandardButton)
- setDetailedText (self, QString)
- setEscapeButton (self, QAbstractButton)
- setEscapeButton (self, StandardButton)
- setIcon (self, Icon)
- setIconPixmap (self, QPixmap)
- setInformativeText (self, QString)
- setStandardButtons (self, StandardButtons)
- setText (self, QString)
- setTextFormat (self, Qt.TextFormat)
- setWindowModality (self, Qt.WindowModality)
- setWindowTitle (self, QString)
- showEvent (self, QShowEvent)
- QSize sizeHint (self)
- StandardButton standardButton (self, QAbstractButton)
- StandardButtons standardButtons (self)
- QString text (self)
- Qt.TextFormat textFormat (self)
Static Methods
- about (QWidget, QString, QString)
- aboutQt (QWidget, QString title = QString())
- StandardButton critical (QWidget, QString, QString, StandardButtons buttons = QMessageBox.Ok, StandardButton defaultButton = QMessageBox.NoButton)
- int critical (QWidget, QString, QString, int, int, int button2 = 0)
- int critical (QWidget, QString, QString, QString, QString button1Text = QString(), QString button2Text = QString(), int defaultButtonNumber = 0, int escapeButtonNumber = -1)
- StandardButton information (QWidget, QString, QString, StandardButtons buttons = QMessageBox.Ok, StandardButton defaultButton = QMessageBox.NoButton)
- int information (QWidget, QString, QString, int, int button1 = 0, int button2 = 0)
- int information (QWidget, QString, QString, QString, QString button1Text = QString(), QString button2Text = QString(), int defaultButtonNumber = 0, int escapeButtonNumber = -1)
- StandardButton question (QWidget, QString, QString, StandardButtons buttons = QMessageBox.Ok, StandardButton defaultButton = QMessageBox.NoButton)
- int question (QWidget, QString, QString, int, int button1 = 0, int button2 = 0)
- int question (QWidget, QString, QString, QString, QString button1Text = QString(), QString button2Text = QString(), int defaultButtonNumber = 0, int escapeButtonNumber = -1)
- QPixmap standardIcon (Icon)
- StandardButton warning (QWidget, QString, QString, StandardButtons buttons = QMessageBox.Ok, StandardButton defaultButton = QMessageBox.NoButton)
- int warning (QWidget, QString, QString, int, int, int button2 = 0)
- int warning (QWidget, QString, QString, QString, QString button1Text = QString(), QString button2Text = QString(), int defaultButtonNumber = 0, int escapeButtonNumber = -1)
Qt Signals
Detailed Description
Type Documentation
QMessageBox.ButtonRole
QMessageBox.Icon
QMessageBox.StandardButton
Method Documentation
QMessageBox.__init__ (self, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QMessageBox.__init__ (self, Icon, QString, QString, StandardButtons buttons = QMessageBox.NoButton, QWidget parent = None, Qt.WindowFlags flags = Qt.Dialog|Qt.MSWindowsFixedSizeDialogHint)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QMessageBox.__init__ (self, QString, QString, Icon, int, int, int, QWidget parent = None, Qt.WindowFlags flags = Qt.Dialog|Qt.MSWindowsFixedSizeDialogHint)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QMessageBox.about (QWidget, QString, QString)
QMessageBox.aboutQt (QWidget, QString title = QString())
The QAbstractButton argument has it's ownership transferred to Qt.
list-of-QAbstractButton QMessageBox.buttons (self)
QString QMessageBox.buttonText (self, int)
QMessageBox.changeEvent (self, QEvent)
QAbstractButton QMessageBox.clickedButton (self)
QMessageBox.closeEvent (self, QCloseEvent)
StandardButton QMessageBox.critical (QWidget, QString, QString, StandardButtons buttons = QMessageBox.Ok, StandardButton defaultButton = QMessageBox.NoButton)
int QMessageBox.critical (QWidget, QString, QString, int, int, int button2 = 0)
int QMessageBox.critical (QWidget, QString, QString, QString, QString button1Text = QString(), QString button2Text = QString(), int defaultButtonNumber = 0, int escapeButtonNumber = -1)
QPushButton QMessageBox.defaultButton (self)
QString QMessageBox.detailedText (self)
QAbstractButton QMessageBox.escapeButton (self)
bool QMessageBox.event (self, QEvent)
Icon QMessageBox.icon (self)
QPixmap QMessageBox.iconPixmap (self)
StandardButton QMessageBox.information (QWidget, QString, QString, StandardButtons buttons = QMessageBox.Ok, StandardButton defaultButton = QMessageBox.NoButton)
int QMessageBox.information (QWidget, QString, QString, int, int button1 = 0, int button2 = 0)
int QMessageBox.information (QWidget, QString, QString, QString, QString button1Text = QString(), QString button2Text = QString(), int defaultButtonNumber = 0, int escapeButtonNumber = -1)
QString QMessageBox.informativeText (self)
QMessageBox.keyPressEvent (self, QKeyEvent)
QMessageBox.open (self)
QMessageBox.open (self, QObject, SLOT()SLOT())
QMessageBox.open (self, callable)
StandardButton QMessageBox.question (QWidget, QString, QString, StandardButtons buttons = QMessageBox.Ok, StandardButton defaultButton = QMessageBox.NoButton)
int QMessageBox.question (QWidget, QString, QString, int, int button1 = 0, int button2 = 0)
int QMessageBox.question (QWidget, QString, QString, QString, QString button1Text = QString(), QString button2Text = QString(), int defaultButtonNumber = 0, int escapeButtonNumber = -1)
QMessageBox.removeButton (self, QAbstractButton)
The QAbstractButton argument
QMessageBox.resizeEvent (self, QResizeEvent)
QMessageBox.setButtonText (self, int, QString)
QMessageBox.setDefaultButton (self, QPushButton)
QMessageBox.setDefaultButton (self, StandardButton)
QMessageBox.setDetailedText (self, QString)
QMessageBox.setEscapeButton (self, QAbstractButton)
QMessageBox.setEscapeButton (self, StandardButton)
QMessageBox.setIcon (self, Icon)
QMessageBox.setIconPixmap (self, QPixmap)
QMessageBox.setInformativeText (self, QString)
QMessageBox.setStandardButtons (self, StandardButtons)
QMessageBox.setText (self, QString)
QMessageBox.setTextFormat (self, Qt.TextFormat)
QMessageBox.setWindowModality (self, Qt.WindowModality)
QMessageBox.setWindowTitle (self, QString)
QMessageBox.showEvent (self, QShowEvent)
QSize QMessageBox.sizeHint (self)
StandardButtons QMessageBox.standardButtons (self)
QPixmap QMessageBox.standardIcon (Icon)
QString QMessageBox.text (self)
Qt.TextFormat QMessageBox.textFormat (self)
StandardButton QMessageBox.warning (QWidget, QString, QString, StandardButtons buttons = QMessageBox.Ok, StandardButton defaultButton = QMessageBox.NoButton)
int QMessageBox.warning (QWidget, QString, QString, int, int, int button2 = 0)
int QMessageBox.warning (QWidget, QString, QString, QString, QString button1Text = QString(), QString button2Text = QString(), int defaultButtonNumber = 0, int escapeButtonNumber = -1)
Qt Signal Documentation
void buttonClicked (QAbstractButton *)
This is the default overload of this signal.