API reference - Class QMessageBox

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QMessageBox

Class hierarchy: QMessageBox » QDialog » QWidget » QObject

Sub-classes: ButtonRole, QFlags_ButtonRole, Icon, QFlags_Icon, StandardButton, QFlags_StandardButton

Public constructors

new QMessageBoxnew(QWidget ptr parent = nullptr)Constructor QMessageBox::QMessageBox(QWidget *parent)
new QMessageBoxnew(const QMessageBox_Icon icon,
string title,
string text,
QMessageBox_QFlags_StandardButton buttons = QMessageBox::NoButton,
QWidget ptr parent = nullptr,
Qt_QFlags_WindowType flags = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint)
Constructor QMessageBox::QMessageBox(QMessageBox::Icon icon, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QWidget *parent, QFlags<Qt::WindowType> flags)
new QMessageBoxnew(string title,
string text,
const QMessageBox_Icon icon,
int button0,
int button1,
int button2,
QWidget ptr parent = nullptr,
Qt_QFlags_WindowType f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint)
Constructor QMessageBox::QMessageBox(const QString &title, const QString &text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget *parent, QFlags<Qt::WindowType> f)

Public methods

[const]QMessageBox ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidacceptVirtual method void QMessageBox::accept()
[signal]voidacceptedSignal declaration for QMessageBox::accepted()
voidaddButton(QAbstractButton ptr button,
const QMessageBox_ButtonRole role)
Method void QMessageBox::addButton(QAbstractButton *button, QMessageBox::ButtonRole role)
QPushButton ptraddButton(string text,
const QMessageBox_ButtonRole role)
Method QPushButton *QMessageBox::addButton(const QString &text, QMessageBox::ButtonRole role)
QPushButton ptraddButton(const QMessageBox_StandardButton button)Method QPushButton *QMessageBox::addButton(QMessageBox::StandardButton button)
[const]QAbstractButton ptrbutton(const QMessageBox_StandardButton which)Method QAbstractButton *QMessageBox::button(QMessageBox::StandardButton which)
[signal]voidbuttonClicked(QAbstractButton ptr button)Signal declaration for QMessageBox::buttonClicked(QAbstractButton *button)
[const]QMessageBox_ButtonRolebuttonRole(QAbstractButton ptr button)Method QMessageBox::ButtonRole QMessageBox::buttonRole(QAbstractButton *button)
[const]stringbuttonText(int button)Method QString QMessageBox::buttonText(int button)
[const]QAbstractButton ptr[]buttonsMethod QList<QAbstractButton *> QMessageBox::buttons()
[const]QCheckBox ptrcheckBoxMethod QCheckBox *QMessageBox::checkBox()
voidcheckBox=(QCheckBox ptr cb)Method void QMessageBox::setCheckBox(QCheckBox *cb)
[const]QAbstractButton ptrclickedButtonMethod QAbstractButton *QMessageBox::clickedButton()
[signal]voidcustomContextMenuRequested(const QPoint pos)Signal declaration for QMessageBox::customContextMenuRequested(const QPoint &pos)
[const]QPushButton ptrdefaultButtonMethod QPushButton *QMessageBox::defaultButton()
voiddefaultButton=(QPushButton ptr button)Method void QMessageBox::setDefaultButton(QPushButton *button)
voiddefaultButton=(const QMessageBox_StandardButton button)Method void QMessageBox::setDefaultButton(QMessageBox::StandardButton button)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QMessageBox::destroyed(QObject *)
[const]stringdetailedTextMethod QString QMessageBox::detailedText()
voiddetailedText=(string text)Method void QMessageBox::setDetailedText(const QString &text)
voiddone(int arg1)Virtual method void QMessageBox::done(int)
voidemit_acceptedEmitter for signal void QMessageBox::accepted()
voidemit_buttonClicked(QAbstractButton ptr button)Emitter for signal void QMessageBox::buttonClicked(QAbstractButton *button)
voidemit_customContextMenuRequested(const QPoint pos)Emitter for signal void QMessageBox::customContextMenuRequested(const QPoint &pos)
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QMessageBox::destroyed(QObject *)
voidemit_finished(int result)Emitter for signal void QMessageBox::finished(int result)
voidemit_objectNameChanged(string objectName)Emitter for signal void QMessageBox::objectNameChanged(const QString &objectName)
voidemit_rejectedEmitter for signal void QMessageBox::rejected()
voidemit_windowIconChanged(const QIcon icon)Emitter for signal void QMessageBox::windowIconChanged(const QIcon &icon)
voidemit_windowIconTextChanged(string iconText)Emitter for signal void QMessageBox::windowIconTextChanged(const QString &iconText)
voidemit_windowTitleChanged(string title)Emitter for signal void QMessageBox::windowTitleChanged(const QString &title)
[const]QAbstractButton ptrescapeButtonMethod QAbstractButton *QMessageBox::escapeButton()
voidescapeButton=(QAbstractButton ptr button)Method void QMessageBox::setEscapeButton(QAbstractButton *button)
voidescapeButton=(const QMessageBox_StandardButton button)Method void QMessageBox::setEscapeButton(QMessageBox::StandardButton button)
intexecVirtual method int QMessageBox::exec()
[signal]voidfinished(int result)Signal declaration for QMessageBox::finished(int result)
[const]boolhasHeightForWidthVirtual method bool QMessageBox::hasHeightForWidth()
[const]intheightForWidth(int arg1)Virtual method int QMessageBox::heightForWidth(int)
[const]QMessageBox_IconiconMethod QMessageBox::Icon QMessageBox::icon()
voidicon=(const QMessageBox_Icon arg1)Method void QMessageBox::setIcon(QMessageBox::Icon)
[const]QPixmapiconPixmapMethod QPixmap QMessageBox::iconPixmap()
voidiconPixmap=(const QPixmap pixmap)Method void QMessageBox::setIconPixmap(const QPixmap &pixmap)
[const]stringinformativeTextMethod QString QMessageBox::informativeText()
voidinformativeText=(string text)Method void QMessageBox::setInformativeText(const QString &text)
[const]variantinputMethodQuery(const Qt_InputMethodQuery arg1)Virtual method QVariant QMessageBox::inputMethodQuery(Qt::InputMethodQuery)
[const]QSizeminimumSizeHintVirtual method QSize QMessageBox::minimumSizeHint()
[signal]voidobjectNameChanged(string objectName)Signal declaration for QMessageBox::objectNameChanged(const QString &objectName)
voidopenVirtual method void QMessageBox::open()
[const]QPaintEngine ptrpaintEngineVirtual method QPaintEngine *QMessageBox::paintEngine()
voidrejectVirtual method void QMessageBox::reject()
[signal]voidrejectedSignal declaration for QMessageBox::rejected()
voidremoveButton(QAbstractButton ptr button)Method void QMessageBox::removeButton(QAbstractButton *button)
voidsetButtonText(int button,
string text)
Method void QMessageBox::setButtonText(int button, const QString &text)
voidsetCheckBox(QCheckBox ptr cb)Method void QMessageBox::setCheckBox(QCheckBox *cb)
voidsetDefaultButton(QPushButton ptr button)Method void QMessageBox::setDefaultButton(QPushButton *button)
voidsetDefaultButton(const QMessageBox_StandardButton button)Method void QMessageBox::setDefaultButton(QMessageBox::StandardButton button)
voidsetDetailedText(string text)Method void QMessageBox::setDetailedText(const QString &text)
voidsetEscapeButton(QAbstractButton ptr button)Method void QMessageBox::setEscapeButton(QAbstractButton *button)
voidsetEscapeButton(const QMessageBox_StandardButton button)Method void QMessageBox::setEscapeButton(QMessageBox::StandardButton button)
voidsetIcon(const QMessageBox_Icon arg1)Method void QMessageBox::setIcon(QMessageBox::Icon)
voidsetIconPixmap(const QPixmap pixmap)Method void QMessageBox::setIconPixmap(const QPixmap &pixmap)
voidsetInformativeText(string text)Method void QMessageBox::setInformativeText(const QString &text)
voidsetStandardButtons(QMessageBox_QFlags_StandardButton buttons)Method void QMessageBox::setStandardButtons(QFlags<QMessageBox::StandardButton> buttons)
voidsetText(string text)Method void QMessageBox::setText(const QString &text)
voidsetTextFormat(const Qt_TextFormat format)Method void QMessageBox::setTextFormat(Qt::TextFormat format)
voidsetTextInteractionFlags(Qt_QFlags_TextInteractionFlag flags)Method void QMessageBox::setTextInteractionFlags(QFlags<Qt::TextInteractionFlag> flags)
voidsetVisible(bool visible)Virtual method void QMessageBox::setVisible(bool visible)
voidsetWindowModality(const Qt_WindowModality windowModality)Method void QMessageBox::setWindowModality(Qt::WindowModality windowModality)
voidsetWindowTitle(string title)Method void QMessageBox::setWindowTitle(const QString &title)
[const]QSizesizeHintVirtual method QSize QMessageBox::sizeHint()
[const]QMessageBox_StandardButtonstandardButton(QAbstractButton ptr button)Method QMessageBox::StandardButton QMessageBox::standardButton(QAbstractButton *button)
[const]QMessageBox_QFlags_StandardButtonstandardButtonsMethod QFlags<QMessageBox::StandardButton> QMessageBox::standardButtons()
voidstandardButtons=(QMessageBox_QFlags_StandardButton buttons)Method void QMessageBox::setStandardButtons(QFlags<QMessageBox::StandardButton> buttons)
[const]stringtextMethod QString QMessageBox::text()
voidtext=(string text)Method void QMessageBox::setText(const QString &text)
[const]Qt_TextFormattextFormatMethod Qt::TextFormat QMessageBox::textFormat()
voidtextFormat=(const Qt_TextFormat format)Method void QMessageBox::setTextFormat(Qt::TextFormat format)
[const]Qt_QFlags_TextInteractionFlagtextInteractionFlagsMethod QFlags<Qt::TextInteractionFlag> QMessageBox::textInteractionFlags()
voidtextInteractionFlags=(Qt_QFlags_TextInteractionFlag flags)Method void QMessageBox::setTextInteractionFlags(QFlags<Qt::TextInteractionFlag> flags)
[signal]voidwindowIconChanged(const QIcon icon)Signal declaration for QMessageBox::windowIconChanged(const QIcon &icon)
[signal]voidwindowIconTextChanged(string iconText)Signal declaration for QMessageBox::windowIconTextChanged(const QString &iconText)
voidwindowModality=(const Qt_WindowModality windowModality)Method void QMessageBox::setWindowModality(Qt::WindowModality windowModality)
voidwindowTitle=(string title)Method void QMessageBox::setWindowTitle(const QString &title)
[signal]voidwindowTitleChanged(string title)Signal declaration for QMessageBox::windowTitleChanged(const QString &title)

