- All Implemented Interfaces:
QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
,QGraphicsItem
,QGraphicsLayoutItem
- Direct Known Subclasses:
QGraphicsProxyWidget
public class QGraphicsWidget extends QGraphicsObject implements QGraphicsLayoutItem
The base class for all widget items in a QGraphicsScene
Java wrapper for Qt class QGraphicsWidget
-
Nested Class Summary
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.widgets.QGraphicsItem
QGraphicsItem.BlockedByModalPanelInfo, QGraphicsItem.CacheMode, QGraphicsItem.Extension, QGraphicsItem.GraphicsItemChange, QGraphicsItem.GraphicsItemFlag, QGraphicsItem.GraphicsItemFlags, QGraphicsItem.Impl, QGraphicsItem.MemberAccess, QGraphicsItem.PanelModality
Nested classes/interfaces inherited from interface io.qt.widgets.QGraphicsLayoutItem
QGraphicsLayoutItem.Impl, QGraphicsLayoutItem.MemberAccess
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal0
geometryChanged
QObject.Signal0
layoutChanged
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.Fields inherited from class io.qt.widgets.QGraphicsObject
childrenChanged, enabledChanged, heightChanged, opacityChanged, parentChanged, rotationChanged, scaleChanged, visibleChanged, widthChanged, xChanged, yChanged, zChanged
-
Constructor Summary
Constructors Modifier Constructor Description QGraphicsWidget()
Overloaded constructor forQGraphicsWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)
protected
QGraphicsWidget(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QGraphicsWidget(QtObject.QPrivateConstructor p)
Constructor for internal use only.QGraphicsWidget(QGraphicsItem parent)
Overloaded constructor forQGraphicsWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)
withwFlags = new io.qt.core.Qt.WindowFlags(0)
.QGraphicsWidget(QGraphicsItem parent, Qt.WindowFlags wFlags)
QGraphicsWidget(QGraphicsItem parent, Qt.WindowType... wFlags)
Overloaded constructor forQGraphicsWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)
. -
Method Summary
Methods inherited from class io.qt.widgets.QGraphicsObject
acceptDrops, acceptedMouseButtons, acceptHoverEvents, acceptTouchEvents, addToIndex, advance, boundingRegion, boundingRegionGranularity, cacheMode, childItems, childrenBoundingRect, clearFocus, clipPath, collidesWithItem, collidesWithItem, collidesWithPath, collidesWithPath, collidingItems, collidingItems, commonAncestorItem, contains, contextMenuEvent, cursor, data, deviceTransform, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveOpacity, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, extension, filtersChildEvents, flags, focusItem, focusProxy, focusScopeItem, grabGesture, grabGesture, grabGesture, grabKeyboard, grabMouse, graphicsEffect, group, handlesChildEvents, hasCursor, hasFocus, hide, hoverEnterEvent, inputMethodEvent, inputMethodHints, inputMethodQuery, installSceneEventFilter, isActive, isAncestorOf, isBlockedByModalPanel, isClipped, isEnabled, isObscured, isObscured, isObscured, isObscuredBy, isPanel, isSelected, isUnderMouse, isVisible, isVisibleTo, isWidget, isWindow, itemTransform, keyPressEvent, keyReleaseEvent, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapRectFromItem, mapRectFromItem, mapRectFromParent, mapRectFromParent, mapRectFromScene, mapRectFromScene, mapRectToItem, mapRectToItem, mapRectToParent, mapRectToParent, mapRectToScene, mapRectToScene, mapToItem, mapToItem, mapToItem, mapToItem, mapToItem, mapToItem, mapToParent, mapToParent, mapToParent, mapToParent, mapToParent, mapToParent, mapToScene, mapToScene, mapToScene, mapToScene, mapToScene, mapToScene, mouseDoubleClickEvent, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, moveBy, opacity, opaqueArea, paint, panel, panelModality, parentItem, parentObject, parentWidget, pos, prepareGeometryChange, removeFromIndex, removeSceneEventFilter, resetTransform, rotation, scale, scene, sceneBoundingRect, sceneEventFilter, scenePos, sceneTransform, scroll, scroll, setAcceptDrops, setAcceptedMouseButtons, setAcceptedMouseButtons, setAcceptHoverEvents, setAcceptTouchEvents, setActive, setBoundingRegionGranularity, setCacheMode, setCacheMode, setCursor, setData, setEnabled, setExtension, setFiltersChildEvents, setFlag, setFlag, setFlags, setFlags, setFocus, setFocus, setFocusProxy, setGraphicsEffect, setGroup, setHandlesChildEvents, setInputMethodHints, setInputMethodHints, setOpacity, setPanelModality, setParentItem, setPos, setPos, setRotation, setScale, setSelected, setToolTip, setTransform, setTransform, setTransformations, setTransformOriginPoint, setTransformOriginPoint, setVisible, setX, setY, setZValue, show, stackBefore, supportsExtension, toGraphicsObject, toolTip, topLevelItem, topLevelWidget, toString, transform, transformations, transformOriginPoint, ungrabGesture, ungrabKeyboard, ungrabMouse, unsetCursor, update, update, update, updateMicroFocus, wheelEvent, window, x, y, zValue
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. -
geometryChanged
-
layoutChanged
-
-
Constructor Details
-
QGraphicsWidget
Overloaded constructor for
QGraphicsWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)
. -
QGraphicsWidget
Overloaded constructor for
QGraphicsWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)
withwFlags = new io.qt.core.Qt.WindowFlags(0)
. -
QGraphicsWidget
public QGraphicsWidget()Overloaded constructor for
QGraphicsWidget(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.WindowFlags)
with:
parent = null
wFlags = new io.qt.core.Qt.WindowFlags(0)
-
QGraphicsWidget
-
QGraphicsWidget
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QGraphicsWidget
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java.
-
-
Method Details
-
actions
-
addAction
-
addActions
-
adjustSize
-
autoFillBackground
-
close
public final boolean close() -
contentsRect
- Specified by:
contentsRect
in interfaceQGraphicsLayoutItem
-
effectiveSizeHint
Overloaded function for
effectiveSizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
withconstraint = new io.qt.core.QSizeF()
.- Specified by:
effectiveSizeHint
in interfaceQGraphicsLayoutItem
-
effectiveSizeHint
- Specified by:
effectiveSizeHint
in interfaceQGraphicsLayoutItem
-
focusPolicy
-
focusWidget
-
font
-
geometry
- Specified by:
geometry
in interfaceQGraphicsLayoutItem
-
getWindowFrameMargins
-
grabShortcut
Overloaded function for
grabShortcut(io.qt.gui.QKeySequence, io.qt.core.Qt.ShortcutContext)
withcontext = io.qt.core.Qt.ShortcutContext.WindowShortcut
. -
grabShortcut
-
graphicsItem
- Specified by:
graphicsItem
in interfaceQGraphicsLayoutItem
-
insertAction
-
insertActions
-
isActiveWindow
-
isLayout
- Specified by:
isLayout
in interfaceQGraphicsLayoutItem
-
layout
-
layoutDirection
-
maximumHeight
- Specified by:
maximumHeight
in interfaceQGraphicsLayoutItem
-
maximumSize
- Specified by:
maximumSize
in interfaceQGraphicsLayoutItem
-
maximumWidth
- Specified by:
maximumWidth
in interfaceQGraphicsLayoutItem
-
minimumHeight
- Specified by:
minimumHeight
in interfaceQGraphicsLayoutItem
-
minimumSize
- Specified by:
minimumSize
in interfaceQGraphicsLayoutItem
-
minimumWidth
- Specified by:
minimumWidth
in interfaceQGraphicsLayoutItem
-
ownedByLayout
- Specified by:
ownedByLayout
in interfaceQGraphicsLayoutItem
-
palette
-
parentLayoutItem
- Specified by:
parentLayoutItem
in interfaceQGraphicsLayoutItem
-
preferredHeight
- Specified by:
preferredHeight
in interfaceQGraphicsLayoutItem
-
preferredSize
- Specified by:
preferredSize
in interfaceQGraphicsLayoutItem
-
preferredWidth
- Specified by:
preferredWidth
in interfaceQGraphicsLayoutItem
-
rect
-
releaseShortcut
-
removeAction
-
resize
-
resize
-
setAttribute
Overloaded function for
setAttribute(io.qt.core.Qt.WidgetAttribute, boolean)
withon = true
. -
setAttribute
-
setAutoFillBackground
-
setContentsMargins
-
setContentsMargins
@QtUninvokable public final void setContentsMargins(double left, double top, double right, double bottom) -
setFocusPolicy
-
setFont
-
setGeometry
-
setGraphicsItem
-
setLayout
-
setLayoutDirection
-
setMaximumHeight
- Specified by:
setMaximumHeight
in interfaceQGraphicsLayoutItem
-
setMaximumSize
- Specified by:
setMaximumSize
in interfaceQGraphicsLayoutItem
-
setMaximumSize
- Specified by:
setMaximumSize
in interfaceQGraphicsLayoutItem
-
setMaximumWidth
- Specified by:
setMaximumWidth
in interfaceQGraphicsLayoutItem
-
setMinimumHeight
- Specified by:
setMinimumHeight
in interfaceQGraphicsLayoutItem
-
setMinimumSize
- Specified by:
setMinimumSize
in interfaceQGraphicsLayoutItem
-
setMinimumSize
- Specified by:
setMinimumSize
in interfaceQGraphicsLayoutItem
-
setMinimumWidth
- Specified by:
setMinimumWidth
in interfaceQGraphicsLayoutItem
-
setOwnedByLayout
-
setPalette
-
setParentLayoutItem
- Specified by:
setParentLayoutItem
in interfaceQGraphicsLayoutItem
-
setPreferredHeight
- Specified by:
setPreferredHeight
in interfaceQGraphicsLayoutItem
-
setPreferredSize
- Specified by:
setPreferredSize
in interfaceQGraphicsLayoutItem
-
setPreferredSize
- Specified by:
setPreferredSize
in interfaceQGraphicsLayoutItem
-
setPreferredWidth
- Specified by:
setPreferredWidth
in interfaceQGraphicsLayoutItem
-
setShortcutAutoRepeat
Overloaded function for
setShortcutAutoRepeat(int, boolean)
withenabled = true
. -
setShortcutAutoRepeat
-
setShortcutEnabled
Overloaded function for
setShortcutEnabled(int, boolean)
withenabled = true
. -
setShortcutEnabled
-
setSizePolicy
@QtUninvokable public final void setSizePolicy(QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy)Overloaded function for
setSizePolicy(io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.ControlType)
withcontrolType = io.qt.widgets.QSizePolicy.ControlType.DefaultType
.- Specified by:
setSizePolicy
in interfaceQGraphicsLayoutItem
-
setSizePolicy
@QtUninvokable public final void setSizePolicy(QSizePolicy.Policy hPolicy, QSizePolicy.Policy vPolicy, QSizePolicy.ControlType controlType)- Specified by:
setSizePolicy
in interfaceQGraphicsLayoutItem
-
setSizePolicy
- Specified by:
setSizePolicy
in interfaceQGraphicsLayoutItem
-
setStyle
-
setWindowFlags
Overloaded function for
setWindowFlags(io.qt.core.Qt.WindowFlags)
. -
setWindowFlags
-
setWindowFrameMargins
-
setWindowFrameMargins
@QtUninvokable public final void setWindowFrameMargins(double left, double top, double right, double bottom) -
setWindowTitle
-
size
-
sizePolicy
- Specified by:
sizePolicy
in interfaceQGraphicsLayoutItem
-
style
-
testAttribute
-
type
-
unsetLayoutDirection
-
unsetWindowFrameMargins
-
windowFlags
-
windowFrameGeometry
-
windowFrameRect
-
windowTitle
-
windowType
-
boundingRect
- Specified by:
boundingRect
in interfaceQGraphicsItem
- Specified by:
boundingRect
in classQGraphicsObject
-
changeEvent
-
closeEvent
-
event
- Overrides:
event
in classQGraphicsObject
-
focusInEvent
- Overrides:
focusInEvent
in classQGraphicsObject
-
focusNextPrevChild
-
focusOutEvent
- Overrides:
focusOutEvent
in classQGraphicsObject
-
getContentsMargins
- Specified by:
getContentsMargins
in interfaceQGraphicsLayoutItem
-
grabKeyboardEvent
-
grabMouseEvent
-
hideEvent
-
hoverLeaveEvent
- Overrides:
hoverLeaveEvent
in classQGraphicsObject
-
hoverMoveEvent
- Overrides:
hoverMoveEvent
in classQGraphicsObject
-
initStyleOption
-
isEmpty
- Specified by:
isEmpty
in interfaceQGraphicsLayoutItem
-
itemChange
- Overrides:
itemChange
in classQGraphicsObject
-
moveEvent
-
paint
@QtUninvokable public void paint(QPainter painter, QStyleOptionGraphicsItem option, QWidget widget)- Specified by:
paint
in interfaceQGraphicsItem
- Specified by:
paint
in classQGraphicsObject
-
paintWindowFrame
@QtUninvokable public final void paintWindowFrame(QPainter painter, QStyleOptionGraphicsItem option)Overloaded function for
paintWindowFrame(io.qt.gui.QPainter, io.qt.widgets.QStyleOptionGraphicsItem, io.qt.widgets.QWidget)
withwidget = null
. -
paintWindowFrame
@QtUninvokable public void paintWindowFrame(QPainter painter, QStyleOptionGraphicsItem option, QWidget widget) -
polishEvent
-
propertyChange
-
resizeEvent
-
sceneEvent
- Overrides:
sceneEvent
in classQGraphicsObject
-
setGeometry
- Specified by:
setGeometry
in interfaceQGraphicsLayoutItem
-
shape
- Specified by:
shape
in interfaceQGraphicsItem
- Overrides:
shape
in classQGraphicsObject
-
showEvent
-
sizeHint
Overloaded function for
sizeHint(io.qt.core.Qt.SizeHint, io.qt.core.QSizeF)
withconstraint = new io.qt.core.QSizeF()
. -
sizeHint
-
ungrabKeyboardEvent
-
ungrabMouseEvent
-
updateGeometry
- Specified by:
updateGeometry
in interfaceQGraphicsLayoutItem
-
windowFrameEvent
-
windowFrameSectionAt
-
setTabOrder
-
windowFrameMargins
Gets the widget's window frame margins. -
contentsMargins
- Specified by:
contentsMargins
in interfaceQGraphicsLayoutItem
-