Skip to content

PythonQt.Qt.QGraphicsProxyWidget

QGraphicsProxyWidget

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

QGraphicsProxyWidget embeds QWidget-based widgets, for example, a QPushButton, QFontComboBox, or even QFileDialog, into QGraphicsScene. It forwards events between the two objects and translates between QWidget's integer-based geometry and QGraphicsWidget's qreal-based geometry. QGraphicsProxyWidget supports all core features of QWidget, including tab focus, keyboard input, Drag \& Drop, and popups. You can also embed complex widgets, e.g., widgets with subwidgets.

Example:

int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    QTabWidget *tabWidget = new QTabWidget;

    QGraphicsScene scene;
    QGraphicsProxyWidget *proxy = scene.addWidget(tabWidget);

    QGraphicsView view(&scene);
    view.show();

    return app.exec();
}

QGraphicsProxyWidget takes care of automatically embedding popup children of embedded widgets through creating a child proxy for each popup. This means that when an embedded QComboBox shows its popup list, a new QGraphicsProxyWidget is created automatically, embedding the popup, and positioning it correctly. This only works if the popup is child of the embedded widget (for example QToolButton::setMenu() requires the QMenu instance to be child of the QToolButton).

Embedding a Widget with QGraphicsProxyWidget

There are two ways to embed a widget using QGraphicsProxyWidget. The most common way is to pass a widget pointer to QGraphicsScene::addWidget() together with any relevant Qt::WindowFlags. This function returns a pointer to a QGraphicsProxyWidget. You can then choose to reparent or position either the proxy, or the embedded widget itself.

For example, in the code snippet below, we embed a group box into the proxy:

QGroupBox *groupBox = new QGroupBox("Contact Details");
QLabel *numberLabel = new QLabel("Telephone number");
QLineEdit *numberEdit = new QLineEdit;

QFormLayout *layout = new QFormLayout;
layout->addRow(numberLabel, numberEdit);
groupBox->setLayout(layout);

QGraphicsScene scene;
QGraphicsProxyWidget *proxy = scene.addWidget(groupBox);

QGraphicsView view(&scene);
view.show();

The image below is the output obtained with its contents margin and contents rect labeled.

Alternatively, you can start by creating a new QGraphicsProxyWidget item, and then call setWidget() to embed a QWidget later. The widget() function returns a pointer to the embedded widget. QGraphicsProxyWidget shares ownership with QWidget, so if either of the two widgets are destroyed, the other widget will be automatically destroyed as well.

Synchronizing Widget States

QGraphicsProxyWidget keeps its state in sync with the embedded widget. For example, if the proxy is hidden or disabled, the embedded widget will be hidden or disabled as well, and vice versa. When the widget is embedded by calling addWidget(), QGraphicsProxyWidget copies the state from the widget into the proxy, and after that, the two will stay synchronized where possible. By default, when you embed a widget into a proxy, both the widget and the proxy will be visible because a QGraphicsWidget is visible when created (you do not have to call show()). If you explicitly hide the embedded widget, the proxy will also become invisible.

Example:

QGraphicsScene scene;

QLineEdit *edit = new QLineEdit;
QGraphicsProxyWidget *proxy = scene.addWidget(edit);

edit->isVisible();  // returns true
proxy->isVisible(); // also returns true

edit->hide();

edit->isVisible();  // returns false
proxy->isVisible(); // also returns false

QGraphicsProxyWidget maintains symmetry for the following states:

QWidget state QGraphicsProxyWidget state Notes
QWidget::enabled QGraphicsProxyWidget::enabled
QWidget::visible QGraphicsProxyWidget::visible The explicit state is also symmetric.
QWidget::geometry QGraphicsProxyWidget::geometry Geometry is only guaranteed to be symmetric while the embedded widget is visible.
QWidget::layoutDirection QGraphicsProxyWidget::layoutDirection
QWidget::style QGraphicsProxyWidget::style
QWidget::palette QGraphicsProxyWidget::palette
QWidget::font QGraphicsProxyWidget::font
QWidget::cursor QGraphicsProxyWidget::cursor The embedded widget overrides the proxy widget cursor. The proxy cursor changes depending on which embedded subwidget is currently under the mouse.
QWidget::sizeHint() QGraphicsProxyWidget::sizeHint() All size hint functionality from the embedded widget is forwarded by the proxy.
QWidget::getContentsMargins() QGraphicsProxyWidget::getContentsMargins() Updated once by setWidget().
QWidget::windowTitle QGraphicsProxyWidget::windowTitle Updated once by setWidget().