Public static methods and constants

[static,const]QMessageBox_StandardButtonAbortEnum constant QMessageBox::Abort
[static,const]QMessageBox_ButtonRoleAcceptRoleEnum constant QMessageBox::AcceptRole
[static,const]QMessageBox_ButtonRoleActionRoleEnum constant QMessageBox::ActionRole
[static,const]QMessageBox_StandardButtonApplyEnum constant QMessageBox::Apply
[static,const]QMessageBox_ButtonRoleApplyRoleEnum constant QMessageBox::ApplyRole
[static,const]QMessageBox_StandardButtonButtonMaskEnum constant QMessageBox::ButtonMask
[static,const]QMessageBox_StandardButtonCancelEnum constant QMessageBox::Cancel
[static,const]QMessageBox_StandardButtonCloseEnum constant QMessageBox::Close
[static,const]QMessageBox_IconCriticalEnum constant QMessageBox::Critical
[static,const]QMessageBox_StandardButtonDefaultEnum constant QMessageBox::Default
[static,const]QMessageBox_ButtonRoleDestructiveRoleEnum constant QMessageBox::DestructiveRole
[static,const]QMessageBox_StandardButtonDiscardEnum constant QMessageBox::Discard
[static,const]QMessageBox_StandardButtonEscapeEnum constant QMessageBox::Escape
[static,const]QMessageBox_StandardButtonFirstButtonEnum constant QMessageBox::FirstButton
[static,const]QMessageBox_StandardButtonFlagMaskEnum constant QMessageBox::FlagMask
[static,const]QMessageBox_StandardButtonHelpEnum constant QMessageBox::Help
[static,const]QMessageBox_ButtonRoleHelpRoleEnum constant QMessageBox::HelpRole
[static,const]QMessageBox_StandardButtonIgnoreEnum constant QMessageBox::Ignore
[static,const]QMessageBox_IconInformationEnum constant QMessageBox::Information
[static,const]QMessageBox_ButtonRoleInvalidRoleEnum constant QMessageBox::InvalidRole
[static,const]QMessageBox_StandardButtonLastButtonEnum constant QMessageBox::LastButton
[static,const]QMessageBox_ButtonRoleNRolesEnum constant QMessageBox::NRoles
[static,const]QMessageBox_StandardButtonNoEnum constant QMessageBox::No
[static,const]QMessageBox_StandardButtonNoAllEnum constant QMessageBox::NoAll
[static,const]QMessageBox_StandardButtonNoButtonEnum constant QMessageBox::NoButton
[static,const]QMessageBox_IconNoIconEnum constant QMessageBox::NoIcon
[static,const]QMessageBox_ButtonRoleNoRoleEnum constant QMessageBox::NoRole
[static,const]QMessageBox_StandardButtonNoToAllEnum constant QMessageBox::NoToAll
[static,const]QMessageBox_StandardButtonOkEnum constant QMessageBox::Ok
[static,const]QMessageBox_StandardButtonOpenEnum constant QMessageBox::Open
[static,const]QMessageBox_IconQuestionEnum constant QMessageBox::Question
[static,const]QMessageBox_ButtonRoleRejectRoleEnum constant QMessageBox::RejectRole
[static,const]QMessageBox_StandardButtonResetEnum constant QMessageBox::Reset
[static,const]QMessageBox_ButtonRoleResetRoleEnum constant QMessageBox::ResetRole
[static,const]QMessageBox_StandardButtonRestoreDefaultsEnum constant QMessageBox::RestoreDefaults
[static,const]QMessageBox_StandardButtonRetryEnum constant QMessageBox::Retry
[static,const]QMessageBox_StandardButtonSaveEnum constant QMessageBox::Save
[static,const]QMessageBox_StandardButtonSaveAllEnum constant QMessageBox::SaveAll
[static,const]QMessageBox_IconWarningEnum constant QMessageBox::Warning
[static,const]QMessageBox_StandardButtonYesEnum constant QMessageBox::Yes
[static,const]QMessageBox_StandardButtonYesAllEnum constant QMessageBox::YesAll
[static,const]QMessageBox_ButtonRoleYesRoleEnum constant QMessageBox::YesRole
[static,const]QMessageBox_StandardButtonYesToAllEnum constant QMessageBox::YesToAll
voidabout(QWidget ptr parent,
string title,
string text)
Static method void QMessageBox::about(QWidget *parent, const QString &title, const QString &text)
voidaboutQt(QWidget ptr parent,
string title = QString())
Static method void QMessageBox::aboutQt(QWidget *parent, const QString &title)
QMessageBox_StandardButtoncritical(QWidget ptr parent,
string title,
string text,
QMessageBox_QFlags_StandardButton buttons = QMessageBox::Ok,
const QMessageBox_StandardButton defaultButton = QMessageBox::NoButton)
Static method QMessageBox::StandardButton QMessageBox::critical(QWidget *parent, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QMessageBox::StandardButton defaultButton)
QMessageBox_StandardButtoninformation(QWidget ptr parent,
string title,
string text,
QMessageBox_QFlags_StandardButton buttons = QMessageBox::Ok,
const QMessageBox_StandardButton defaultButton = QMessageBox::NoButton)
Static method QMessageBox::StandardButton QMessageBox::information(QWidget *parent, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QMessageBox::StandardButton defaultButton)
QMessageBox_StandardButtonquestion(QWidget ptr parent,
string title,
string text,
QMessageBox_QFlags_StandardButton buttons = QMessageBox::StandardButtons(QMessageBox::Yes | QMessageBox::No),
const QMessageBox_StandardButton defaultButton = QMessageBox::NoButton)
Static method QMessageBox::StandardButton QMessageBox::question(QWidget *parent, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QMessageBox::StandardButton defaultButton)
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QMessageBox::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QMessageBox::trUtf8(const char *s, const char *c, int n)
QMessageBox_StandardButtonwarning(QWidget ptr parent,
string title,
string text,
QMessageBox_QFlags_StandardButton buttons = QMessageBox::Ok,
const QMessageBox_StandardButton defaultButton = QMessageBox::NoButton)
Static method QMessageBox::StandardButton QMessageBox::warning(QWidget *parent, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QMessageBox::StandardButton defaultButton)

