- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
- Direct Known Subclasses:
QAbstractButton
,QAbstractSlider
,QAbstractSpinBox
,QCalendarWidget
,QComboBox
,QDesignerActionEditorInterface
,QDesignerFormWindowInterface
,QDesignerNewFormWidgetInterface
,QDesignerObjectInspectorInterface
,QDesignerPropertyEditorInterface
,QDesignerResourceBrowserInterface
,QDesignerWidgetBoxInterface
,QDialog
,QDialogButtonBox
,QDockWidget
,QFocusFrame
,QFrame
,QGroupBox
,QHelpFilterSettingsWidget
,QHelpSearchQueryWidget
,QHelpSearchResultWidget
,QKeySequenceEdit
,QLineEdit
,QMainWindow
,QMdiSubWindow
,QMenu
,QMenuBar
,QOpenGLWidget
,QPrintPreviewWidget
,QProgressBar
,QQuickWidget
,QRubberBand
,QSizeGrip
,QSplashScreen
,QSplitterHandle
,QStatusBar
,QSvgWidget
,QTabBar
,QTabWidget
,QToolBar
,QWizardPage
public class QWidget extends QObject implements QPaintDevice
The base class of all user interface objects
Java wrapper for Qt class QWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QWidget.RenderFlag
Java wrapper for Qt enum QWidget::RenderFlagstatic class
QWidget.RenderFlags
QFlags type for enumQWidget.RenderFlag
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.QBooleanProperty, QObject.QByteProperty, QObject.QCharProperty, QObject.QComputedBooleanProperty, QObject.QComputedByteProperty, QObject.QComputedCharProperty, QObject.QComputedDoubleProperty, QObject.QComputedFloatProperty, QObject.QComputedIntProperty, QObject.QComputedLongProperty, QObject.QComputedProperty<T>, QObject.QComputedShortProperty, QObject.QDeclarativeConstructor, QObject.QDoubleProperty, QObject.QFloatProperty, QObject.QIntProperty, QObject.QLongProperty, QObject.QProperty<T>, QObject.QShortProperty, 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<QPoint>
customContextMenuRequested
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.QObject.Signal1<QIcon>
windowIconChanged
QObject.Signal1<String>
windowIconTextChanged
QObject.Signal1<String>
windowTitleChanged
-
Constructor Summary
Constructors Modifier Constructor Description QWidget()
Overloaded constructor forQWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
protected
QWidget(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QWidget(QtObject.QPrivateConstructor p)
Constructor for internal use only.QWidget(QWidget parent)
Overloaded constructor forQWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
withf = new io.qt.core.Qt.WindowFlags(0)
.QWidget(QWidget parent, Qt.WindowFlags f)
QWidget(QWidget parent, Qt.WindowType... f)
Overloaded constructor forQWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
. -
Method Summary
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, eventFilter, findChild, findChild, findChild, findChild, findChild, 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. -
customContextMenuRequested
-
windowIconChanged
-
windowIconTextChanged
-
windowTitleChanged
-
-
Constructor Details
-
QWidget
Overloaded constructor for
QWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
. -
QWidget
Overloaded constructor for
QWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
withf = new io.qt.core.Qt.WindowFlags(0)
. -
QWidget
public QWidget()Overloaded constructor for
QWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
with:
parent = null
f = new io.qt.core.Qt.WindowFlags(0)
-
QWidget
-
QWidget
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QWidget
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
acceptDrops
-
accessibleDescription
-
accessibleName
-
actions
-
activateWindow
-
addAction
-
addActions
-
adjustSize
-
autoFillBackground
-
backgroundRole
-
backingStore
-
baseSize
-
childAt
-
childAt
-
childrenRect
-
childrenRegion
-
clearFocus
-
clearMask
-
close
public final boolean close()See QWidget::close()
-
colorCount
See QPaintDevice::
- Specified by:
colorCount
in interfaceQPaintDevice
-
contentsMargins
Returns the widget's contents margins
-
contentsRect
-
contextMenuPolicy
-
createWinId
-
cursor
-
depth
See QPaintDevice::
- Specified by:
depth
in interfaceQPaintDevice
-
devicePixelRatio
See QPaintDevice::
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
See QPaintDevice::
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
effectiveWinId
-
ensurePolished
-
focusNextChild
-
focusPolicy
-
focusPreviousChild
-
focusProxy
-
focusWidget
-
font
-
fontInfo
-
fontMetrics
-
foregroundRole
-
frameGeometry
-
frameSize
-
geometry
-
grab
Overloaded function for
grab(io.qt.core.QRect)
withrectangle = new io.qt.core.QRect(new io.qt.core.QPoint(0, 0), new io.qt.core.QSize(-1, -1))
. -
grab
-
grabGesture
Overloaded function for
grabGesture(io.qt.core.Qt.GestureType, io.qt.core.Qt.GestureFlags)
. -
grabGesture
Overloaded function for
grabGesture(io.qt.core.Qt.GestureType, io.qt.core.Qt.GestureFlags)
withflags = new io.qt.core.Qt.GestureFlags(new io.qt.core.Qt.GestureFlag[0])
. -
grabGesture
-
grabKeyboard
-
grabMouse
-
grabMouse
-
grabShortcut
Overloaded function for
grabShortcut(io.qt.gui.QKeySequence, io.qt.core.Qt.ShortcutContext)
withcontext = io.qt.core.Qt.ShortcutContext.WindowShortcut
. -
grabShortcut
-
graphicsEffect
Returns a pointer to the widget's graphics effect
-
graphicsProxyWidget
-
hasFocus
-
hasMouseTracking
-
hasTabletTracking
-
height
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
See QPaintDevice::
- Specified by:
heightMM
in interfaceQPaintDevice
-
hide
public final void hide()See QWidget::hide()
-
inputMethodHints
-
insertAction
-
insertActions
-
isActiveWindow
-
isAncestorOf
-
isEnabled
-
isEnabledTo
-
isFullScreen
-
isHidden
-
isLeftToRight
-
isMaximized
-
isMinimized
-
isModal
-
isRightToLeft
-
isTopLevel
-
isVisible
-
isVisibleTo
-
isWindow
-
isWindowModified
-
layout
-
layoutDirection
-
locale
-
logicalDpiX
See QPaintDevice::
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
See QPaintDevice::
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
lower
public final void lower()See QWidget::lower()
-
mapFrom
-
mapFrom
-
mapFromGlobal
-
mapFromGlobal
-
mapFromParent
-
mapFromParent
-
mapTo
-
mapTo
-
mapToGlobal
-
mapToGlobal
-
mapToParent
-
mapToParent
-
mask
-
maximumHeight
-
maximumSize
-
maximumWidth
-
minimumHeight
-
minimumSize
-
minimumWidth
-
move
-
move
-
nativeParentWidget
-
nextInFocusChain
-
normalGeometry
-
overrideWindowFlags
Overloaded function for
overrideWindowFlags(io.qt.core.Qt.WindowFlags)
. -
overrideWindowFlags
-
overrideWindowState
Overloaded function for
overrideWindowState(io.qt.core.Qt.WindowStates)
. -
overrideWindowState
-
paintingActive
See QPaintDevice::
- Specified by:
paintingActive
in interfaceQPaintDevice
-
palette
-
parentWidget
-
physicalDpiX
See QPaintDevice::
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
See QPaintDevice::
- Specified by:
physicalDpiY
in interfaceQPaintDevice
-
pos
-
previousInFocusChain
Returns the previous widget in this widget's focus chain
-
raise
public final void raise()See QWidget::raise()
-
rect
-
releaseKeyboard
-
releaseMouse
-
releaseShortcut
-
removeAction
-
render
@QtUninvokable public final void render(QPaintDevice target, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlag... renderFlags) -
render
@QtUninvokable public final void render(QPaintDevice target, QPoint targetOffset, QRegion sourceRegion)Overloaded function for
render(io.qt.gui.QPaintDevice, io.qt.core.QPoint, io.qt.gui.QRegion, io.qt.widgets.QWidget.RenderFlags)
withrenderFlags = new io.qt.widgets.QWidget.RenderFlags(RenderFlag.DrawWindowBackground, RenderFlag.DrawChildren)
. -
render
Overloaded function for
render(io.qt.gui.QPaintDevice, io.qt.core.QPoint, io.qt.gui.QRegion, io.qt.widgets.QWidget.RenderFlags)
with:
sourceRegion = new io.qt.gui.QRegion()
renderFlags = new io.qt.widgets.QWidget.RenderFlags(RenderFlag.DrawWindowBackground, RenderFlag.DrawChildren)
-
render
Overloaded function for
render(io.qt.gui.QPaintDevice, io.qt.core.QPoint, io.qt.gui.QRegion, io.qt.widgets.QWidget.RenderFlags)
with:
targetOffset = new io.qt.core.QPoint()
sourceRegion = new io.qt.gui.QRegion()
renderFlags = new io.qt.widgets.QWidget.RenderFlags(RenderFlag.DrawWindowBackground, RenderFlag.DrawChildren)
-
render
@QtUninvokable public final void render(QPaintDevice target, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlags renderFlags) -
render
@QtUninvokable public final void render(QPainter painter, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlag... renderFlags)Overloaded function for
render(io.qt.gui.QPainter, io.qt.core.QPoint, io.qt.gui.QRegion, io.qt.widgets.QWidget.RenderFlags)
. -
render
@QtUninvokable public final void render(QPainter painter, QPoint targetOffset, QRegion sourceRegion)Overloaded function for
render(io.qt.gui.QPainter, io.qt.core.QPoint, io.qt.gui.QRegion, io.qt.widgets.QWidget.RenderFlags)
withrenderFlags = new io.qt.widgets.QWidget.RenderFlags(RenderFlag.DrawWindowBackground, RenderFlag.DrawChildren)
. -
render
Overloaded function for
render(io.qt.gui.QPainter, io.qt.core.QPoint, io.qt.gui.QRegion, io.qt.widgets.QWidget.RenderFlags)
with:
sourceRegion = new io.qt.gui.QRegion()
renderFlags = new io.qt.widgets.QWidget.RenderFlags(RenderFlag.DrawWindowBackground, RenderFlag.DrawChildren)
-
render
@QtUninvokable public final void render(QPainter painter, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlags renderFlags) -
repaint
public final void repaint() -
repaint
-
repaint
-
repaint
-
resize
-
resize
-
restoreGeometry
-
saveGeometry
-
screen
-
scroll
-
scroll
-
setAcceptDrops
-
setAccessibleDescription
-
setAccessibleName
-
setAttribute
Overloaded function for
setAttribute(io.qt.core.Qt.WidgetAttribute, boolean)
withon = true
. -
setAttribute
-
setAutoFillBackground
-
setBackgroundRole
-
setBaseSize
-
setBaseSize
-
setContentsMargins
Sets the margins around the widget's contents
-
setContentsMargins
-
setContextMenuPolicy
-
setCursor
-
setDisabled
public final void setDisabled(boolean arg__1) -
setEnabled
public final void setEnabled(boolean arg__1) -
setFixedHeight
-
setFixedSize
-
setFixedSize
-
setFixedWidth
-
setFocus
public final void setFocus() -
setFocus
-
setFocusPolicy
-
setFocusProxy
-
setFont
-
setForegroundRole
-
setGeometry
-
setGeometry
-
setGraphicsEffect
For setting the widget's graphics effect
-
setHidden
public final void setHidden(boolean hidden) -
setInputMethodHints
Overloaded function for
setInputMethodHints(io.qt.core.Qt.InputMethodHints)
. -
setInputMethodHints
-
setLayout
-
setLayoutDirection
-
setLocale
-
setMask
-
setMask
-
setMaximumHeight
-
setMaximumSize
-
setMaximumSize
-
setMaximumWidth
-
setMinimumHeight
-
setMinimumSize
-
setMinimumSize
-
setMinimumWidth
-
setMouseTracking
-
setPalette
-
setParent
-
setParent
Overloaded function for
setParent(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
. -
setParent
-
setScreen
-
setShortcutAutoRepeat
Overloaded function for
setShortcutAutoRepeat(int, boolean)
withenable = true
. -
setShortcutAutoRepeat
-
setShortcutEnabled
Overloaded function for
setShortcutEnabled(int, boolean)
withenable = true
. -
setShortcutEnabled
-
setSizeIncrement
-
setSizeIncrement
-
setSizePolicy
-
setSizePolicy
@QtUninvokable public final void setSizePolicy(QSizePolicy.Policy horizontal, QSizePolicy.Policy vertical) -
setStatusTip
-
setStyle
-
setStyleSheet
-
setTabletTracking
-
setToolTip
-
setToolTipDuration
-
setUpdatesEnabled
-
setWhatsThis
-
setWindowFilePath
-
setWindowFlag
Overloaded function for
setWindowFlag(io.qt.core.Qt.WindowType, boolean)
withon = true
. -
setWindowFlag
-
setWindowFlags
Overloaded function for
setWindowFlags(io.qt.core.Qt.WindowFlags)
. -
setWindowFlags
-
setWindowIcon
-
setWindowIconText
-
setWindowModality
-
setWindowModified
public final void setWindowModified(boolean arg__1) -
setWindowOpacity
-
setWindowRole
-
setWindowState
Overloaded function for
setWindowState(io.qt.core.Qt.WindowStates)
. -
setWindowState
-
setWindowTitle
-
show
public final void show()See QWidget::show()
-
showFullScreen
public final void showFullScreen() -
showMaximized
public final void showMaximized() -
showMinimized
public final void showMinimized() -
showNormal
public final void showNormal() -
size
-
sizeIncrement
-
sizePolicy
-
stackUnder
-
statusTip
-
style
-
styleSheet
-
testAttribute
-
toolTip
-
toolTipDuration
-
topLevelWidget
-
underMouse
-
ungrabGesture
-
unsetCursor
-
unsetLayoutDirection
-
unsetLocale
-
update
public final void update() -
update
-
update
-
update
-
updateGeometry
-
updateMicroFocus
protected final void updateMicroFocus()Overloaded function for
updateMicroFocus(io.qt.core.Qt.InputMethodQuery)
withquery = io.qt.core.Qt.InputMethodQuery.ImQueryAll
. -
updateMicroFocus
-
updatesEnabled
-
visibleRegion
-
whatsThis
-
width
- Specified by:
width
in interfaceQPaintDevice
-
widthMM
See QPaintDevice::
- Specified by:
widthMM
in interfaceQPaintDevice
-
winId
-
window
-
windowFilePath
-
windowFlags
-
windowHandle
-
windowIcon
-
windowIconText
-
windowModality
-
windowOpacity
-
windowRole
-
windowState
-
windowTitle
-
windowType
-
x
-
y
-
actionEvent
-
changeEvent
-
closeEvent
-
contextMenuEvent
-
dragEnterEvent
-
dragLeaveEvent
-
dragMoveEvent
-
dropEvent
-
enterEvent
-
event
-
focusInEvent
-
focusNextPrevChild
-
focusOutEvent
-
hasHeightForWidth
-
heightForWidth
-
hideEvent
-
initPainter
-
inputMethodEvent
-
inputMethodQuery
-
keyPressEvent
-
keyReleaseEvent
-
leaveEvent
-
metric
-
minimumSizeHint
-
mouseDoubleClickEvent
-
mouseMoveEvent
-
mousePressEvent
-
mouseReleaseEvent
-
moveEvent
-
paintEngine
- Specified by:
paintEngine
in interfaceQPaintDevice
-
paintEvent
-
redirected
-
resizeEvent
-
setVisible
public void setVisible(boolean visible) -
sharedPainter
-
showEvent
-
sizeHint
-
tabletEvent
-
wheelEvent
-
createWindowContainer
public static QWidget createWindowContainer(QWindow window, QWidget parent, Qt.WindowType... flags)Overloaded function for
createWindowContainer(io.qt.gui.QWindow, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
. -
createWindowContainer
Overloaded function for
createWindowContainer(io.qt.gui.QWindow, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
withflags = new io.qt.core.Qt.WindowFlags(0)
. -
createWindowContainer
Overloaded function for
createWindowContainer(io.qt.gui.QWindow, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)
with:
parent = null
flags = new io.qt.core.Qt.WindowFlags(0)
-
createWindowContainer
-
devicePixelRatioFScale
public static double devicePixelRatioFScale() -
keyboardGrabber
-
mouseGrabber
-
setTabOrder
-
toString
-