Note: QGraphicsScene keeps the embedded widget in a special state that prevents it from disturbing other widgets (both embedded and not embedded) while the widget is embedded. In this state, the widget may differ slightly in behavior from when it is not embedded.

Warning: This class is provided for convenience when bridging QWidgets and QGraphicsItems, it should not be used for high-performance scenarios. In particular, embedding widgets into a scene that is then displayed through a QGraphicsView that uses an OpenGL viewport will not work for all combinations.

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsproxywidget.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) -> Any (shared captured text)
addActions function (self, actions: Any) -> Any (shared captured text)
addToIndex function (self) -> Any (shared captured text)
adjustSize function (self) -> Any (shared captured text)
advance function (self, phase: Any) -> Any (shared captured text)
autoFillBackground attribute Any (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) -> Any (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.QGraphicsProxyWidget.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) -> Any (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) -> None Reimplements: [QGraphicsItem::contextMenuEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#contextMenuEvent)(QGraphicsSceneContextMenuEvent *event). (shared captured text)
createProxyForChildWidget function (self, child: Any) -> Any X.createProxyForChildWidget(child) -> PythonQt.QtGui.QGraphicsProxyWidget (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.QGraphicsProxyWidget.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) -> None Reimplements: [QGraphicsItem::dragEnterEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#dragEnterEvent)(QGraphicsSceneDragDropEvent *event). (shared captured text)
dragLeaveEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::dragLeaveEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#dragLeaveEvent)(QGraphicsSceneDragDropEvent *event). (shared captured text)
dragMoveEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::dragMoveEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#dragMoveEvent)(QGraphicsSceneDragDropEvent *event). (shared captured text)
dropEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::dropEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#dropEvent)(QGraphicsSceneDragDropEvent *event). (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.QGraphicsProxyWidget.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, object: Any, event: Any) -> bool X.eventFilter(object, 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: [QGraphicsWidget::focusInEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.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: [QGraphicsWidget::focusOutEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#focusOutEvent)(QFocusEvent *event). (shared captured text)
focusPolicy attribute Any (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 (shared captured text)
geometry attribute QRectF (shared captured text)
geometryChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.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) -> Any (shared captured text)
grabMouse function (self) -> Any (shared captured text)
grabMouseEvent function (self, event: Any) -> None Reimplements: [QGraphicsWidget::grabMouseEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#grabMouseEvent)(QEvent *event). (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.QGraphicsProxyWidget.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 Reimplements: [QGraphicsWidget::hideEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#hideEvent)(QHideEvent *event). (shared captured text)
hoverEnterEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::hoverEnterEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hoverEnterEvent)(QGraphicsSceneHoverEvent *event). (shared captured text)
hoverLeaveEvent function (self, event: Any) -> None Reimplements: [QGraphicsWidget::hoverLeaveEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#hoverLeaveEvent)(QGraphicsSceneHoverEvent *event). (shared captured text)
hoverMoveEvent function (self, event: Any) -> None Reimplements: [QGraphicsWidget::hoverMoveEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.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) -> Any (shared captured text)
inputMethodEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::inputMethodEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#inputMethodEvent)(QInputMethodEvent *event). (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) -> Any X.insertAction(before, action) (shared captured text)
insertActions function (self, before: Any, actions: Any) -> Any 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) -> None Reimplements: [QGraphicsItem::keyPressEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#keyPressEvent)(QKeyEvent *event). (shared captured text)
keyReleaseEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::keyReleaseEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#keyReleaseEvent)(QKeyEvent *event). (shared captured text)
killTimer function (self, id: Any) -> Any (shared captured text)
layout attribute QGraphicsLayout (shared captured text)
layoutChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.layoutChanged; argument details are not documented.
layoutDirection attribute Any (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 (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 (shared captured text)
minimumWidth function (self) -> float X.minimumWidth() -> float (shared captured text)
mouseDoubleClickEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::mouseDoubleClickEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mouseDoubleClickEvent)(QGraphicsSceneMouseEvent *event). (shared captured text)
mouseMoveEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::mouseMoveEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mouseMoveEvent)(QGraphicsSceneMouseEvent *event). (shared captured text)
mousePressEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::mousePressEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mousePressEvent)(QGraphicsSceneMouseEvent *event). (shared captured text)
mouseReleaseEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::mouseReleaseEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mouseReleaseEvent)(QGraphicsSceneMouseEvent *event). (shared captured text)
moveBy function (self, dx: Any, dy: Any) -> Any X.moveBy(dx, dy) (shared captured text)
moveEvent function (self, event: Any) -> Any (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.QGraphicsProxyWidget.objectNameChanged; argument details are not documented.
opacity attribute Any (shared captured text)
opacityChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.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) -> Any X.paintWindowFrame(painter, option, widget) (shared captured text)
palette attribute QPalette (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.QGraphicsProxyWidget.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) -> Any (shared captured text)
pos attribute QPointF (shared captured text)
preferredHeight function (self) -> float X.preferredHeight() -> float (shared captured text)
preferredSize attribute QSizeF (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: Any, 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: Any) -> Any (shared captured text)
removeAction function (self, action: Any) -> Any (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) -> Any X.resize(w, h) (shared captured text)
resizeEvent function (self, event: Any) -> None Reimplements: [QGraphicsWidget::resizeEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#resizeEvent)(QGraphicsSceneResizeEvent *event). (shared captured text)
rotation attribute Any (shared captured text)
rotationChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.rotationChanged; argument details are not documented.
scale attribute Any (shared captured text)
scaleChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.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: Any) -> Any X.setAttribute(attribute, on) (shared captured text)
setAutoFillBackground function (self, enabled: Any) -> Any (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) -> Any 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) -> Any (shared captured text)
setFocusProxy function (self, item: Any) -> Any (shared captured text)
setFont function (self, font: Any) -> Any (shared captured text)
setGeometry function (self, rect: Any) -> None Reimplements: [QGraphicsLayoutItem::setGeometry](https://doc.qt.io/archives/qt-5.15/qgraphicslayoutitem.html#setGeometry)(const QRectF \&rect). (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) -> Any (shared captured text)
setLayoutDirection function (self, direction: Any) -> Any (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) -> Any (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: Any, enabled: Any) -> Any X.setShortcutAutoRepeat(id, enabled) (shared captured text)
setShortcutEnabled function (self, id: Any, enabled: Any) -> Any 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) -> Any (shared captured text)
setTabOrder function (self, first: Any, second: Any) -> Any 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)
setWidget function (self, widget: Any) -> None Embeds widget into this proxy widget. (shared captured text)
setWindowFlags function (self, wFlags: Any) -> Any (shared captured text)
setWindowFrameMargins function (self, left: Any, top: Any, right: Any, bottom: Any) -> Any X.setWindowFrameMargins(left, top, right, bottom) (shared captured text)
setWindowTitle function (self, title: Any) -> Any (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 Reimplements: [QGraphicsWidget::showEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#showEvent)(QShowEvent *event). (shared captured text)
signalsBlocked function (self) -> bool X.signalsBlocked() -> bool (shared captured text)
size attribute QSizeF (shared captured text)
sizeHint function (self, which: Any, constraint: Any) -> Any X.sizeHint(which, constraint) -> PythonQt.QtCore.QSizeF (shared captured text)
sizePolicy attribute QSizePolicy (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)
subWidgetRect function (self, widget: Any) -> Any X.subWidgetRect(widget) -> PythonQt.QtCore.QRectF (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) -> Any (shared captured text)
ungrabMouse function (self) -> Any (shared captured text)
ungrabMouseEvent function (self, event: Any) -> None Reimplements: [QGraphicsWidget::ungrabMouseEvent](https://doc.qt.io/archives/qt-5.15/qgraphicswidget.html#ungrabMouseEvent)(QEvent *event). (shared captured text)
unsetCursor function (self) -> Any (shared captured text)
unsetLayoutDirection function (self) -> Any (shared captured text)
unsetWindowFrameMargins function (self) -> Any (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) -> Any (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.QGraphicsProxyWidget.visibleChanged; argument details are not documented.
wheelEvent function (self, event: Any) -> None Reimplements: [QGraphicsItem::wheelEvent](https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#wheelEvent)(QGraphicsSceneWheelEvent *event). (shared captured text)
widget function (self) -> Any X.widget() -> PythonQt.QtGui.QWidget (shared captured text)
width attribute Any (shared captured text)
widthChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.widthChanged; argument details are not documented.
window function (self) -> Any X.window() -> PythonQt.QtGui.QGraphicsWidget (shared captured text)
windowFlags attribute Any (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 (shared captured text)
windowTitle attribute Any (shared captured text)
windowType function (self) -> Any (shared captured text)
x attribute Any (shared captured text)
xChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.xChanged; argument details are not documented.
y attribute Any (shared captured text)
yChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.yChanged; argument details are not documented.
z attribute Any (shared captured text)
zChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.Qt.QGraphicsProxyWidget.zChanged; argument details are not documented.
zValue function (self) -> float X.zValue() -> float (shared captured text)