Protected methods (static, non-static and constructors)

voidactionEvent(QActionEvent ptr event)Virtual method void QMessageBox::actionEvent(QActionEvent *event)
voidadjustPosition(QWidget ptr arg1)Method void QMessageBox::adjustPosition(QWidget *)
voidchangeEvent(QEvent ptr event)Virtual method void QMessageBox::changeEvent(QEvent *event)
voidchildEvent(QChildEvent ptr event)Virtual method void QMessageBox::childEvent(QChildEvent *event)
voidcloseEvent(QCloseEvent ptr event)Virtual method void QMessageBox::closeEvent(QCloseEvent *event)
voidcontextMenuEvent(QContextMenuEvent ptr arg1)Virtual method void QMessageBox::contextMenuEvent(QContextMenuEvent *)
voidcreate(unsigned long long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QMessageBox::create(WId, bool initializeWindow, bool destroyOldWindow)
voidcustomEvent(QEvent ptr event)Virtual method void QMessageBox::customEvent(QEvent *event)
voiddestroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QMessageBox::destroy(bool destroyWindow, bool destroySubWindows)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QMessageBox::disconnectNotify(const QMetaMethod &signal)
voiddragEnterEvent(QDragEnterEvent ptr event)Virtual method void QMessageBox::dragEnterEvent(QDragEnterEvent *event)
voiddragLeaveEvent(QDragLeaveEvent ptr event)Virtual method void QMessageBox::dragLeaveEvent(QDragLeaveEvent *event)
voiddragMoveEvent(QDragMoveEvent ptr event)Virtual method void QMessageBox::dragMoveEvent(QDragMoveEvent *event)
voiddropEvent(QDropEvent ptr event)Virtual method void QMessageBox::dropEvent(QDropEvent *event)
voidenterEvent(QEvent ptr event)Virtual method void QMessageBox::enterEvent(QEvent *event)
boolevent(QEvent ptr e)Virtual method bool QMessageBox::event(QEvent *e)
booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QMessageBox::eventFilter(QObject *, QEvent *)
voidfocusInEvent(QFocusEvent ptr event)Virtual method void QMessageBox::focusInEvent(QFocusEvent *event)
boolfocusNextChildMethod bool QMessageBox::focusNextChild()
boolfocusNextPrevChild(bool next)Virtual method bool QMessageBox::focusNextPrevChild(bool next)
voidfocusOutEvent(QFocusEvent ptr event)Virtual method void QMessageBox::focusOutEvent(QFocusEvent *event)
boolfocusPreviousChildMethod bool QMessageBox::focusPreviousChild()
voidhideEvent(QHideEvent ptr event)Virtual method void QMessageBox::hideEvent(QHideEvent *event)
[const]voidinitPainter(QPainter ptr painter)Virtual method void QMessageBox::initPainter(QPainter *painter)
voidinputMethodEvent(QInputMethodEvent ptr arg1)Virtual method void QMessageBox::inputMethodEvent(QInputMethodEvent *)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QMessageBox::isSignalConnected(const QMetaMethod &signal)
voidkeyPressEvent(QKeyEvent ptr event)Virtual method void QMessageBox::keyPressEvent(QKeyEvent *event)
voidkeyReleaseEvent(QKeyEvent ptr event)Virtual method void QMessageBox::keyReleaseEvent(QKeyEvent *event)
voidleaveEvent(QEvent ptr event)Virtual method void QMessageBox::leaveEvent(QEvent *event)
[const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QMessageBox::metric(QPaintDevice::PaintDeviceMetric)
voidmouseDoubleClickEvent(QMouseEvent ptr event)Virtual method void QMessageBox::mouseDoubleClickEvent(QMouseEvent *event)
voidmouseMoveEvent(QMouseEvent ptr event)Virtual method void QMessageBox::mouseMoveEvent(QMouseEvent *event)
voidmousePressEvent(QMouseEvent ptr event)Virtual method void QMessageBox::mousePressEvent(QMouseEvent *event)
voidmouseReleaseEvent(QMouseEvent ptr event)Virtual method void QMessageBox::mouseReleaseEvent(QMouseEvent *event)
voidmoveEvent(QMoveEvent ptr event)Virtual method void QMessageBox::moveEvent(QMoveEvent *event)
boolnativeEvent(bytes eventType,
void * message,
long ptr result)
Virtual method bool QMessageBox::nativeEvent(const QByteArray &eventType, void *message, long int *result)
voidpaintEvent(QPaintEvent ptr event)Virtual method void QMessageBox::paintEvent(QPaintEvent *event)
voidqt_create(unsigned long long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QMessageBox::create(WId, bool initializeWindow, bool destroyOldWindow)
voidqt_destroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QMessageBox::destroy(bool destroyWindow, bool destroySubWindows)
[const]intreceivers(string signal)Method int QMessageBox::receivers(const char *signal)
[const]QPaintDevice ptrredirected(QPoint ptr offset)Virtual method QPaintDevice *QMessageBox::redirected(QPoint *offset)
voidresizeEvent(QResizeEvent ptr event)Virtual method void QMessageBox::resizeEvent(QResizeEvent *event)
[const]QObject ptrsenderMethod QObject *QMessageBox::sender()
[const]intsenderSignalIndexMethod int QMessageBox::senderSignalIndex()
[const]QPainter ptrsharedPainterVirtual method QPainter *QMessageBox::sharedPainter()
voidshowEvent(QShowEvent ptr event)Virtual method void QMessageBox::showEvent(QShowEvent *event)
voidtabletEvent(QTabletEvent ptr event)Virtual method void QMessageBox::tabletEvent(QTabletEvent *event)
voidtimerEvent(QTimerEvent ptr event)Virtual method void QMessageBox::timerEvent(QTimerEvent *event)
voidupdateMicroFocusMethod void QMessageBox::updateMicroFocus()
voidwheelEvent(QWheelEvent ptr event)Virtual method void QMessageBox::wheelEvent(QWheelEvent *event)

Detailed description

Abort

Signature: [static,const] QMessageBox_StandardButton Abort

Description: Enum constant QMessageBox::Abort

Python specific notes:
The object exposes a readable attribute 'Abort'. This is the getter.

AcceptRole

Signature: [static,const] QMessageBox_ButtonRole AcceptRole

Description: Enum constant QMessageBox::AcceptRole

Python specific notes:
The object exposes a readable attribute 'AcceptRole'. This is the getter.

ActionRole

Signature: [static,const] QMessageBox_ButtonRole ActionRole

Description: Enum constant QMessageBox::ActionRole

Python specific notes:
The object exposes a readable attribute 'ActionRole'. This is the getter.

Apply

Signature: [static,const] QMessageBox_StandardButton Apply

Description: Enum constant QMessageBox::Apply

Python specific notes:
The object exposes a readable attribute 'Apply'. This is the getter.

ApplyRole

Signature: [static,const] QMessageBox_ButtonRole ApplyRole

Description: Enum constant QMessageBox::ApplyRole

Python specific notes:
The object exposes a readable attribute 'ApplyRole'. This is the getter.

ButtonMask

Signature: [static,const] QMessageBox_StandardButton ButtonMask

Description: Enum constant QMessageBox::ButtonMask

Python specific notes:
The object exposes a readable attribute 'ButtonMask'. This is the getter.

Cancel

Signature: [static,const] QMessageBox_StandardButton Cancel

Description: Enum constant QMessageBox::Cancel

Python specific notes:
The object exposes a readable attribute 'Cancel'. This is the getter.

Close

Signature: [static,const] QMessageBox_StandardButton Close

Description: Enum constant QMessageBox::Close

Python specific notes:
The object exposes a readable attribute 'Close'. This is the getter.

Critical

Signature: [static,const] QMessageBox_Icon Critical

Description: Enum constant QMessageBox::Critical

Python specific notes:
The object exposes a readable attribute 'Critical'. This is the getter.

Default

Signature: [static,const] QMessageBox_StandardButton Default

Description: Enum constant QMessageBox::Default

Python specific notes:
The object exposes a readable attribute 'Default'. This is the getter.

DestructiveRole

Signature: [static,const] QMessageBox_ButtonRole DestructiveRole

Description: Enum constant QMessageBox::DestructiveRole

Python specific notes:
The object exposes a readable attribute 'DestructiveRole'. This is the getter.

Discard

Signature: [static,const] QMessageBox_StandardButton Discard

Description: Enum constant QMessageBox::Discard

Python specific notes:
The object exposes a readable attribute 'Discard'. This is the getter.

Escape

Signature: [static,const] QMessageBox_StandardButton Escape

Description: Enum constant QMessageBox::Escape

Python specific notes:
The object exposes a readable attribute 'Escape'. This is the getter.

FirstButton

Signature: [static,const] QMessageBox_StandardButton FirstButton

Description: Enum constant QMessageBox::FirstButton

Python specific notes:
The object exposes a readable attribute 'FirstButton'. This is the getter.

FlagMask

Signature: [static,const] QMessageBox_StandardButton FlagMask

Description: Enum constant QMessageBox::FlagMask

Python specific notes:
The object exposes a readable attribute 'FlagMask'. This is the getter.

Help

Signature: [static,const] QMessageBox_StandardButton Help

Description: Enum constant QMessageBox::Help

Python specific notes:
The object exposes a readable attribute 'Help'. This is the getter.

HelpRole

Signature: [static,const] QMessageBox_ButtonRole HelpRole

Description: Enum constant QMessageBox::HelpRole

Python specific notes:
The object exposes a readable attribute 'HelpRole'. This is the getter.

Ignore

Signature: [static,const] QMessageBox_StandardButton Ignore

Description: Enum constant QMessageBox::Ignore

Python specific notes:
The object exposes a readable attribute 'Ignore'. This is the getter.

Information

Signature: [static,const] QMessageBox_Icon Information

Description: Enum constant QMessageBox::Information

Python specific notes:
The object exposes a readable attribute 'Information'. This is the getter.

InvalidRole

Signature: [static,const] QMessageBox_ButtonRole InvalidRole

Description: Enum constant QMessageBox::InvalidRole

Python specific notes:
The object exposes a readable attribute 'InvalidRole'. This is the getter.

LastButton

Signature: [static,const] QMessageBox_StandardButton LastButton

Description: Enum constant QMessageBox::LastButton

Python specific notes:
The object exposes a readable attribute 'LastButton'. This is the getter.

NRoles

Signature: [static,const] QMessageBox_ButtonRole NRoles

Description: Enum constant QMessageBox::NRoles

Python specific notes:
The object exposes a readable attribute 'NRoles'. This is the getter.

No

Signature: [static,const] QMessageBox_StandardButton No

Description: Enum constant QMessageBox::No

Python specific notes:
The object exposes a readable attribute 'No'. This is the getter.

NoAll

Signature: [static,const] QMessageBox_StandardButton NoAll

Description: Enum constant QMessageBox::NoAll

Python specific notes:
The object exposes a readable attribute 'NoAll'. This is the getter.

NoButton

Signature: [static,const] QMessageBox_StandardButton NoButton

Description: Enum constant QMessageBox::NoButton

Python specific notes:
The object exposes a readable attribute 'NoButton'. This is the getter.

NoIcon

Signature: [static,const] QMessageBox_Icon NoIcon

Description: Enum constant QMessageBox::NoIcon

Python specific notes:
The object exposes a readable attribute 'NoIcon'. This is the getter.

NoRole

Signature: [static,const] QMessageBox_ButtonRole NoRole

Description: Enum constant QMessageBox::NoRole

Python specific notes:
The object exposes a readable attribute 'NoRole'. This is the getter.

NoToAll

Signature: [static,const] QMessageBox_StandardButton NoToAll

Description: Enum constant QMessageBox::NoToAll

Python specific notes:
The object exposes a readable attribute 'NoToAll'. This is the getter.

Ok

Signature: [static,const] QMessageBox_StandardButton Ok

Description: Enum constant QMessageBox::Ok

Python specific notes:
The object exposes a readable attribute 'Ok'. This is the getter.

Open

Signature: [static,const] QMessageBox_StandardButton Open

Description: Enum constant QMessageBox::Open

Python specific notes:
The object exposes a readable attribute 'Open'. This is the getter.

Question

Signature: [static,const] QMessageBox_Icon Question

Description: Enum constant QMessageBox::Question

Python specific notes:
The object exposes a readable attribute 'Question'. This is the getter.

RejectRole

Signature: [static,const] QMessageBox_ButtonRole RejectRole

Description: Enum constant QMessageBox::RejectRole

Python specific notes:
The object exposes a readable attribute 'RejectRole'. This is the getter.

Reset

Signature: [static,const] QMessageBox_StandardButton Reset

Description: Enum constant QMessageBox::Reset

Python specific notes:
The object exposes a readable attribute 'Reset'. This is the getter.

ResetRole

Signature: [static,const] QMessageBox_ButtonRole ResetRole

Description: Enum constant QMessageBox::ResetRole

Python specific notes:
The object exposes a readable attribute 'ResetRole'. This is the getter.

RestoreDefaults

Signature: [static,const] QMessageBox_StandardButton RestoreDefaults

Description: Enum constant QMessageBox::RestoreDefaults

Python specific notes:
The object exposes a readable attribute 'RestoreDefaults'. This is the getter.

Retry

Signature: [static,const] QMessageBox_StandardButton Retry

Description: Enum constant QMessageBox::Retry

Python specific notes:
The object exposes a readable attribute 'Retry'. This is the getter.

Save

Signature: [static,const] QMessageBox_StandardButton Save

Description: Enum constant QMessageBox::Save

Python specific notes:
The object exposes a readable attribute 'Save'. This is the getter.

SaveAll

Signature: [static,const] QMessageBox_StandardButton SaveAll

Description: Enum constant QMessageBox::SaveAll

Python specific notes:
The object exposes a readable attribute 'SaveAll'. This is the getter.

Warning

Signature: [static,const] QMessageBox_Icon Warning

Description: Enum constant QMessageBox::Warning

Python specific notes:
The object exposes a readable attribute 'Warning'. This is the getter.

Yes

Signature: [static,const] QMessageBox_StandardButton Yes

Description: Enum constant QMessageBox::Yes

Python specific notes:
The object exposes a readable attribute 'Yes'. This is the getter.

YesAll

Signature: [static,const] QMessageBox_StandardButton YesAll

Description: Enum constant QMessageBox::YesAll

Python specific notes:
The object exposes a readable attribute 'YesAll'. This is the getter.

YesRole

Signature: [static,const] QMessageBox_ButtonRole YesRole

Description: Enum constant QMessageBox::YesRole

Python specific notes:
The object exposes a readable attribute 'YesRole'. This is the getter.

YesToAll

Signature: [static,const] QMessageBox_StandardButton YesToAll

Description: Enum constant QMessageBox::YesToAll

Python specific notes:
The object exposes a readable attribute 'YesToAll'. This is the getter.

_const_cast

Signature: [const] QMessageBox ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

about

Signature: [static] void about (QWidget ptr parent, string title, string text)

Description: Static method void QMessageBox::about(QWidget *parent, const QString &title, const QString &text)

This method is static and can be called without an instance.

aboutQt

Signature: [static] void aboutQt (QWidget ptr parent, string title = QString())

Description: Static method void QMessageBox::aboutQt(QWidget *parent, const QString &title)

This method is static and can be called without an instance.

accept

Signature: void accept

Description: Virtual method void QMessageBox::accept()

This method can be reimplemented in a derived class.

accepted

Signature: [signal] void accepted

Description: Signal declaration for QMessageBox::accepted()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'accepted'. This is the getter.
The object exposes a writable attribute 'accepted'. This is the setter.

actionEvent

Signature: void actionEvent (QActionEvent ptr event)

Description: Virtual method void QMessageBox::actionEvent(QActionEvent *event)

This method can be reimplemented in a derived class.

addButton

(1) Signature: void addButton (QAbstractButton ptr button, const QMessageBox_ButtonRole role)

Description: Method void QMessageBox::addButton(QAbstractButton *button, QMessageBox::ButtonRole role)

(2) Signature: QPushButton ptr addButton (string text, const QMessageBox_ButtonRole role)

Description: Method QPushButton *QMessageBox::addButton(const QString &text, QMessageBox::ButtonRole role)

(3) Signature: QPushButton ptr addButton (const QMessageBox_StandardButton button)

Description: Method QPushButton *QMessageBox::addButton(QMessageBox::StandardButton button)

adjustPosition

Signature: void adjustPosition (QWidget ptr arg1)

Description: Method void QMessageBox::adjustPosition(QWidget *)

This method is protected and can only be called from inside a derived class.

button

Signature: [const] QAbstractButton ptr button (const QMessageBox_StandardButton which)

Description: Method QAbstractButton *QMessageBox::button(QMessageBox::StandardButton which)

buttonClicked

Signature: [signal] void buttonClicked (QAbstractButton ptr button)

Description: Signal declaration for QMessageBox::buttonClicked(QAbstractButton *button)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'buttonClicked'. This is the getter.
The object exposes a writable attribute 'buttonClicked'. This is the setter.

buttonRole

Signature: [const] QMessageBox_ButtonRole buttonRole (QAbstractButton ptr button)

Description: Method QMessageBox::ButtonRole QMessageBox::buttonRole(QAbstractButton *button)

buttonText

Signature: [const] string buttonText (int button)

Description: Method QString QMessageBox::buttonText(int button)

buttons

Signature: [const] QAbstractButton ptr[] buttons

Description: Method QList<QAbstractButton *> QMessageBox::buttons()

changeEvent

Signature: void changeEvent (QEvent ptr event)

Description: Virtual method void QMessageBox::changeEvent(QEvent *event)

This method can be reimplemented in a derived class.

checkBox

Signature: [const] QCheckBox ptr checkBox

Description: Method QCheckBox *QMessageBox::checkBox()

Python specific notes:
The object exposes a readable attribute 'checkBox'. This is the getter.

checkBox=

Signature: void checkBox= (QCheckBox ptr cb)

Description: Method void QMessageBox::setCheckBox(QCheckBox *cb)

Python specific notes:
The object exposes a writable attribute 'checkBox'. This is the setter.

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QMessageBox::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

clickedButton

Signature: [const] QAbstractButton ptr clickedButton

Description: Method QAbstractButton *QMessageBox::clickedButton()

closeEvent

Signature: void closeEvent (QCloseEvent ptr event)

Description: Virtual method void QMessageBox::closeEvent(QCloseEvent *event)

This method can be reimplemented in a derived class.

contextMenuEvent

Signature: void contextMenuEvent (QContextMenuEvent ptr arg1)

Description: Virtual method void QMessageBox::contextMenuEvent(QContextMenuEvent *)

This method can be reimplemented in a derived class.

create

Signature: void create (unsigned long long arg1 = 0, bool initializeWindow = true, bool destroyOldWindow = true)

Description: Method void QMessageBox::create(WId, bool initializeWindow, bool destroyOldWindow)

This method is protected and can only be called from inside a derived class.

critical

Signature: [static] QMessageBox_StandardButton critical (QWidget ptr parent, string title, string text, QMessageBox_QFlags_StandardButton buttons = QMessageBox::Ok, const QMessageBox_StandardButton defaultButton = QMessageBox::NoButton)

Description: Static method QMessageBox::StandardButton QMessageBox::critical(QWidget *parent, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QMessageBox::StandardButton defaultButton)

This method is static and can be called without an instance.

customContextMenuRequested

Signature: [signal] void customContextMenuRequested (const QPoint pos)

Description: Signal declaration for QMessageBox::customContextMenuRequested(const QPoint &pos)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'customContextMenuRequested'. This is the getter.
The object exposes a writable attribute 'customContextMenuRequested'. This is the setter.

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QMessageBox::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

defaultButton

Signature: [const] QPushButton ptr defaultButton

Description: Method QPushButton *QMessageBox::defaultButton()

Python specific notes:
The object exposes a readable attribute 'defaultButton'. This is the getter.

defaultButton=

(1) Signature: void defaultButton= (QPushButton ptr button)

Description: Method void QMessageBox::setDefaultButton(QPushButton *button)

Python specific notes:
The object exposes a writable attribute 'defaultButton'. This is the setter.

(2) Signature: void defaultButton= (const QMessageBox_StandardButton button)

Description: Method void QMessageBox::setDefaultButton(QMessageBox::StandardButton button)

Python specific notes:
The object exposes a writable attribute 'defaultButton'. This is the setter.

destroy

Signature: void destroy (bool destroyWindow = true, bool destroySubWindows = true)

Description: Method void QMessageBox::destroy(bool destroyWindow, bool destroySubWindows)

This method is protected and can only be called from inside a derived class.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QMessageBox::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

detailedText

Signature: [const] string detailedText

Description: Method QString QMessageBox::detailedText()

Python specific notes:
The object exposes a readable attribute 'detailedText'. This is the getter.

detailedText=

Signature: void detailedText= (string text)

Description: Method void QMessageBox::setDetailedText(const QString &text)

Python specific notes:
The object exposes a writable attribute 'detailedText'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QMessageBox::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

done

Signature: void done (int arg1)

Description: Virtual method void QMessageBox::done(int)

This method can be reimplemented in a derived class.

dragEnterEvent

Signature: void dragEnterEvent (QDragEnterEvent ptr event)

Description: Virtual method void QMessageBox::dragEnterEvent(QDragEnterEvent *event)

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QDragLeaveEvent ptr event)

Description: Virtual method void QMessageBox::dragLeaveEvent(QDragLeaveEvent *event)

This method can be reimplemented in a derived class.

dragMoveEvent

Signature: void dragMoveEvent (QDragMoveEvent ptr event)

Description: Virtual method void QMessageBox::dragMoveEvent(QDragMoveEvent *event)

This method can be reimplemented in a derived class.

dropEvent

Signature: void dropEvent (QDropEvent ptr event)

Description: Virtual method void QMessageBox::dropEvent(QDropEvent *event)

This method can be reimplemented in a derived class.

emit_accepted

Signature: void emit_accepted

Description: Emitter for signal void QMessageBox::accepted()

Call this method to emit this signal.

emit_buttonClicked

Signature: void emit_buttonClicked (QAbstractButton ptr button)

Description: Emitter for signal void QMessageBox::buttonClicked(QAbstractButton *button)

Call this method to emit this signal.

emit_customContextMenuRequested

Signature: void emit_customContextMenuRequested (const QPoint pos)

Description: Emitter for signal void QMessageBox::customContextMenuRequested(const QPoint &pos)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QMessageBox::destroyed(QObject *)

Call this method to emit this signal.

emit_finished

Signature: void emit_finished (int result)

Description: Emitter for signal void QMessageBox::finished(int result)

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QMessageBox::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_rejected

Signature: void emit_rejected

Description: Emitter for signal void QMessageBox::rejected()

Call this method to emit this signal.

emit_windowIconChanged

Signature: void emit_windowIconChanged (const QIcon icon)

Description: Emitter for signal void QMessageBox::windowIconChanged(const QIcon &icon)

Call this method to emit this signal.

emit_windowIconTextChanged

Signature: void emit_windowIconTextChanged (string iconText)

Description: Emitter for signal void QMessageBox::windowIconTextChanged(const QString &iconText)

Call this method to emit this signal.

emit_windowTitleChanged

Signature: void emit_windowTitleChanged (string title)

Description: Emitter for signal void QMessageBox::windowTitleChanged(const QString &title)

Call this method to emit this signal.

enterEvent

Signature: void enterEvent (QEvent ptr event)

Description: Virtual method void QMessageBox::enterEvent(QEvent *event)

This method can be reimplemented in a derived class.

escapeButton

Signature: [const] QAbstractButton ptr escapeButton

Description: Method QAbstractButton *QMessageBox::escapeButton()

Python specific notes:
The object exposes a readable attribute 'escapeButton'. This is the getter.

escapeButton=

(1) Signature: void escapeButton= (QAbstractButton ptr button)

Description: Method void QMessageBox::setEscapeButton(QAbstractButton *button)

Python specific notes:
The object exposes a writable attribute 'escapeButton'. This is the setter.

(2) Signature: void escapeButton= (const QMessageBox_StandardButton button)

Description: Method void QMessageBox::setEscapeButton(QMessageBox::StandardButton button)

Python specific notes:
The object exposes a writable attribute 'escapeButton'. This is the setter.

event

Signature: bool event (QEvent ptr e)

Description: Virtual method bool QMessageBox::event(QEvent *e)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr arg1, QEvent ptr arg2)

Description: Virtual method bool QMessageBox::eventFilter(QObject *, QEvent *)

This method can be reimplemented in a derived class.

exec

Signature: int exec

Description: Virtual method int QMessageBox::exec()

This method can be reimplemented in a derived class.

Python specific notes:
This attribute is available as 'exec_' in Python.

finished

Signature: [signal] void finished (int result)

Description: Signal declaration for QMessageBox::finished(int result)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'finished'. This is the getter.
The object exposes a writable attribute 'finished'. This is the setter.

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr event)

