Skip to content

PythonQt.QtGui.QGraphicsProxyWidget · declarations 002

Back to PythonQt.QtGui.QGraphicsProxyWidget

mouseReleaseEvent

mouseReleaseEvent(event: Any) -> None

X.mouseReleaseEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGraphicsProxyWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)

Reimplements: QGraphicsItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

mouseReleaseEvent(self, event: PySide2.QtWidgets.QGraphicsSceneMouseEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#mouseReleaseEvent

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsProxyWidget.objectNameChanged; argument details are not documented.

opacity instance-attribute

opacity: Any

opacityChanged

opacityChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsProxyWidget.opacityChanged; argument details are not documented.

paint

paint(painter: Any, option: Any, widget: Any) -> None

X.paint(painter, option, widget)

Supplemental documentation: Qt 5 reference:

[override virtual] void QGraphicsProxyWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)

Reimplements: QGraphicsWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget).

Upstream PySide2 reference signatures (binding differences may apply):

paint(self, painter: PySide2.QtGui.QPainter, option: PySide2.QtWidgets.QStyleOptionGraphicsItem, widget: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#paint

paintWindowFrame

paintWindowFrame(painter: Any, option: Any, widget: Any) -> Any

X.paintWindowFrame(painter, option, widget)

parent instance-attribute

parentChanged

parentChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsProxyWidget.parentChanged; argument details are not documented.

polishEvent

polishEvent() -> Any

X.polishEvent()

pos instance-attribute

pos: QPointF

preferredSize instance-attribute

preferredSize: QSizeF

propertyChange

propertyChange(propertyName: Any, value: Any) -> Any

X.propertyChange(propertyName, value) -> object

rect

rect() -> Any

X.rect() -> PythonQt.QtCore.QRectF

resizeEvent

resizeEvent(event: Any) -> None

X.resizeEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGraphicsProxyWidget::resizeEvent(QGraphicsSceneResizeEvent *event)

Reimplements: QGraphicsWidget::resizeEvent(QGraphicsSceneResizeEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

resizeEvent(self, event: PySide2.QtWidgets.QGraphicsSceneResizeEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#resizeEvent

rotation instance-attribute

rotation: Any

rotationChanged

rotationChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsProxyWidget.rotationChanged; argument details are not documented.

scale instance-attribute

scale: Any

scaleChanged

scaleChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsProxyWidget.scaleChanged; argument details are not documented.

setFont

setFont(font: Any) -> Any

X.setFont(font)

setGeometry

setGeometry(rect: Any) -> None

X.setGeometry(rect)

Supplemental documentation: Qt 5 reference:

[override virtual] void QGraphicsProxyWidget::setGeometry(const QRectF \&rect)

Reimplements: QGraphicsLayoutItem::setGeometry(const QRectF \&rect).

Upstream PySide2 reference signatures (binding differences may apply):

setGeometry(self, rect: PySide2.QtCore.QRectF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#setGeometry

setLayout

setLayout(layout: Any) -> Any

X.setLayout(layout)

setPalette

setPalette(palette: Any) -> Any

X.setPalette(palette)

setShortcutAutoRepeat

setShortcutAutoRepeat(id: Any, enabled: Any) -> Any

X.setShortcutAutoRepeat(id, enabled)

setShortcutEnabled

setShortcutEnabled(id: Any, enabled: Any) -> Any

X.setShortcutEnabled(id, enabled)

setStyle

setStyle(style: Any) -> Any

X.setStyle(style)

setTabOrder

setTabOrder(first: Any, second: Any) -> Any

X.setTabOrder(first, second)

setWidget

setWidget(widget: Any) -> None

X.setWidget(widget)

Supplemental documentation: Qt 5 reference:

void QGraphicsProxyWidget::setWidget(QWidget *widget)

Embeds widget into this proxy widget. The embedded widget must reside exclusively either inside or outside of Graphics View. You cannot embed a widget as long as it is is visible elsewhere in the UI, at the same time.

widget must be a top-level widget whose parent is nullptr.

When the widget is embedded, its state (e.g., visible, enabled, geometry, size hints) is copied into the proxy widget. If the embedded widget is explicitly hidden or disabled, the proxy widget will become explicitly hidden or disabled after embedding is complete. The class documentation has a full overview over the shared state.

QGraphicsProxyWidget's window flags determine whether the widget, after embedding, will be given window decorations or not.

After this function returns, QGraphicsProxyWidget will keep its state synchronized with that of widget whenever possible.

If a widget is already embedded by this proxy when this function is called, that widget will first be automatically unembedded. Passing nullptr for the widget argument will only unembed the widget, and the ownership of the currently embedded widget will be passed on to the caller. Every child widget that are embedded will also be embedded and their proxy widget destroyed.

Note that widgets with the Qt::WA_PaintOnScreen widget attribute set and widgets that wrap an external application or controller cannot be embedded. Examples are QOpenGLWidget and QAxWidget.

See also widget().

Upstream PySide2 reference signatures (binding differences may apply):

setWidget(self, widget: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#setWidget

setWindowFlags

setWindowFlags(wFlags: Any) -> Any

X.setWindowFlags(wFlags)

setWindowFrameMargins

setWindowFrameMargins(left: Any, top: Any, right: Any, bottom: Any) -> Any

X.setWindowFrameMargins(left, top, right, bottom)

setWindowTitle

setWindowTitle(title: Any) -> Any

X.setWindowTitle(title)

showEvent

showEvent(event: Any) -> None

X.showEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGraphicsProxyWidget::showEvent(QShowEvent *event)

Reimplements: QGraphicsWidget::showEvent(QShowEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

showEvent(self, event: PySide2.QtGui.QShowEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#showEvent

size instance-attribute

size: QSizeF

sizeHint

sizeHint(which: Any, constraint: Any) -> Any

X.sizeHint(which, constraint) -> PythonQt.QtCore.QSizeF

Supplemental documentation: Qt 5 reference:

[override virtual protected] QSizeF QGraphicsProxyWidget::sizeHint(Qt::SizeHint which, const QSizeF \&constraint \= QSizeF()) const

Reimplements: QGraphicsWidget::sizeHint(Qt::SizeHint which, const QSizeF \&constraint) const.

Upstream PySide2 reference signatures (binding differences may apply):

sizeHint(self, which: PySide2.QtCore.Qt.SizeHint, constraint: PySide2.QtCore.QSizeF=...) -> PySide2.QtCore.QSizeF

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#sizeHint

subWidgetRect

subWidgetRect(widget: Any) -> Any

X.subWidgetRect(widget) -> PythonQt.QtCore.QRectF

Supplemental documentation: Qt 5 reference:

QRectF QGraphicsProxyWidget::subWidgetRect(const QWidget *widget) const

Returns the rectangle for widget, which must be a descendant of widget(), or widget() itself, in this proxy item's local coordinates.

If no widget is embedded, widget is nullptr, or widget is not a descendant of the embedded widget, this function returns an empty QRectF.

See also widget().

Upstream PySide2 reference signatures (binding differences may apply):

subWidgetRect(self, widget: PySide2.QtWidgets.QWidget) -> PySide2.QtCore.QRectF

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#subWidgetRect

transformOriginPoint instance-attribute

transformOriginPoint: QPointF

type

type() -> int

X.type() -> int

Supplemental documentation: Qt 5 reference:

[override virtual] int QGraphicsProxyWidget::type() const

Reimplements: QGraphicsWidget::type() const.

Upstream PySide2 reference signatures (binding differences may apply):

type(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#type

ungrabKeyboardEvent

ungrabKeyboardEvent(event: Any) -> Any

X.ungrabKeyboardEvent(event)

ungrabMouseEvent

ungrabMouseEvent(event: Any) -> None

X.ungrabMouseEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGraphicsProxyWidget::ungrabMouseEvent(QEvent *event)

Reimplements: QGraphicsWidget::ungrabMouseEvent(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

ungrabMouseEvent(self, event: PySide2.QtCore.QEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.html#ungrabMouseEvent

unsetWindowFrameMargins

unsetWindowFrameMargins() -> Any

X.unsetWindowFrameMargins()

visibleChanged

visibleChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsProxyWidget.visibleChanged; argument details are not documented.