PythonQt.QtGui.QGraphicsWidget · declarations 003
Back to PythonQt.QtGui.QGraphicsWidget
testAttribute
testAttribute(attribute: Any) -> bool
X.testAttribute(attribute) -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsWidget::testAttribute(Qt::WidgetAttribute attribute) const
Returns true if attribute is enabled for this widget; otherwise, returns false.
See also setAttribute().
Upstream PySide2 reference signatures (binding differences may apply):
testAttribute(self, attribute: PySide2.QtCore.Qt.WidgetAttribute) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#testAttribute
type
type() -> int
X.type() -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QGraphicsWidget::type() const
Reimplements: QGraphicsItem::type() const.
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#type
ungrabKeyboardEvent
ungrabKeyboardEvent(event: Any) -> None
X.ungrabKeyboardEvent(event)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGraphicsWidget::ungrabKeyboardEvent(QEvent *event)
This event handler, for event, can be reimplemented in a subclass to receive notifications for QEvent::UngrabKeyboard events.
See also ungrabKeyboard() and ungrabMouse().
Upstream PySide2 reference signatures (binding differences may apply):
ungrabKeyboardEvent(self, event: PySide2.QtCore.QEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#ungrabKeyboardEvent
ungrabMouseEvent
ungrabMouseEvent(event: Any) -> None
X.ungrabMouseEvent(event)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGraphicsWidget::ungrabMouseEvent(QEvent *event)
This event handler, for event, can be reimplemented in a subclass to receive notifications for QEvent::UngrabMouse events.
See also ungrabMouse() and ungrabKeyboard().
Upstream PySide2 reference signatures (binding differences may apply):
ungrabMouseEvent(self, event: PySide2.QtCore.QEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#ungrabMouseEvent
unsetLayoutDirection
unsetLayoutDirection() -> None
X.unsetLayoutDirection()
Upstream PySide2 reference signatures (binding differences may apply):
unsetLayoutDirection(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#unsetLayoutDirection
unsetWindowFrameMargins
unsetWindowFrameMargins() -> None
X.unsetWindowFrameMargins()
Supplemental documentation: Qt 5 reference:
void QGraphicsWidget::unsetWindowFrameMargins()
Resets the window frame margins to the default value, provided by the style.
See also setWindowFrameMargins(), getWindowFrameMargins(), and windowFrameRect().
Upstream PySide2 reference signatures (binding differences may apply):
unsetWindowFrameMargins(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#unsetWindowFrameMargins
updateGeometry
updateGeometry() -> None
X.updateGeometry()
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QGraphicsWidget::updateGeometry()
Reimplements: QGraphicsLayoutItem::updateGeometry().
If this widget is currently managed by a layout, this function notifies the layout that the widget's size hints have changed and the layout may need to resize and reposition the widget accordingly.
Call this function if the widget's sizeHint() has changed.
See also QGraphicsLayout::invalidate().
Upstream PySide2 reference signatures (binding differences may apply):
updateGeometry(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#updateGeometry
visibleChanged
visibleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsWidget.visibleChanged; argument details are not documented.
widthChanged
widthChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsWidget.widthChanged; argument details are not documented.
windowFlags
instance-attribute
windowFlags: Any
Qt 5 reference:
windowFlags : Qt::WindowFlags
This property holds the widget's window flags
Window flags are a combination of a window type (e.g., Qt::Dialog) and several flags giving hints on the behavior of the window. The behavior is platform-dependent.
By default, this property contains no window flags.
Windows are panels. If you set the Qt::Window flag, the ItemIsPanel flag will be set automatically. If you clear the Qt::Window flag, the ItemIsPanel flag is also cleared. Note that the ItemIsPanel flag can be set independently of Qt::Window.
Access functions:
| Qt::WindowFlags | windowFlags() const |
|---|---|
| void | setWindowFlags(Qt::WindowFlags wFlags) |
See also isWindow() and isPanel().
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#windowFlags
windowFrameEvent
windowFrameEvent(e: Any) -> bool
X.windowFrameEvent(e) -> bool
Supplemental documentation: Qt 5 reference:
[virtual protected] bool QGraphicsWidget::windowFrameEvent(QEvent *event)
This event handler, for event, receives events for the window frame if this widget is a window. Its base implementation provides support for default window frame interaction such as moving, resizing, etc.
You can reimplement this handler in a subclass of QGraphicsWidget to provide your own custom window frame interaction support.
Returns true if event has been recognized and processed; otherwise, returns false.
See also event().
Upstream PySide2 reference signatures (binding differences may apply):
windowFrameEvent(self, e: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#windowFrameEvent
windowFrameGeometry
windowFrameGeometry() -> Any
X.windowFrameGeometry() -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
QRectF QGraphicsWidget::windowFrameGeometry() const
Returns the widget's geometry in parent coordinates including any window frame.
See also windowFrameRect(), getWindowFrameMargins(), and setWindowFrameMargins().
Upstream PySide2 reference signatures (binding differences may apply):
windowFrameGeometry(self) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#windowFrameGeometry
windowFrameRect
windowFrameRect() -> Any
X.windowFrameRect() -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
QRectF QGraphicsWidget::windowFrameRect() const
Returns the widget's local rect including any window frame.
See also windowFrameGeometry(), getWindowFrameMargins(), and setWindowFrameMargins().
Upstream PySide2 reference signatures (binding differences may apply):
windowFrameRect(self) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#windowFrameRect
windowFrameSectionAt
windowFrameSectionAt(pos: Any) -> Any
X.windowFrameSectionAt(pos)
Supplemental documentation: Qt 5 reference:
[virtual protected] Qt::WindowFrameSection QGraphicsWidget::windowFrameSectionAt(const QPointF \&pos) const
Returns the window frame section at position pos, or Qt::NoSection if there is no window frame section at this position.
This function is used in QGraphicsWidget's base implementation for window frame interaction.
You can reimplement this function if you want to customize how a window can be interactively moved or resized. For instance, if you only want to allow a window to be resized by the bottom right corner, you can reimplement this function to return Qt::NoSection for all sections except Qt::BottomRightSection.
This function was introduced in Qt 4.4.
See also windowFrameEvent(), paintWindowFrame(), and windowFrameGeometry().
Upstream PySide2 reference signatures (binding differences may apply):
windowFrameSectionAt(self, pos: PySide2.QtCore.QPointF) -> PySide2.QtCore.Qt.WindowFrameSection
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#windowFrameSectionAt
windowTitle
instance-attribute
windowTitle: str
Qt 5 reference:
windowTitle : QString
This property holds the window title (caption).
This property is only used for windows.
By default, if no title has been set, this property contains an empty string.
Access functions:
| QString | windowTitle() const |
|---|---|
| void | setWindowTitle(const QString \&title) |
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#windowTitle
windowType
windowType() -> Any
X.windowType()
Supplemental documentation: Qt 5 reference:
Qt::WindowType QGraphicsWidget::windowType() const
Returns the widgets window type.
See also windowFlags(), isWindow(), and isPanel().
Upstream PySide2 reference signatures (binding differences may apply):
windowType(self) -> PySide2.QtCore.Qt.WindowType
Source: https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#windowType
xChanged
xChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsWidget.xChanged; argument details are not documented.
yChanged
yChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsWidget.yChanged; argument details are not documented.
zChanged
zChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QGraphicsWidget.zChanged; argument details are not documented.