Description: Virtual method void QMessageBox::focusInEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusNextChild

Signature: bool focusNextChild

Description: Method bool QMessageBox::focusNextChild()

This method is protected and can only be called from inside a derived class.

focusNextPrevChild

Signature: bool focusNextPrevChild (bool next)

Description: Virtual method bool QMessageBox::focusNextPrevChild(bool next)

This method can be reimplemented in a derived class.

focusOutEvent

Signature: void focusOutEvent (QFocusEvent ptr event)

Description: Virtual method void QMessageBox::focusOutEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusPreviousChild

Signature: bool focusPreviousChild

Description: Method bool QMessageBox::focusPreviousChild()

This method is protected and can only be called from inside a derived class.

hasHeightForWidth

Signature: [const] bool hasHeightForWidth

Description: Virtual method bool QMessageBox::hasHeightForWidth()

This method can be reimplemented in a derived class.

heightForWidth

Signature: [const] int heightForWidth (int arg1)

Description: Virtual method int QMessageBox::heightForWidth(int)

This method can be reimplemented in a derived class.

hideEvent

Signature: void hideEvent (QHideEvent ptr event)

Description: Virtual method void QMessageBox::hideEvent(QHideEvent *event)

This method can be reimplemented in a derived class.

icon

Signature: [const] QMessageBox_Icon icon

