- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
public class QMessageBox extends QDialog
Modal dialog for informing the user or for asking the user a question and receiving an answer
Java wrapper for Qt class QMessageBox
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QMessageBox.ButtonRole
Java wrapper for Qt enum QMessageBox::ButtonRolestatic class
QMessageBox.Icon
Java wrapper for Qt enum QMessageBox::Iconstatic class
QMessageBox.StandardButton
Java wrapper for Qt enum QMessageBox::StandardButtonstatic class
QMessageBox.StandardButtons
QFlags type for enumQMessageBox.StandardButton
Nested classes/interfaces inherited from class io.qt.widgets.QWidget
QWidget.RenderFlag, QWidget.RenderFlags
Nested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QDeclarativeConstructor, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal1<QAbstractButton>
buttonClicked
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.Fields inherited from class io.qt.widgets.QWidget
customContextMenuRequested, windowIconChanged, windowIconTextChanged, windowTitleChanged
-
Constructor Summary
-
Method Summary
Methods inherited from class io.qt.widgets.QDialog
accept, adjustPosition, contextMenuEvent, done, eventFilter, exec, isSizeGripEnabled, minimumSizeHint, open, reject, result, setModal, setResult, setSizeGripEnabled, setVisible, sizeHint
Methods inherited from class io.qt.widgets.QWidget
acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, backingStore, baseSize, childAt, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, colorCount, contentsMargins, contentsRect, contextMenuPolicy, createWindowContainer, createWindowContainer, createWindowContainer, createWindowContainer, createWinId, cursor, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, ensurePolished, enterEvent, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grab, grab, grabGesture, grabGesture, grabGesture, grabKeyboard, grabMouse, grabMouse, grabShortcut, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, heightMM, hide, hideEvent, initPainter, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyReleaseEvent, layout, layoutDirection, leaveEvent, locale, logicalDpiX, logicalDpiY, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowFlags, overrideWindowState, overrideWindowState, paintEngine, paintEvent, paintingActive, palette, parentWidget, physicalDpiX, physicalDpiY, pos, previousInFocusChain, raise, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, render, render, render, render, render, render, render, render, repaint, repaint, repaint, repaint, resize, resize, restoreGeometry, saveGeometry, screen, scroll, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setBaseSize, setContentsMargins, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedSize, setFixedWidth, setFocus, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMask, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setParent, setParent, setShortcutAutoRepeat, setShortcutAutoRepeat, setShortcutEnabled, setShortcutEnabled, setSizeIncrement, setSizeIncrement, setSizePolicy, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabletTracking, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlag, setWindowFlags, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowState, setWindowTitle, sharedPainter, show, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, toString, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, update, update, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, width, widthMM, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, timerEvent, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
buttonClicked
-
-
Constructor Details
-
QMessageBox
public QMessageBox(QMessageBox.Icon icon, String title, String text, QMessageBox.StandardButtons buttons, QWidget parent, Qt.WindowType... flags) -
QMessageBox
public QMessageBox(QMessageBox.Icon icon, String title, String text, QMessageBox.StandardButtons buttons, QWidget parent)Overloaded constructor for
QMessageBox(io.qt.widgets.QMessageBox.Icon, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
withflags = new io.qt.core.Qt.WindowFlags(259)
. -
QMessageBox
public QMessageBox(QMessageBox.Icon icon, String title, String text, QMessageBox.StandardButtons buttons)Overloaded constructor for
QMessageBox(io.qt.widgets.QMessageBox.Icon, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
with:
parent = null
flags = new io.qt.core.Qt.WindowFlags(259)
-
QMessageBox
Overloaded constructor for
QMessageBox(io.qt.widgets.QMessageBox.Icon, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
with:
buttons = new io.qt.widgets.QMessageBox.StandardButtons(0)
parent = null
flags = new io.qt.core.Qt.WindowFlags(259)
-
QMessageBox
public QMessageBox(QMessageBox.Icon icon, String title, String text, QMessageBox.StandardButtons buttons, QWidget parent, Qt.WindowFlags flags) -
QMessageBox
public QMessageBox()Overloaded constructor for
QMessageBox(io.qt.widgets.QWidget)
withparent = null
. -
QMessageBox
-
QMessageBox
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QMessageBox
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
addButton
-
addButton
-
addButton
-
button
-
buttonRole
-
buttons
-
checkBox
-
clickedButton
-
defaultButton
-
detailedText
-
escapeButton
-
icon
-
iconPixmap
-
informativeText
-
removeButton
-
setCheckBox
-
setDefaultButton
-
setDefaultButton
-
setDetailedText
-
setEscapeButton
-
setEscapeButton
-
setIcon
-
setIconPixmap
-
setInformativeText
-
setStandardButtons
Overloaded function for
setStandardButtons(io.qt.widgets.QMessageBox.StandardButtons)
. -
setStandardButtons
-
setText
-
setTextFormat
-
setTextInteractionFlags
Overloaded function for
setTextInteractionFlags(io.qt.core.Qt.TextInteractionFlags)
. -
setTextInteractionFlags
-
standardButton
-
standardButtons
-
text
-
textFormat
-
textInteractionFlags
-
changeEvent
- Overrides:
changeEvent
in classQWidget
-
closeEvent
- Overrides:
closeEvent
in classQDialog
-
event
-
keyPressEvent
- Overrides:
keyPressEvent
in classQDialog
-
resizeEvent
- Overrides:
resizeEvent
in classQDialog
-
showEvent
-
about
-
aboutQt
Overloaded function for
aboutQt(io.qt.widgets.QWidget, java.lang.String)
withtitle = ""
. -
aboutQt
-
critical
public static QMessageBox.StandardButton critical(QWidget parent, String title, String text, QMessageBox.StandardButtons buttons)Overloaded function for
critical(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QMessageBox.StandardButton)
withdefaultButton = io.qt.widgets.QMessageBox.StandardButton.NoButton
. -
critical
Overloaded function for
critical(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QMessageBox.StandardButton)
with:
buttons = new io.qt.widgets.QMessageBox.StandardButtons(1024)
defaultButton = io.qt.widgets.QMessageBox.StandardButton.NoButton
-
critical
public static QMessageBox.StandardButton critical(QWidget parent, String title, String text, QMessageBox.StandardButtons buttons, QMessageBox.StandardButton defaultButton) -
critical
public static int critical(QWidget parent, String title, String text, QMessageBox.StandardButton button0, QMessageBox.StandardButton button1) -
information
public static QMessageBox.StandardButton information(QWidget parent, String title, String text, QMessageBox.StandardButtons buttons)Overloaded function for
information(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QMessageBox.StandardButton)
withdefaultButton = io.qt.widgets.QMessageBox.StandardButton.NoButton
. -
information
Overloaded function for
information(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QMessageBox.StandardButton)
with:
buttons = new io.qt.widgets.QMessageBox.StandardButtons(1024)
defaultButton = io.qt.widgets.QMessageBox.StandardButton.NoButton
-
information
public static QMessageBox.StandardButton information(QWidget parent, String title, String text, QMessageBox.StandardButtons buttons, QMessageBox.StandardButton defaultButton) -
information
public static QMessageBox.StandardButton information(QWidget parent, String title, String text, QMessageBox.StandardButton button0)Overloaded function for
information(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButton, io.qt.widgets.QMessageBox.StandardButton)
withbutton1 = io.qt.widgets.QMessageBox.StandardButton.NoButton
. -
information
public static QMessageBox.StandardButton information(QWidget parent, String title, String text, QMessageBox.StandardButton button0, QMessageBox.StandardButton button1) -
question
public static QMessageBox.StandardButton question(QWidget parent, String title, String text, QMessageBox.StandardButtons buttons)Overloaded function for
question(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QMessageBox.StandardButton)
withdefaultButton = io.qt.widgets.QMessageBox.StandardButton.NoButton
. -
question
Overloaded function for
question(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QMessageBox.StandardButton)
with:
buttons = new io.qt.widgets.QMessageBox.StandardButtons(81920)
defaultButton = io.qt.widgets.QMessageBox.StandardButton.NoButton
-
question
public static QMessageBox.StandardButton question(QWidget parent, String title, String text, QMessageBox.StandardButtons buttons, QMessageBox.StandardButton defaultButton) -
question
public static int question(QWidget parent, String title, String text, QMessageBox.StandardButton button0, QMessageBox.StandardButton button1) -
warning
public static QMessageBox.StandardButton warning(QWidget parent, String title, String text, QMessageBox.StandardButtons buttons)Overloaded function for
warning(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QMessageBox.StandardButton)
withdefaultButton = io.qt.widgets.QMessageBox.StandardButton.NoButton
. -
warning
Overloaded function for
warning(io.qt.widgets.QWidget, java.lang.String, java.lang.String, io.qt.widgets.QMessageBox.StandardButtons, io.qt.widgets.QMessageBox.StandardButton)
with:
buttons = new io.qt.widgets.QMessageBox.StandardButtons(1024)
defaultButton = io.qt.widgets.QMessageBox.StandardButton.NoButton
-
warning
public static QMessageBox.StandardButton warning(QWidget parent, String title, String text, QMessageBox.StandardButtons buttons, QMessageBox.StandardButton defaultButton) -
warning
public static int warning(QWidget parent, String title, String text, QMessageBox.StandardButton button0, QMessageBox.StandardButton button1)
-