PythonQt.Qt.QGraphicsWidget
QGraphicsWidget
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
QGraphicsWidget is an extended base item that provides extra functionality over QGraphicsItem. It is similar to QWidget in many ways:
- Provides a palette, a font and a style().
- Has a defined geometry().
- Supports layouts with setLayout() and layout().
- Supports shortcuts and actions with grabShortcut() and insertAction()
Unlike QGraphicsItem, QGraphicsWidget is not an abstract class; you can create instances of a QGraphicsWidget without having to subclass it. This approach is useful for widgets that only serve the purpose of organizing child widgets into a layout.
QGraphicsWidget can be used as a base item for your own custom item if you require advanced input focus handling, e.g., tab focus and activation, or layouts.
Since QGraphicsWidget resembles QWidget and has similar API, it is easier to port a widget from QWidget to QGraphicsWidget, instead of QGraphicsItem.
Note: QWidget-based widgets can be directly embedded into a QGraphicsScene using QGraphicsProxyWidget.
Noticeable differences between QGraphicsWidget and QWidget are:
| QGraphicsWidget | QWidget |
|---|---|
| Coordinates and geometry are defined with qreals (doubles or floats, depending on the platform). | QWidget uses integer geometry (QPoint, QRect). |
| The widget is already visible by default; you do not have to call show() to display the widget. | QWidget is hidden by default until you call show(). |
| A subset of widget attributes are supported. | All widget attributes are supported. |
| A top-level item's style defaults to QGraphicsScene::style | A top-level widget's style defaults to QApplication::style |
| Graphics View provides a custom drag and drop framework, different from QWidget. | Standard drag and drop framework. |
| Widget items do not support modality. | Full modality support. |
QGraphicsWidget supports a subset of Qt's widget attributes, (Qt::WidgetAttribute), as shown in the table below. Any attributes not listed in this table are unsupported, or otherwise unused.
| Widget Attribute | Usage |
|---|---|
| Qt::WA_SetLayoutDirection | Set by setLayoutDirection(), cleared by unsetLayoutDirection(). You can test this attribute to check if the widget has been explicitly assigned a layoutDirection. If the attribute is not set, the layoutDirection() is inherited. |
| Qt::WA_RightToLeft | Toggled by setLayoutDirection(). Inherited from the parent/scene. If set, the widget's layout will order horizontally arranged widgets from right to left. |
| Qt::WA_SetStyle | Set and cleared by setStyle(). If this attribute is set, the widget has been explicitly assigned a style. If it is unset, the widget will use the scene's or the application's style. |
| Qt::WA_Resized | Set by setGeometry() and resize(). |
| Qt::WA_SetPalette | Set by setPalette(). |
| Qt::WA_SetFont | Set by setFont(). |
| Qt::WA_WindowPropagation | Enables propagation to window widgets. |
Although QGraphicsWidget inherits from both QObject and QGraphicsItem, you should use the functions provided by QGraphicsItem, not QObject, to manage the relationships between parent and child items. These functions control the stacking order of items as well as their ownership.
Note: The
QObject::parent() should
always return nullptr for QGraphicsWidgets, but this policy is not strictly defined.
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
CacheMode |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
DeviceCoordinateCache |
attribute | Any |
(shared captured text) |
Extension |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
GraphicsItemChange |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
GraphicsItemFlag |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
GraphicsItemFlags |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
ItemAcceptsInputMethod |
attribute | Any |
(shared captured text) |
ItemChildAddedChange |
attribute | Any |
(shared captured text) |
ItemChildRemovedChange |
attribute | Any |
(shared captured text) |
ItemClipsChildrenToShape |
attribute | Any |
(shared captured text) |
ItemClipsToShape |
attribute | Any |
(shared captured text) |
ItemContainsChildrenInShape |
attribute | Any |
(shared captured text) |
ItemCoordinateCache |
attribute | Any |
(shared captured text) |
ItemCursorChange |
attribute | Any |
(shared captured text) |
ItemCursorHasChanged |
attribute | Any |
(shared captured text) |
ItemDoesntPropagateOpacityToChildren |
attribute | Any |
(shared captured text) |
ItemEnabledChange |
attribute | Any |
(shared captured text) |
ItemEnabledHasChanged |
attribute | Any |
(shared captured text) |
ItemFlagsChange |
attribute | Any |
(shared captured text) |
ItemFlagsHaveChanged |
attribute | Any |
(shared captured text) |
ItemHasNoContents |
attribute | Any |
(shared captured text) |
ItemIgnoresParentOpacity |
attribute | Any |
(shared captured text) |
ItemIgnoresTransformations |
attribute | Any |
(shared captured text) |
ItemIsFocusScope |
attribute | Any |
(shared captured text) |
ItemIsFocusable |
attribute | Any |
(shared captured text) |
ItemIsMovable |
attribute | Any |
(shared captured text) |
ItemIsPanel |
attribute | Any |
(shared captured text) |
ItemIsSelectable |
attribute | Any |
(shared captured text) |
ItemMatrixChange |
attribute | Any |
(shared captured text) |
ItemNegativeZStacksBehindParent |
attribute | Any |
(shared captured text) |
ItemOpacityChange |
attribute | Any |
(shared captured text) |
ItemOpacityHasChanged |
attribute | Any |
(shared captured text) |
ItemParentChange |
attribute | Any |
(shared captured text) |
ItemParentHasChanged |
attribute | Any |
(shared captured text) |
ItemPositionChange |
attribute | Any |
(shared captured text) |
ItemPositionHasChanged |
attribute | Any |
(shared captured text) |
ItemRotationChange |
attribute | Any |
(shared captured text) |
ItemRotationHasChanged |
attribute | Any |
(shared captured text) |
ItemScaleChange |
attribute | Any |
(shared captured text) |
ItemScaleHasChanged |
attribute | Any |
(shared captured text) |
ItemSceneChange |
attribute | Any |
(shared captured text) |
ItemSceneHasChanged |
attribute | Any |
(shared captured text) |
ItemScenePositionHasChanged |
attribute | Any |
(shared captured text) |
ItemSelectedChange |
attribute | Any |
(shared captured text) |
ItemSelectedHasChanged |
attribute | Any |
(shared captured text) |
ItemSendsGeometryChanges |
attribute | Any |
(shared captured text) |
ItemSendsScenePositionChanges |
attribute | Any |
(shared captured text) |
ItemStacksBehindParent |
attribute | Any |
(shared captured text) |
ItemStopsClickFocusPropagation |
attribute | Any |
(shared captured text) |
ItemStopsFocusHandling |
attribute | Any |
(shared captured text) |
ItemToolTipChange |
attribute | Any |
(shared captured text) |
ItemToolTipHasChanged |
attribute | Any |
(shared captured text) |
ItemTransformChange |
attribute | Any |
(shared captured text) |
ItemTransformHasChanged |
attribute | Any |
(shared captured text) |
ItemTransformOriginPointChange |
attribute | Any |
(shared captured text) |
ItemTransformOriginPointHasChanged |
attribute | Any |
(shared captured text) |
ItemUsesExtendedStyleOption |
attribute | Any |
(shared captured text) |
ItemVisibleChange |
attribute | Any |
(shared captured text) |
ItemVisibleHasChanged |
attribute | Any |
(shared captured text) |
ItemZValueChange |
attribute | Any |
(shared captured text) |
ItemZValueHasChanged |
attribute | Any |
(shared captured text) |
NoCache |
attribute | Any |
(shared captured text) |
NonModal |
attribute | Any |
(shared captured text) |
PanelModal |
attribute | Any |
(shared captured text) |
PanelModality |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
SceneModal |
attribute | Any |
(shared captured text) |
Type |
attribute | Any |
(shared captured text) |
UserExtension |
attribute | Any |
(shared captured text) |
UserType |
attribute | Any |
(shared captured text) |
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
acceptDrops |
function | (self) -> bool |
X.acceptDrops() -> bool (shared captured text) |
acceptHoverEvents |
function | (self) -> bool |
X.acceptHoverEvents() -> bool (shared captured text) |
acceptTouchEvents |
function | (self) -> bool |
X.acceptTouchEvents() -> bool (shared captured text) |
acceptedMouseButtons |
function | (self) -> Any |
(shared captured text) |
actions |
function | (self) -> tuple |
X.actions() -> tuple (shared captured text) |
addAction |
function | (self, action: Any) -> None |
Appends the action action to this widget's list of actions. (shared captured text) |
addActions |
function | (self, actions: Any) -> None |
Appends the actions actions to this widget's list of actions. (shared captured text) |
addToIndex |
function | (self) -> Any |
(shared captured text) |
adjustSize |
function | (self) -> None |
Adjusts the size of the widget to its effective preferred size hint. (shared captured text) |
advance |
function | (self, phase: Any) -> Any |
(shared captured text) |
autoFillBackground |
attribute | bool |
This property holds whether the widget background is filled automatically (shared captured text) |
blockSignals |
function | (self, b: Any) -> bool |
X.blockSignals(b) -> bool (shared captured text) |
boundingRect |
function | (self) -> Any |
X.boundingRect() -> PythonQt.QtCore.QRectF (shared captured text) |
boundingRegion |
function | (self, itemToDeviceTransform: Any) -> Any |
X.boundingRegion(itemToDeviceTransform) -> PythonQt.QtGui.QRegion (shared captured text) |
boundingRegionGranularity |
function | (self) -> float |
X.boundingRegionGranularity() -> float (shared captured text) |
cacheMode |
function | (self) -> Any |
(shared captured text) |
changeEvent |
function | (self, event: Any) -> None |
This event handler can be reimplemented to handle state changes. (shared captured text) |
childEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
childItems |
function | (self) -> tuple |
X.childItems() -> tuple (shared captured text) |
children |
attribute | Any |
(shared captured text) |
childrenBoundingRect |
function | (self) -> Any |
X.childrenBoundingRect() -> PythonQt.QtCore.QRectF (shared captured text) |
childrenChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.childrenChanged; argument details are not documented. |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
clearFocus |
function | (self) -> Any |
(shared captured text) |
clipPath |
function | (self) -> Any |
X.clipPath() -> PythonQt.QtGui.QPainterPath (shared captured text) |
close |
function | (self) -> bool |
X.close() -> bool (shared captured text) |
closeEvent |
function | (self, event: Any) -> None |
This event handler, for event, can be reimplemented in a subclass to receive widget close events. (shared captured text) |
collidesWithItem |
function | (self, other: Any, mode: Any) -> bool |
X.collidesWithItem(other, mode) -> bool (shared captured text) |
collidesWithPath |
function | (self, path: Any, mode: Any) -> bool |
X.collidesWithPath(path, mode) -> bool (shared captured text) |
collidingItems |
function | (self, mode: Any) -> tuple |
X.collidingItems(mode) -> tuple (shared captured text) |
commonAncestorItem |
function | (self, other: Any) -> Any |
X.commonAncestorItem(other) -> PythonQt.QtGui.QGraphicsItem (shared captured text) |
connect |
function | (self, signal: Any, receiver: Any, slot: Any, type: Any) -> bool |
X.connect(signal, receiver, slot, type) -> bool (shared captured text) |
contains |
function | (self, point: Any) -> bool |
X.contains(point) -> bool (shared captured text) |
contentsRect |
function | (self) -> Any |
X.contentsRect() -> PythonQt.QtCore.QRectF (shared captured text) |
contextMenuEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
cursor |
function | (self) -> Any |
X.cursor() -> PythonQt.QtGui.QCursor (shared captured text) |
customEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
data |
function | (self, key: Any) -> Any |
X.data(key) -> object (shared captured text) |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
deleteLater |
function | (self) -> Any |
(shared captured text) |
destroyed |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.destroyed; argument details are not documented. |
deviceTransform |
function | (self, viewportTransform: Any) -> Any |
X.deviceTransform(viewportTransform) -> PythonQt.QtGui.QTransform (shared captured text) |
disconnect |
function | (self, signal: Any, receiver: Any, slot: Any) -> bool |
X.disconnect(signal, receiver, slot) -> bool (shared captured text) |
dragEnterEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
dragLeaveEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
dragMoveEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
dropEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
dumpObjectInfo |
function | (self) -> Any |
(shared captured text) |
dumpObjectTree |
function | (self) -> Any |
(shared captured text) |
dynamicPropertyNames |
function | (self) -> Any |
(shared captured text) |
effect |
attribute | QGraphicsEffect |
(shared captured text) |
effectiveOpacity |
function | (self) -> float |
X.effectiveOpacity() -> float (shared captured text) |
effectiveSizeHint |
function | (self, which: Any, constraint: Any) -> Any |
X.effectiveSizeHint(which, constraint) -> PythonQt.QtCore.QSizeF (shared captured text) |
enabled |
attribute | Any |
(shared captured text) |
enabledChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.enabledChanged; argument details are not documented. |
ensureVisible |
function | (self, x: Any, y: Any, w: Any, h: Any, xmargin: Any, ymargin: Any) -> Any |
X.ensureVisible(x, y, w, h, xmargin, ymargin) (shared captured text) |
enum_1 |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text) |
event |
function | (self, event: Any) -> bool |
X.event(event) -> bool (shared captured text) |
eventFilter |
function | (self, watched: Any, event: Any) -> bool |
X.eventFilter(watched, event) -> bool (shared captured text) |
extension |
function | (self, variant: Any) -> Any |
X.extension(variant) -> object (shared captured text) |
filtersChildEvents |
function | (self) -> bool |
X.filtersChildEvents() -> bool (shared captured text) |
findChild |
function | (self, type: Any, name: Any) -> Any |
X.findChild(type, name) -> PythonQt.private.QObject (shared captured text) |
findChildren |
function | (self, type: Any, name: Any) -> tuple |
X.findChildren(type, name) -> tuple (shared captured text) |
flags |
function | (self) -> Any |
(shared captured text) |
focusInEvent |
function | (self, event: Any) -> None |
Reimplements: [QGraphicsItem::focusInEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#focusInEvent)(QFocusEvent *event). (shared captured text) |
focusItem |
function | (self) -> Any |
X.focusItem() -> PythonQt.QtGui.QGraphicsItem (shared captured text) |
focusNextPrevChild |
function | (self, next: bool) -> bool |
X.focusNextPrevChild(next) -> bool (shared captured text) |
focusOutEvent |
function | (self, event: Any) -> None |
Reimplements: [QGraphicsItem::focusOutEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#focusOutEvent)(QFocusEvent *event). (shared captured text) |
focusPolicy |
attribute | Any |
This property holds the way the widget accepts keyboard focus (shared captured text) |
focusProxy |
function | (self) -> Any |
X.focusProxy() -> PythonQt.QtGui.QGraphicsItem (shared captured text) |
focusScopeItem |
function | (self) -> Any |
X.focusScopeItem() -> PythonQt.QtGui.QGraphicsItem (shared captured text) |
focusWidget |
function | (self) -> Any |
X.focusWidget() -> PythonQt.QtGui.QGraphicsWidget (shared captured text) |
font |
attribute | QFont |
This property holds the widgets' font (shared captured text) |
geometry |
attribute | QRectF |
This property holds the geometry of the widget (shared captured text) |
geometryChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.geometryChanged; argument details are not documented. |
getContentsMargins |
function | (self, left: Any, top: Any, right: Any, bottom: Any) -> Any |
X.getContentsMargins(left, top, right, bottom) (shared captured text) |
getWindowFrameMargins |
function | (self, left: Any, top: Any, right: Any, bottom: Any) -> Any |
X.getWindowFrameMargins(left, top, right, bottom) (shared captured text) |
grabGesture |
function | (self, type: Any, arg1: flags) -> Any |
X.grabGesture(type, flags) (shared captured text) |
grabKeyboard |
function | (self) -> Any |
(shared captured text) |
grabKeyboardEvent |
function | (self, event: Any) -> None |
This event handler, for event, can be reimplemented in a subclass to receive notifications for [QEvent::GrabKeyboard](https://doc.qt.io/archives/qt-5.15/qevent.html#Type-enum) events. (shared captured text) |
grabMouse |
function | (self) -> Any |
(shared captured text) |
grabMouseEvent |
function | (self, event: Any) -> None |
This event handler, for event, can be reimplemented in a subclass to receive notifications for [QEvent::GrabMouse](https://doc.qt.io/archives/qt-5.15/qevent.html#Type-enum) events. (shared captured text) |
grabShortcut |
function | (self, sequence: Any, context: Any) -> int |
X.grabShortcut(sequence, context) -> int (shared captured text) |
graphicsEffect |
function | (self) -> Any |
X.graphicsEffect() -> PythonQt.QtGui.QGraphicsEffect (shared captured text) |
graphicsItem |
function | (self) -> Any |
X.graphicsItem() -> PythonQt.QtGui.QGraphicsItem (shared captured text) |
group |
function | (self) -> Any |
X.group() -> PythonQt.QtGui.QGraphicsItemGroup (shared captured text) |
handlesChildEvents |
function | (self) -> bool |
X.handlesChildEvents() -> bool (shared captured text) |
hasCursor |
function | (self) -> bool |
X.hasCursor() -> bool (shared captured text) |
hasFocus |
function | (self) -> bool |
X.hasFocus() -> bool (shared captured text) |
height |
attribute | Any |
(shared captured text) |
heightChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.heightChanged; argument details are not documented. |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
hide |
function | (self) -> Any |
(shared captured text) |
hideEvent |
function | (self, event: Any) -> None |
This event handler, for [Hide](https://doc.qt.io/archives/qt-5.15/qevent.html#Type-enum) events, is delivered after the widget has been hidden, for example,… (shared captured text) |
hoverEnterEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
hoverLeaveEvent |
function | (self, event: Any) -> None |
Reimplements: [QGraphicsItem::hoverLeaveEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hoverLeaveEvent)(QGraphicsSceneHoverEvent *event). (shared captured text) |
hoverMoveEvent |
function | (self, event: Any) -> None |
Reimplements: [QGraphicsItem::hoverMoveEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hoverMoveEvent)(QGraphicsSceneHoverEvent *event). (shared captured text) |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
initStyleOption |
function | (self, option: Any) -> None |
Populates a style option object for this widget based on its current state, and stores the output in option. (shared captured text) |
inputMethodEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
inputMethodHints |
function | (self) -> Any |
(shared captured text) |
inputMethodQuery |
function | (self, query: Any) -> Any |
X.inputMethodQuery(query) -> object (shared captured text) |
insertAction |
function | (self, before: Any, action: Any) -> None |
X.insertAction(before, action) (shared captured text) |
insertActions |
function | (self, before: Any, actions: Any) -> None |
X.insertActions(before, actions) (shared captured text) |
installEventFilter |
function | (self, filterObj: Any) -> Any |
(shared captured text) |
installSceneEventFilter |
function | (self, filterItem: Any) -> Any |
(shared captured text) |
isActive |
function | (self) -> bool |
X.isActive() -> bool (shared captured text) |
isActiveWindow |
function | (self) -> bool |
X.isActiveWindow() -> bool (shared captured text) |
isAncestorOf |
function | (self, child: Any) -> bool |
X.isAncestorOf(child) -> bool (shared captured text) |
isBlockedByModalPanel |
function | (self, blockingPanel: Any) -> bool |
X.isBlockedByModalPanel(blockingPanel) -> bool (shared captured text) |
isClipped |
function | (self) -> bool |
X.isClipped() -> bool (shared captured text) |
isEnabled |
function | (self) -> bool |
X.isEnabled() -> bool (shared captured text) |
isLayout |
function | (self) -> bool |
X.isLayout() -> bool (shared captured text) |
isObscured |
function | (self, x: Any, y: Any, w: Any, h: Any) -> bool |
X.isObscured(x, y, w, h) -> bool (shared captured text) |
isObscuredBy |
function | (self, item: Any) -> bool |
X.isObscuredBy(item) -> bool (shared captured text) |
isPanel |
function | (self) -> bool |
X.isPanel() -> bool (shared captured text) |
isSelected |
function | (self) -> bool |
X.isSelected() -> bool (shared captured text) |
isSignalConnected |
function | (self, signal: Any) -> bool |
X.isSignalConnected(signal) -> bool (shared captured text) |
isUnderMouse |
function | (self) -> bool |
X.isUnderMouse() -> bool (shared captured text) |
isVisible |
function | (self) -> bool |
X.isVisible() -> bool (shared captured text) |
isVisibleTo |
function | (self, parent: Any) -> bool |
X.isVisibleTo(parent) -> bool (shared captured text) |
isWidget |
function | (self) -> bool |
X.isWidget() -> bool (shared captured text) |
isWidgetType |
function | (self) -> bool |
X.isWidgetType() -> bool (shared captured text) |
isWindow |
function | (self) -> bool |
X.isWindow() -> bool (shared captured text) |
isWindowType |
function | (self) -> bool |
X.isWindowType() -> bool (shared captured text) |
itemChange |
function | (self, change: Any, value: Any) -> Any |
X.itemChange(change, value) -> object (shared captured text) |
itemTransform |
function | (self, other: Any, ok: Any) -> Any |
X.itemTransform(other, ok) -> PythonQt.QtGui.QTransform (shared captured text) |
keyPressEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
keyReleaseEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
killTimer |
function | (self, id: Any) -> Any |
(shared captured text) |
layout |
attribute | QGraphicsLayout |
This property holds the layout of the widget (shared captured text) |
layoutChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.layoutChanged; argument details are not documented. |
layoutDirection |
attribute | Any |
This property holds the layout direction for this widget. (shared captured text) |
mapFromItem |
function | (self, item: Any, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapFromItem(item, x, y, w, h) -> PythonQt.QtGui.QPainterPath (shared captured text) |
mapFromParent |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapFromParent(x, y, w, h) -> PythonQt.QtGui.QPainterPath (shared captured text) |
mapFromScene |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapFromScene(x, y, w, h) -> PythonQt.QtGui.QPainterPath (shared captured text) |
mapRectFromItem |
function | (self, item: Any, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapRectFromItem(item, x, y, w, h) -> PythonQt.QtCore.QRectF (shared captured text) |
mapRectFromParent |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapRectFromParent(x, y, w, h) -> PythonQt.QtCore.QRectF (shared captured text) |
mapRectFromScene |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapRectFromScene(x, y, w, h) -> PythonQt.QtCore.QRectF (shared captured text) |
mapRectToItem |
function | (self, item: Any, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapRectToItem(item, x, y, w, h) -> PythonQt.QtCore.QRectF (shared captured text) |
mapRectToParent |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapRectToParent(x, y, w, h) -> PythonQt.QtCore.QRectF (shared captured text) |
mapRectToScene |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapRectToScene(x, y, w, h) -> PythonQt.QtCore.QRectF (shared captured text) |
mapToItem |
function | (self, item: Any, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapToItem(item, x, y, w, h) -> PythonQt.QtGui.QPainterPath (shared captured text) |
mapToParent |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapToParent(x, y, w, h) -> PythonQt.QtGui.QPainterPath (shared captured text) |
mapToScene |
function | (self, x: Any, y: Any, w: Any, h: Any) -> Any |
X.mapToScene(x, y, w, h) -> PythonQt.QtGui.QPainterPath (shared captured text) |
maximumHeight |
function | (self) -> float |
X.maximumHeight() -> float (shared captured text) |
maximumSize |
attribute | QSizeF |
This property holds the maximum size of the widget (shared captured text) |
maximumWidth |
function | (self) -> float |
X.maximumWidth() -> float (shared captured text) |
metaObject |
function | (self) -> Any |
X.metaObject() -> PythonQt.QtCore.QMetaObject (shared captured text) |
minimumHeight |
function | (self) -> float |
X.minimumHeight() -> float (shared captured text) |
minimumSize |
attribute | QSizeF |
This property holds the minimum size of the widget (shared captured text) |
minimumWidth |
function | (self) -> float |
X.minimumWidth() -> float (shared captured text) |
mouseDoubleClickEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
mouseMoveEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
mousePressEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
mouseReleaseEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
moveBy |
function | (self, dx: Any, dy: Any) -> Any |
X.moveBy(dx, dy) (shared captured text) |
moveEvent |
function | (self, event: Any) -> None |
This event handler, for [GraphicsSceneMove](https://doc.qt.io/archives/qt-5.15/qevent.html#Type-enum) events, is delivered after the widget has moved (e.g., its local position has changed). (shared captured text) |
moveToThread |
function | (self, thread: Any) -> Any |
(shared captured text) |
objectName |
attribute | Any |
(shared captured text) |
objectNameChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.objectNameChanged; argument details are not documented. |
opacity |
attribute | Any |
(shared captured text) |
opacityChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.opacityChanged; argument details are not documented. |
opaqueArea |
function | (self) -> Any |
X.opaqueArea() -> PythonQt.QtGui.QPainterPath (shared captured text) |
ownedByLayout |
function | (self) -> bool |
X.ownedByLayout() -> bool (shared captured text) |
paint |
function | (self, painter: Any, option: Any, widget: Any) -> None |
X.paint(painter, option, widget) (shared captured text) |
paintWindowFrame |
function | (self, painter: Any, option: Any, widget: Any) -> None |
X.paintWindowFrame(painter, option, widget) (shared captured text) |
palette |
attribute | QPalette |
This property holds the widget's palette (shared captured text) |
panel |
function | (self) -> Any |
X.panel() -> PythonQt.QtGui.QGraphicsItem (shared captured text) |
panelModality |
function | (self) -> Any |
(shared captured text) |
parent |
attribute | QGraphicsObject |
(shared captured text) |
parentChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.parentChanged; argument details are not documented. |
parentItem |
function | (self) -> Any |
X.parentItem() -> PythonQt.QtGui.QGraphicsItem (shared captured text) |
parentLayoutItem |
function | (self) -> Any |
X.parentLayoutItem() -> PythonQt.QtGui.QGraphicsLayoutItem (shared captured text) |
parentObject |
function | (self) -> Any |
X.parentObject() -> PythonQt.QtGui.QGraphicsObject (shared captured text) |
parentWidget |
function | (self) -> Any |
X.parentWidget() -> PythonQt.QtGui.QGraphicsWidget (shared captured text) |
polishEvent |
function | (self) -> None |
This event is delivered to the item by the scene at some point after it has been constructed, but before it is shown or otherwise accessed through the scene. (shared captured text) |
pos |
attribute | QPointF |
(shared captured text) |
preferredHeight |
function | (self) -> float |
X.preferredHeight() -> float (shared captured text) |
preferredSize |
attribute | QSizeF |
This property holds the preferred size of the widget (shared captured text) |
preferredWidth |
function | (self) -> float |
X.preferredWidth() -> float (shared captured text) |
prepareGeometryChange |
function | (self) -> Any |
(shared captured text) |
property |
function | (self, name: Any) -> Any |
X.property(name) -> object (shared captured text) |
propertyChange |
function | (self, propertyName: str, value: Any) -> Any |
X.propertyChange(propertyName, value) -> object (shared captured text) |
rect |
function | (self) -> Any |
X.rect() -> PythonQt.QtCore.QRectF (shared captured text) |
releaseShortcut |
function | (self, id: int) -> None |
Removes the shortcut with the given id from Qt's shortcut system. (shared captured text) |
removeAction |
function | (self, action: Any) -> None |
Removes the action action from this widget's list of actions. (shared captured text) |
removeEventFilter |
function | (self, obj: Any) -> Any |
(shared captured text) |
removeFromIndex |
function | (self) -> Any |
(shared captured text) |
removeSceneEventFilter |
function | (self, filterItem: Any) -> Any |
(shared captured text) |
resetTransform |
function | (self) -> Any |
(shared captured text) |
resize |
function | (self, w: Any, h: Any) -> None |
X.resize(w, h) (shared captured text) |
resizeEvent |
function | (self, event: Any) -> None |
This event handler, for [GraphicsSceneResize](https://doc.qt.io/archives/qt-5.15/qevent.html#Type-enum) events, is delivered after the widget has been resized (i.e., its local size has changed).… (shared captured text) |
rotation |
attribute | Any |
(shared captured text) |
rotationChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.rotationChanged; argument details are not documented. |
scale |
attribute | Any |
(shared captured text) |
scaleChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.scaleChanged; argument details are not documented. |
scene |
function | (self) -> Any |
X.scene() -> PythonQt.QtGui.QGraphicsScene (shared captured text) |
sceneBoundingRect |
function | (self) -> Any |
X.sceneBoundingRect() -> PythonQt.QtCore.QRectF (shared captured text) |
sceneEvent |
function | (self, event: Any) -> bool |
X.sceneEvent(event) -> bool (shared captured text) |
sceneEventFilter |
function | (self, watched: Any, event: Any) -> bool |
X.sceneEventFilter(watched, event) -> bool (shared captured text) |
scenePos |
function | (self) -> Any |
X.scenePos() -> PythonQt.QtCore.QPointF (shared captured text) |
sceneTransform |
function | (self) -> Any |
X.sceneTransform() -> PythonQt.QtGui.QTransform (shared captured text) |
scroll |
function | (self, dx: Any, dy: Any, rect: Any) -> Any |
X.scroll(dx, dy, rect) (shared captured text) |
sender |
function | (self) -> Any |
X.sender() -> PythonQt.private.QObject (shared captured text) |
senderSignalIndex |
function | (self) -> int |
X.senderSignalIndex() -> int (shared captured text) |
setAcceptDrops |
function | (self, on: Any) -> Any |
(shared captured text) |
setAcceptHoverEvents |
function | (self, enabled: Any) -> Any |
(shared captured text) |
setAcceptTouchEvents |
function | (self, enabled: Any) -> Any |
(shared captured text) |
setAcceptedMouseButtons |
function | (self, buttons: Any) -> Any |
(shared captured text) |
setActive |
function | (self, active: Any) -> Any |
(shared captured text) |
setAttribute |
function | (self, attribute: Any, on: bool) -> None |
X.setAttribute(attribute, on) (shared captured text) |
setAutoFillBackground |
function | (self, enabled: bool) -> None |
(shared captured text) |
setBoundingRegionGranularity |
function | (self, granularity: Any) -> Any |
(shared captured text) |
setCacheMode |
function | (self, mode: Any, cacheSize: Any) -> Any |
X.setCacheMode(mode, cacheSize) (shared captured text) |
setContentsMargins |
function | (self, left: Any, top: Any, right: Any, bottom: Any) -> None |
X.setContentsMargins(left, top, right, bottom) (shared captured text) |
setCursor |
function | (self, cursor: Any) -> Any |
(shared captured text) |
setData |
function | (self, key: Any, value: Any) -> Any |
X.setData(key, value) (shared captured text) |
setEnabled |
function | (self, enabled: Any) -> Any |
(shared captured text) |
setExtension |
function | (self, extension: Any, variant: Any) -> Any |
X.setExtension(extension, variant) (shared captured text) |
setFiltersChildEvents |
function | (self, enabled: Any) -> Any |
(shared captured text) |
setFlag |
function | (self, arg0: flag, enabled: Any) -> Any |
X.setFlag(flag, enabled) (shared captured text) |
setFlags |
function | (self, arg0: flags) -> Any |
(shared captured text) |
setFocus |
function | (self, focusReason: Any) -> Any |
(shared captured text) |
setFocusPolicy |
function | (self, policy: Any) -> None |
(shared captured text) |
setFocusProxy |
function | (self, item: Any) -> Any |
(shared captured text) |
setFont |
function | (self, font: Any) -> None |
(shared captured text) |
setGeometry |
function | (self, rect: Any) -> None |
This convenience function is equivalent to calling setGeometry([QRectF](https://doc.qt.io/archives/qt-5.15/qrectf.html)( x, y, w, h)). (shared captured text) |
setGraphicsEffect |
function | (self, effect: Any) -> Any |
(shared captured text) |
setGraphicsItem |
function | (self, item: Any) -> Any |
(shared captured text) |
setGroup |
function | (self, group: Any) -> Any |
(shared captured text) |
setHandlesChildEvents |
function | (self, enabled: Any) -> Any |
(shared captured text) |
setInputMethodHints |
function | (self, hints: Any) -> Any |
(shared captured text) |
setLayout |
function | (self, layout: Any) -> None |
Sets the layout for this widget to layout. (shared captured text) |
setLayoutDirection |
function | (self, direction: Any) -> None |
(shared captured text) |
setMaximumHeight |
function | (self, height: Any) -> Any |
(shared captured text) |
setMaximumSize |
function | (self, w: Any, h: Any) -> Any |
X.setMaximumSize(w, h) (shared captured text) |
setMaximumWidth |
function | (self, width: Any) -> Any |
(shared captured text) |
setMinimumHeight |
function | (self, height: Any) -> Any |
(shared captured text) |
setMinimumSize |
function | (self, w: Any, h: Any) -> Any |
X.setMinimumSize(w, h) (shared captured text) |
setMinimumWidth |
function | (self, width: Any) -> Any |
(shared captured text) |
setObjectName |
function | (self, name: Any) -> Any |
(shared captured text) |
setOpacity |
function | (self, opacity: Any) -> Any |
(shared captured text) |
setOwnedByLayout |
function | (self, ownedByLayout: Any) -> Any |
(shared captured text) |
setPalette |
function | (self, palette: Any) -> None |
(shared captured text) |
setPanelModality |
function | (self, panelModality: Any) -> Any |
(shared captured text) |
setParent |
function | (self, parent: Any) -> Any |
(shared captured text) |
setParentItem |
function | (self, parent: Any) -> Any |
(shared captured text) |
setParentLayoutItem |
function | (self, parent: Any) -> Any |
(shared captured text) |
setPos |
function | (self, x: Any, y: Any) -> Any |
X.setPos(x, y) (shared captured text) |
setPreferredHeight |
function | (self, height: Any) -> Any |
(shared captured text) |
setPreferredSize |
function | (self, w: Any, h: Any) -> Any |
X.setPreferredSize(w, h) (shared captured text) |
setPreferredWidth |
function | (self, width: Any) -> Any |
(shared captured text) |
setProperty |
function | (self, name: Any, value: Any) -> bool |
X.setProperty(name, value) -> bool (shared captured text) |
setRotation |
function | (self, angle: Any) -> Any |
(shared captured text) |
setScale |
function | (self, scale: Any) -> Any |
(shared captured text) |
setSelected |
function | (self, selected: Any) -> Any |
(shared captured text) |
setShortcutAutoRepeat |
function | (self, id: int, enabled: bool) -> None |
X.setShortcutAutoRepeat(id, enabled) (shared captured text) |
setShortcutEnabled |
function | (self, id: int, enabled: bool) -> None |
X.setShortcutEnabled(id, enabled) (shared captured text) |
setSizePolicy |
function | (self, hPolicy: Any, vPolicy: Any, controlType: Any) -> Any |
X.setSizePolicy(hPolicy, vPolicy, controlType) (shared captured text) |
setStyle |
function | (self, style: Any) -> None |
Sets the widget's style to style. (shared captured text) |
setTabOrder |
function | (self, first: Any, second: Any) -> None |
X.setTabOrder(first, second) (shared captured text) |
setToolTip |
function | (self, toolTip: Any) -> Any |
(shared captured text) |
setTransform |
function | (self, matrix: Any, combine: Any) -> Any |
X.setTransform(matrix, combine) (shared captured text) |
setTransformOriginPoint |
function | (self, ax: Any, ay: Any) -> Any |
X.setTransformOriginPoint(ax, ay) (shared captured text) |
setTransformations |
function | (self, transformations: Any) -> Any |
(shared captured text) |
setVisible |
function | (self, visible: Any) -> Any |
(shared captured text) |
setWindowFlags |
function | (self, wFlags: Any) -> None |
(shared captured text) |
setWindowFrameMargins |
function | (self, left: Any, top: Any, right: Any, bottom: Any) -> None |
X.setWindowFrameMargins(left, top, right, bottom) (shared captured text) |
setWindowTitle |
function | (self, title: str) -> None |
(shared captured text) |
setX |
function | (self, x: Any) -> Any |
(shared captured text) |
setY |
function | (self, y: Any) -> Any |
(shared captured text) |
setZValue |
function | (self, z: Any) -> Any |
(shared captured text) |
shape |
function | (self) -> Any |
X.shape() -> PythonQt.QtGui.QPainterPath (shared captured text) |
show |
function | (self) -> Any |
(shared captured text) |
showEvent |
function | (self, event: Any) -> None |
This event handler, for [Show](https://doc.qt.io/archives/qt-5.15/qevent.html#Type-enum) events, is delivered before the widget has been shown, for example,… (shared captured text) |
signalsBlocked |
function | (self) -> bool |
X.signalsBlocked() -> bool (shared captured text) |
size |
attribute | QSizeF |
This property holds the size of the widget (shared captured text) |
sizeHint |
function | (self, which: Any, constraint: Any) -> Any |
X.sizeHint(which, constraint) -> PythonQt.QtCore.QSizeF (shared captured text) |
sizePolicy |
attribute | QSizePolicy |
This property holds the size policy for the widget (shared captured text) |
stackBefore |
function | (self, sibling: Any) -> Any |
(shared captured text) |
startTimer |
function | (self, interval: Any, timerType: Any) -> int |
X.startTimer(interval, timerType) -> int (shared captured text) |
style |
function | (self) -> Any |
X.style() -> PythonQt.QtGui.QStyle (shared captured text) |
supportsExtension |
function | (self, extension: Any) -> bool |
X.supportsExtension(extension) -> bool (shared captured text) |
testAttribute |
function | (self, attribute: Any) -> bool |
X.testAttribute(attribute) -> bool (shared captured text) |
thread |
function | (self) -> Any |
(shared captured text) |
timerEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
toGraphicsObject |
function | (self) -> Any |
X.toGraphicsObject() -> PythonQt.QtGui.QGraphicsObject (shared captured text) |
toolTip |
function | (self) -> str |
X.toolTip() -> str (shared captured text) |
topLevelItem |
function | (self) -> Any |
X.topLevelItem() -> PythonQt.QtGui.QGraphicsItem (shared captured text) |
topLevelWidget |
function | (self) -> Any |
X.topLevelWidget() -> PythonQt.QtGui.QGraphicsWidget (shared captured text) |
tr |
function | (self, text: Any, ambig: Any, n: Any) -> str |
X.tr(text, ambig, n) -> str (shared captured text) |
transform |
function | (self) -> Any |
X.transform() -> PythonQt.QtGui.QTransform (shared captured text) |
transformOriginPoint |
attribute | QPointF |
(shared captured text) |
transformations |
function | (self) -> tuple |
X.transformations() -> tuple (shared captured text) |
type |
function | (self) -> int |
X.type() -> int (shared captured text) |
ungrabGesture |
function | (self, type: Any) -> Any |
(shared captured text) |
ungrabKeyboard |
function | (self) -> Any |
(shared captured text) |
ungrabKeyboardEvent |
function | (self, event: Any) -> None |
This event handler, for event, can be reimplemented in a subclass to receive notifications for [QEvent::UngrabKeyboard](https://doc.qt.io/archives/qt-5.15/qevent.html#Type-enum) events. (shared captured text) |
ungrabMouse |
function | (self) -> Any |
(shared captured text) |
ungrabMouseEvent |
function | (self, event: Any) -> None |
This event handler, for event, can be reimplemented in a subclass to receive notifications for [QEvent::UngrabMouse](https://doc.qt.io/archives/qt-5.15/qevent.html#Type-enum) events. (shared captured text) |
unsetCursor |
function | (self) -> Any |
(shared captured text) |
unsetLayoutDirection |
function | (self) -> None |
(shared captured text) |
unsetWindowFrameMargins |
function | (self) -> None |
Resets the window frame margins to the default value, provided by the style. (shared captured text) |
update |
function | (self, x: Any, y: Any, width: Any, height: Any) -> Any |
X.update(x, y, width, height) (shared captured text) |
updateGeometry |
function | (self) -> None |
Reimplements: [QGraphicsLayoutItem::updateGeometry](https://doc.qt.io/archives/qt-5.15/qgraphicslayoutitem.html#updateGeometry)(). (shared captured text) |
updateMicroFocus |
function | (self) -> Any |
(shared captured text) |
visible |
attribute | Any |
(shared captured text) |
visibleChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.visibleChanged; argument details are not documented. |
wheelEvent |
function | (self, event: Any) -> Any |
(shared captured text) |
width |
attribute | Any |
(shared captured text) |
widthChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.widthChanged; argument details are not documented. |
window |
function | (self) -> Any |
X.window() -> PythonQt.QtGui.QGraphicsWidget (shared captured text) |
windowFlags |
attribute | Any |
This property holds the widget's window flags (shared captured text) |
windowFrameEvent |
function | (self, e: Any) -> bool |
X.windowFrameEvent(e) -> bool (shared captured text) |
windowFrameGeometry |
function | (self) -> Any |
X.windowFrameGeometry() -> PythonQt.QtCore.QRectF (shared captured text) |
windowFrameRect |
function | (self) -> Any |
X.windowFrameRect() -> PythonQt.QtCore.QRectF (shared captured text) |
windowFrameSectionAt |
function | (self, pos: Any) -> Any |
Returns the window frame section at position pos, or [Qt::NoSection](https://doc.qt.io/archives/qt-5.15/qt.html#WindowFrameSection-enum) if there is no window frame section at this position. (shared captured text) |
windowTitle |
attribute | str |
This property holds the window title (caption). (shared captured text) |
windowType |
function | (self) -> Any |
Returns the widgets window type. (shared captured text) |
x |
attribute | Any |
(shared captured text) |
xChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.xChanged; argument details are not documented. |
y |
attribute | Any |
(shared captured text) |
yChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.yChanged; argument details are not documented. |
z |
attribute | Any |
(shared captured text) |
zChanged |
function | (self, *args: Any, **kwargs: Any) -> Any |
Native PythonQt.Qt.QGraphicsWidget.zChanged; argument details are not documented. |
zValue |
function | (self) -> float |
X.zValue() -> float (shared captured text) |