Description: Method QMessageBox::Icon QMessageBox::icon()

Python specific notes:
The object exposes a readable attribute 'icon'. This is the getter.

icon=

Signature: void icon= (const QMessageBox_Icon arg1)

Description: Method void QMessageBox::setIcon(QMessageBox::Icon)

Python specific notes:
The object exposes a writable attribute 'icon'. This is the setter.

iconPixmap

Signature: [const] QPixmap iconPixmap

Description: Method QPixmap QMessageBox::iconPixmap()

Python specific notes:
The object exposes a readable attribute 'iconPixmap'. This is the getter.

iconPixmap=

Signature: void iconPixmap= (const QPixmap pixmap)

Description: Method void QMessageBox::setIconPixmap(const QPixmap &pixmap)

Python specific notes:
The object exposes a writable attribute 'iconPixmap'. This is the setter.

information

Signature: [static] QMessageBox_StandardButton information (QWidget ptr parent, string title, string text, QMessageBox_QFlags_StandardButton buttons = QMessageBox::Ok, const QMessageBox_StandardButton defaultButton = QMessageBox::NoButton)

Description: Static method QMessageBox::StandardButton QMessageBox::information(QWidget *parent, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QMessageBox::StandardButton defaultButton)

This method is static and can be called without an instance.

informativeText

Signature: [const] string informativeText

Description: Method QString QMessageBox::informativeText()

Python specific notes:
The object exposes a readable attribute 'informativeText'. This is the getter.

informativeText=

Signature: void informativeText= (string text)

Description: Method void QMessageBox::setInformativeText(const QString &text)

Python specific notes:
The object exposes a writable attribute 'informativeText'. This is the setter.

initPainter

Signature: [const] void initPainter (QPainter ptr painter)

Description: Virtual method void QMessageBox::initPainter(QPainter *painter)

This method can be reimplemented in a derived class.

inputMethodEvent

Signature: void inputMethodEvent (QInputMethodEvent ptr arg1)

Description: Virtual method void QMessageBox::inputMethodEvent(QInputMethodEvent *)

This method can be reimplemented in a derived class.

inputMethodQuery

Signature: [const] variant inputMethodQuery (const Qt_InputMethodQuery arg1)

Description: Virtual method QVariant QMessageBox::inputMethodQuery(Qt::InputMethodQuery)

This method can be reimplemented in a derived class.

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QMessageBox::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

keyPressEvent

Signature: void keyPressEvent (QKeyEvent ptr event)

Description: Virtual method void QMessageBox::keyPressEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

keyReleaseEvent

Signature: void keyReleaseEvent (QKeyEvent ptr event)

Description: Virtual method void QMessageBox::keyReleaseEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

leaveEvent

Signature: void leaveEvent (QEvent ptr event)

Description: Virtual method void QMessageBox::leaveEvent(QEvent *event)

This method can be reimplemented in a derived class.

metric

Signature: [const] int metric (const QPaintDevice_PaintDeviceMetric arg1)

Description: Virtual method int QMessageBox::metric(QPaintDevice::PaintDeviceMetric)

This method can be reimplemented in a derived class.

minimumSizeHint

Signature: [const] QSize minimumSizeHint

Description: Virtual method QSize QMessageBox::minimumSizeHint()

This method can be reimplemented in a derived class.

mouseDoubleClickEvent

Signature: void mouseDoubleClickEvent (QMouseEvent ptr event)

Description: Virtual method void QMessageBox::mouseDoubleClickEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mouseMoveEvent

Signature: void mouseMoveEvent (QMouseEvent ptr event)

Description: Virtual method void QMessageBox::mouseMoveEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QMouseEvent ptr event)

Description: Virtual method void QMessageBox::mousePressEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QMouseEvent ptr event)

Description: Virtual method void QMessageBox::mouseReleaseEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

moveEvent

Signature: void moveEvent (QMoveEvent ptr event)

Description: Virtual method void QMessageBox::moveEvent(QMoveEvent *event)

This method can be reimplemented in a derived class.

nativeEvent

Signature: bool nativeEvent (bytes eventType, void * message, long ptr result)

Description: Virtual method bool QMessageBox::nativeEvent(const QByteArray &eventType, void *message, long int *result)

This method can be reimplemented in a derived class.

new

(1) Signature: [static] new QMessageBox new (QWidget ptr parent = nullptr)

Description: Constructor QMessageBox::QMessageBox(QWidget *parent)

This method creates an object of class QMessageBox.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QMessageBox new (const QMessageBox_Icon icon, string title, string text, QMessageBox_QFlags_StandardButton buttons = QMessageBox::NoButton, QWidget ptr parent = nullptr, Qt_QFlags_WindowType flags = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint)

Description: Constructor QMessageBox::QMessageBox(QMessageBox::Icon icon, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QWidget *parent, QFlags<Qt::WindowType> flags)

This method creates an object of class QMessageBox.

Python specific notes:
This method is the default initializer of the object.

(3) Signature: [static] new QMessageBox new (string title, string text, const QMessageBox_Icon icon, int button0, int button1, int button2, QWidget ptr parent = nullptr, Qt_QFlags_WindowType f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint)

Description: Constructor QMessageBox::QMessageBox(const QString &title, const QString &text, QMessageBox::Icon icon, int button0, int button1, int button2, QWidget *parent, QFlags<Qt::WindowType> f)

This method creates an object of class QMessageBox.

Python specific notes:
This method is the default initializer of the object.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QMessageBox::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

open

Signature: void open

Description: Virtual method void QMessageBox::open()

This method can be reimplemented in a derived class.

paintEngine

Signature: [const] QPaintEngine ptr paintEngine

Description: Virtual method QPaintEngine *QMessageBox::paintEngine()

This method can be reimplemented in a derived class.

paintEvent

Signature: void paintEvent (QPaintEvent ptr event)

Description: Virtual method void QMessageBox::paintEvent(QPaintEvent *event)

This method can be reimplemented in a derived class.

qt_create

Signature: void qt_create (unsigned long long arg1 = 0, bool initializeWindow = true, bool destroyOldWindow = true)

Description: Method void QMessageBox::create(WId, bool initializeWindow, bool destroyOldWindow)

This method is protected and can only be called from inside a derived class.

qt_destroy

Signature: void qt_destroy (bool destroyWindow = true, bool destroySubWindows = true)

Description: Method void QMessageBox::destroy(bool destroyWindow, bool destroySubWindows)

This method is protected and can only be called from inside a derived class.

question

Signature: [static] QMessageBox_StandardButton question (QWidget ptr parent, string title, string text, QMessageBox_QFlags_StandardButton buttons = QMessageBox::StandardButtons(QMessageBox::Yes | QMessageBox::No), const QMessageBox_StandardButton defaultButton = QMessageBox::NoButton)

Description: Static method QMessageBox::StandardButton QMessageBox::question(QWidget *parent, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QMessageBox::StandardButton defaultButton)

This method is static and can be called without an instance.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QMessageBox::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

redirected

Signature: [const] QPaintDevice ptr redirected (QPoint ptr offset)

Description: Virtual method QPaintDevice *QMessageBox::redirected(QPoint *offset)

This method can be reimplemented in a derived class.

reject

Signature: void reject

Description: Virtual method void QMessageBox::reject()

This method can be reimplemented in a derived class.

rejected

Signature: [signal] void rejected

Description: Signal declaration for QMessageBox::rejected()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'rejected'. This is the getter.
The object exposes a writable attribute 'rejected'. This is the setter.

removeButton

Signature: void removeButton (QAbstractButton ptr button)

Description: Method void QMessageBox::removeButton(QAbstractButton *button)

resizeEvent

Signature: void resizeEvent (QResizeEvent ptr event)

Description: Virtual method void QMessageBox::resizeEvent(QResizeEvent *event)

This method can be reimplemented in a derived class.

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QMessageBox::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QMessageBox::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

setButtonText

Signature: void setButtonText (int button, string text)

Description: Method void QMessageBox::setButtonText(int button, const QString &text)

setCheckBox

Signature: void setCheckBox (QCheckBox ptr cb)

Description: Method void QMessageBox::setCheckBox(QCheckBox *cb)

Python specific notes:
The object exposes a writable attribute 'checkBox'. This is the setter.

setDefaultButton

(1) Signature: void setDefaultButton (QPushButton ptr button)

Description: Method void QMessageBox::setDefaultButton(QPushButton *button)

Python specific notes:
The object exposes a writable attribute 'defaultButton'. This is the setter.

(2) Signature: void setDefaultButton (const QMessageBox_StandardButton button)

Description: Method void QMessageBox::setDefaultButton(QMessageBox::StandardButton button)

Python specific notes:
The object exposes a writable attribute 'defaultButton'. This is the setter.

setDetailedText

Signature: void setDetailedText (string text)

Description: Method void QMessageBox::setDetailedText(const QString &text)

Python specific notes:
The object exposes a writable attribute 'detailedText'. This is the setter.

setEscapeButton

(1) Signature: void setEscapeButton (QAbstractButton ptr button)

Description: Method void QMessageBox::setEscapeButton(QAbstractButton *button)

Python specific notes:
The object exposes a writable attribute 'escapeButton'. This is the setter.

(2) Signature: void setEscapeButton (const QMessageBox_StandardButton button)

Description: Method void QMessageBox::setEscapeButton(QMessageBox::StandardButton button)

Python specific notes:
The object exposes a writable attribute 'escapeButton'. This is the setter.

setIcon

Signature: void setIcon (const QMessageBox_Icon arg1)

Description: Method void QMessageBox::setIcon(QMessageBox::Icon)

Python specific notes:
The object exposes a writable attribute 'icon'. This is the setter.

setIconPixmap

Signature: void setIconPixmap (const QPixmap pixmap)

Description: Method void QMessageBox::setIconPixmap(const QPixmap &pixmap)

Python specific notes:
The object exposes a writable attribute 'iconPixmap'. This is the setter.

setInformativeText

Signature: void setInformativeText (string text)

Description: Method void QMessageBox::setInformativeText(const QString &text)

Python specific notes:
The object exposes a writable attribute 'informativeText'. This is the setter.

setStandardButtons

Signature: void setStandardButtons (QMessageBox_QFlags_StandardButton buttons)

Description: Method void QMessageBox::setStandardButtons(QFlags<QMessageBox::StandardButton> buttons)

Python specific notes:
The object exposes a writable attribute 'standardButtons'. This is the setter.

setText

Signature: void setText (string text)

Description: Method void QMessageBox::setText(const QString &text)

Python specific notes:
The object exposes a writable attribute 'text'. This is the setter.

setTextFormat

Signature: void setTextFormat (const Qt_TextFormat format)

Description: Method void QMessageBox::setTextFormat(Qt::TextFormat format)

Python specific notes:
The object exposes a writable attribute 'textFormat'. This is the setter.

setTextInteractionFlags

Signature: void setTextInteractionFlags (Qt_QFlags_TextInteractionFlag flags)

Description: Method void QMessageBox::setTextInteractionFlags(QFlags<Qt::TextInteractionFlag> flags)

Python specific notes:
The object exposes a writable attribute 'textInteractionFlags'. This is the setter.

setVisible

Signature: void setVisible (bool visible)

Description: Virtual method void QMessageBox::setVisible(bool visible)

This method can be reimplemented in a derived class.

setWindowModality

Signature: void setWindowModality (const Qt_WindowModality windowModality)

Description: Method void QMessageBox::setWindowModality(Qt::WindowModality windowModality)

Python specific notes:
The object exposes a writable attribute 'windowModality'. This is the setter.

setWindowTitle

Signature: void setWindowTitle (string title)

Description: Method void QMessageBox::setWindowTitle(const QString &title)

Python specific notes:
The object exposes a writable attribute 'windowTitle'. This is the setter.

sharedPainter

Signature: [const] QPainter ptr sharedPainter

Description: Virtual method QPainter *QMessageBox::sharedPainter()

This method can be reimplemented in a derived class.

showEvent

Signature: void showEvent (QShowEvent ptr event)

Description: Virtual method void QMessageBox::showEvent(QShowEvent *event)

This method can be reimplemented in a derived class.

sizeHint

Signature: [const] QSize sizeHint

Description: Virtual method QSize QMessageBox::sizeHint()

This method can be reimplemented in a derived class.

standardButton

Signature: [const] QMessageBox_StandardButton standardButton (QAbstractButton ptr button)

Description: Method QMessageBox::StandardButton QMessageBox::standardButton(QAbstractButton *button)

standardButtons

Signature: [const] QMessageBox_QFlags_StandardButton standardButtons

Description: Method QFlags<QMessageBox::StandardButton> QMessageBox::standardButtons()

Python specific notes:
The object exposes a readable attribute 'standardButtons'. This is the getter.

standardButtons=

Signature: void standardButtons= (QMessageBox_QFlags_StandardButton buttons)

Description: Method void QMessageBox::setStandardButtons(QFlags<QMessageBox::StandardButton> buttons)

Python specific notes:
The object exposes a writable attribute 'standardButtons'. This is the setter.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

tabletEvent

Signature: void tabletEvent (QTabletEvent ptr event)

Description: Virtual method void QMessageBox::tabletEvent(QTabletEvent *event)

This method can be reimplemented in a derived class.

text

Signature: [const] string text

Description: Method QString QMessageBox::text()

Python specific notes:
The object exposes a readable attribute 'text'. This is the getter.

text=

Signature: void text= (string text)

Description: Method void QMessageBox::setText(const QString &text)

Python specific notes:
The object exposes a writable attribute 'text'. This is the setter.

textFormat

Signature: [const] Qt_TextFormat textFormat

Description: Method Qt::TextFormat QMessageBox::textFormat()

Python specific notes:
The object exposes a readable attribute 'textFormat'. This is the getter.

textFormat=

Signature: void textFormat= (const Qt_TextFormat format)

Description: Method void QMessageBox::setTextFormat(Qt::TextFormat format)

Python specific notes:
The object exposes a writable attribute 'textFormat'. This is the setter.

textInteractionFlags

Signature: [const] Qt_QFlags_TextInteractionFlag textInteractionFlags

Description: Method QFlags<Qt::TextInteractionFlag> QMessageBox::textInteractionFlags()

Python specific notes:
The object exposes a readable attribute 'textInteractionFlags'. This is the getter.

textInteractionFlags=

Signature: void textInteractionFlags= (Qt_QFlags_TextInteractionFlag flags)

Description: Method void QMessageBox::setTextInteractionFlags(QFlags<Qt::TextInteractionFlag> flags)

Python specific notes:
The object exposes a writable attribute 'textInteractionFlags'. This is the setter.

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QMessageBox::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QMessageBox::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QMessageBox::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

updateMicroFocus

Signature: void updateMicroFocus

Description: Method void QMessageBox::updateMicroFocus()

This method is protected and can only be called from inside a derived class.

warning

Signature: [static] QMessageBox_StandardButton warning (QWidget ptr parent, string title, string text, QMessageBox_QFlags_StandardButton buttons = QMessageBox::Ok, const QMessageBox_StandardButton defaultButton = QMessageBox::NoButton)

Description: Static method QMessageBox::StandardButton QMessageBox::warning(QWidget *parent, const QString &title, const QString &text, QFlags<QMessageBox::StandardButton> buttons, QMessageBox::StandardButton defaultButton)

This method is static and can be called without an instance.

wheelEvent

Signature: void wheelEvent (QWheelEvent ptr event)

Description: Virtual method void QMessageBox::wheelEvent(QWheelEvent *event)

This method can be reimplemented in a derived class.

windowIconChanged

Signature: [signal] void windowIconChanged (const QIcon icon)

Description: Signal declaration for QMessageBox::windowIconChanged(const QIcon &icon)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'windowIconChanged'. This is the getter.
The object exposes a writable attribute 'windowIconChanged'. This is the setter.

windowIconTextChanged

Signature: [signal] void windowIconTextChanged (string iconText)

Description: Signal declaration for QMessageBox::windowIconTextChanged(const QString &iconText)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'windowIconTextChanged'. This is the getter.
The object exposes a writable attribute 'windowIconTextChanged'. This is the setter.

windowModality=

Signature: void windowModality= (const Qt_WindowModality windowModality)

Description: Method void QMessageBox::setWindowModality(Qt::WindowModality windowModality)

Python specific notes:
The object exposes a writable attribute 'windowModality'. This is the setter.

windowTitle=

Signature: void windowTitle= (string title)

Description: Method void QMessageBox::setWindowTitle(const QString &title)

Python specific notes:
The object exposes a writable attribute 'windowTitle'. This is the setter.

windowTitleChanged

Signature: [signal] void windowTitleChanged (string title)

Description: Signal declaration for QMessageBox::windowTitleChanged(const QString &title)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'windowTitleChanged'. This is the getter.
The object exposes a writable attribute 'windowTitleChanged'. This is the setter.