PythonQt.QtGui.QGraphicsItem · declarations 002
Back to PythonQt.QtGui.QGraphicsItem
group
group() -> Any
X.group() -> PythonQt.QtGui.QGraphicsItemGroup
Supplemental documentation: Qt 5 reference:
QGraphicsItemGroup *QGraphicsItem::group() const
Returns a pointer to this item's item group, or nullptr if this item is not member of
a group.
See also setGroup(), QGraphicsItemGroup, and QGraphicsScene::createItemGroup().
Upstream PySide2 reference signatures (binding differences may apply):
group(self) -> PySide2.QtWidgets.QGraphicsItemGroup
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#group
handlesChildEvents
handlesChildEvents() -> bool
X.handlesChildEvents() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
handlesChildEvents(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#handlesChildEvents
hasCursor
hasCursor() -> bool
X.hasCursor() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::hasCursor() const
Returns true if this item has a cursor set; otherwise, false is returned.
By default, items don't have any cursor set. cursor() will return a standard pointing arrow cursor.
See also unsetCursor().
Upstream PySide2 reference signatures (binding differences may apply):
hasCursor(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hasCursor
hasFocus
hasFocus() -> bool
X.hasFocus() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::hasFocus() const
Returns true if this item is active, and it or its focus
proxy has keyboard
input focus; otherwise, returns false.
See also focusItem(), setFocus(), QGraphicsScene::setFocusItem(), and isActive().
Upstream PySide2 reference signatures (binding differences may apply):
hasFocus(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hasFocus
hide
hide() -> None
X.hide()
Supplemental documentation: Qt 5 reference:
void QGraphicsItem::hide()
Hides the item (items are visible by default).
This convenience function is equivalent to calling setVisible(false).
See also show() and setVisible().
Upstream PySide2 reference signatures (binding differences may apply):
hide(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hide
hoverEnterEvent
hoverEnterEvent(event: Any) -> None
X.hoverEnterEvent(event)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGraphicsItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
This event handler, for event event, can be reimplemented to receive hover enter events for this item. The default implementation calls update(); otherwise it does nothing.
Calling QEvent::ignore() or QEvent::accept() on event has no effect.
See also hoverMoveEvent(), hoverLeaveEvent(), sceneEvent(), and setAcceptHoverEvents().
Upstream PySide2 reference signatures (binding differences may apply):
hoverEnterEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hoverEnterEvent
hoverLeaveEvent
hoverLeaveEvent(event: Any) -> None
X.hoverLeaveEvent(event)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGraphicsItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
This event handler, for event event, can be reimplemented to receive hover leave events for this item. The default implementation calls update(); otherwise it does nothing.
Calling QEvent::ignore() or QEvent::accept() on event has no effect.
See also hoverEnterEvent(), hoverMoveEvent(), sceneEvent(), and setAcceptHoverEvents().
Upstream PySide2 reference signatures (binding differences may apply):
hoverLeaveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hoverLeaveEvent
hoverMoveEvent
hoverMoveEvent(event: Any) -> None
X.hoverMoveEvent(event)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGraphicsItem::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
This event handler, for event event, can be reimplemented to receive hover move events for this item. The default implementation does nothing.
Calling QEvent::ignore() or QEvent::accept() on event has no effect.
See also hoverEnterEvent(), hoverLeaveEvent(), sceneEvent(), and setAcceptHoverEvents().
Upstream PySide2 reference signatures (binding differences may apply):
hoverMoveEvent(self, event: PySide2.QtWidgets.QGraphicsSceneHoverEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#hoverMoveEvent
inputMethodEvent
inputMethodEvent(event: Any) -> None
X.inputMethodEvent(event)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGraphicsItem::inputMethodEvent(QInputMethodEvent *event)
This event handler, for event event, can be reimplemented to receive input method events for this item. The default implementation ignores the event.
See also inputMethodQuery() and sceneEvent().
Upstream PySide2 reference signatures (binding differences may apply):
inputMethodEvent(self, event: PySide2.QtGui.QInputMethodEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#inputMethodEvent
inputMethodHints
inputMethodHints() -> Any
X.inputMethodHints()
Supplemental documentation: Qt 5 reference:
Qt::InputMethodHints QGraphicsItem::inputMethodHints() const
Returns the current input method hints of this item.
Input method hints are only relevant for input items. The hints are used by the input method to indicate how it should operate. For example, if the Qt::ImhNumbersOnly flag is set, the input method may change its visual components to reflect that only numbers can be entered.
The effect may vary between input method implementations.
This function was introduced in Qt 4.6.
See also setInputMethodHints() and inputMethodQuery().
Upstream PySide2 reference signatures (binding differences may apply):
inputMethodHints(self) -> PySide2.QtCore.Qt.InputMethodHints
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#inputMethodHints
inputMethodQuery
inputMethodQuery(query: Any) -> Any
X.inputMethodQuery(query) -> object
Supplemental documentation: Qt 5 reference:
[virtual protected] QVariant QGraphicsItem::inputMethodQuery(Qt::InputMethodQuery query) const
This method is only relevant for input items. It is used by the input method to query a set of properties of the item to be able to support complex input method operations, such as support for surrounding text and reconversions. query specifies which property is queried.
See also inputMethodEvent() and QInputMethodEvent.
Upstream PySide2 reference signatures (binding differences may apply):
inputMethodQuery(self, query: PySide2.QtCore.Qt.InputMethodQuery) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#inputMethodQuery
installSceneEventFilter
installSceneEventFilter(filterItem: Any) -> None
X.installSceneEventFilter(filterItem)
Supplemental documentation: Qt 5 reference:
void QGraphicsItem::installSceneEventFilter(QGraphicsItem *filterItem)
Installs an event filter for this item on filterItem, causing all events for this item to first pass through filterItem's sceneEventFilter() function.
To filter another item's events, install this item as an event filter for the other item. Example:
QGraphicsScene scene;
QGraphicsEllipseItem *ellipse = scene.addEllipse(QRectF(-10, -10, 20, 20));
QGraphicsLineItem *line = scene.addLine(QLineF(-10, -10, 20, 20));
line->installSceneEventFilter(ellipse);
// line's events are filtered by ellipse's sceneEventFilter() function.
ellipse->installSceneEventFilter(line);
// ellipse's events are filtered by line's sceneEventFilter() function.
An item can only filter events for other items in the same scene. Also, an item cannot filter its own events; instead, you can reimplement sceneEvent() directly.
Items must belong to a scene for scene event filters to be installed and used.
See also removeSceneEventFilter(), sceneEventFilter(), and sceneEvent().
Upstream PySide2 reference signatures (binding differences may apply):
installSceneEventFilter(self, filterItem: PySide2.QtWidgets.QGraphicsItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#installSceneEventFilter
isActive
isActive() -> bool
X.isActive() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isActive() const
Returns true if this item is active; otherwise returns false.
An item can only be active if the scene is active. An item is active if it is, or is a descendent of, an active panel. Items in non-active panels are not active.
Items that are not part of a panel follow scene activation when the scene has no active panel.
Only active items can gain input focus.
This function was introduced in Qt 4.6.
See also QGraphicsScene::isActive(), QGraphicsScene::activePanel(), panel(), and isPanel().
Upstream PySide2 reference signatures (binding differences may apply):
isActive(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isActive
isAncestorOf
isAncestorOf(child: Any) -> bool
X.isAncestorOf(child) -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isAncestorOf(const QGraphicsItem *child) const
Returns true if this item is an ancestor of child (i.e., if this item is child's
parent, or one of child's parent's ancestors).
See also parentItem().
Upstream PySide2 reference signatures (binding differences may apply):
isAncestorOf(self, child: PySide2.QtWidgets.QGraphicsItem) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isAncestorOf
isBlockedByModalPanel
isBlockedByModalPanel(blockingPanel: Any) -> bool
X.isBlockedByModalPanel(blockingPanel) -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isBlockedByModalPanel(QGraphicsItem **blockingPanel \= nullptr) const
Returns true if this item is blocked by a modal panel, false otherwise. If
blockingPanel is non-zero, blockingPanel will be set to the modal panel that is
blocking this item. If this item is not blocked, blockingPanel will not be set by this
function.
This function always returns false for items not in a scene.
This function was introduced in Qt 4.6.
See also panelModality(), setPanelModality(), and PanelModality.
Upstream PySide2 reference signatures (binding differences may apply):
isBlockedByModalPanel(self, blockingPanel: typing.Optional[PySide2.QtWidgets.QGraphicsItem]=...) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isBlockedByModalPanel
isClipped
isClipped() -> bool
X.isClipped() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isClipped() const
Returns true if this item is clipped. An item is clipped if it has either set the
ItemClipsToShape
flag, or if it or any of its ancestors has set the
ItemClipsChildrenToShape
flag.
Clipping affects the item's appearance (i.e., painting), as well as mouse and hover event delivery.
See also clipPath(), shape(), and setFlags().
Upstream PySide2 reference signatures (binding differences may apply):
isClipped(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isClipped
isEnabled
isEnabled() -> bool
X.isEnabled() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isEnabled() const
Returns true if the item is enabled; otherwise, false is returned.
See also setEnabled().
Upstream PySide2 reference signatures (binding differences may apply):
isEnabled(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isEnabled
isObscured
isObscured(x: Any, y: Any, w: Any, h: Any) -> bool
X.isObscured(x, y, w, h) -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isObscured(const QRectF \&rect \= QRectF()) const
This is an overloaded function.
Returns true if rect is completely obscured by the opaque shape of any of colliding
items above it (i.e., with a higher Z value than this item).
This function was introduced in Qt 4.3.
See also opaqueArea().
bool QGraphicsItem::isObscured(qreal x, qreal y, qreal w, qreal h) const
This is an overloaded function.
This convenience function is equivalent to calling isObscured(QRectF(x, y, w, h)).
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
isObscured(self, rect: PySide2.QtCore.QRectF=...) -> bool
isObscured(self, x: float, y: float, w: float, h: float) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isObscured
isObscuredBy
isObscuredBy(item: Any) -> bool
X.isObscuredBy(item) -> bool
Supplemental documentation: Qt 5 reference:
[virtual] bool QGraphicsItem::isObscuredBy(const QGraphicsItem *item) const
Returns true if this item's bounding rect is completely obscured by the opaque shape
of item.
The base implementation maps item's opaqueArea() to this item's coordinate system, and then checks if this item's boundingRect() is fully contained within the mapped shape.
You can reimplement this function to provide a custom algorithm for determining whether this item is obscured by item.
See also opaqueArea() and isObscured().
Upstream PySide2 reference signatures (binding differences may apply):
isObscuredBy(self, item: PySide2.QtWidgets.QGraphicsItem) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isObscuredBy
isPanel
isPanel() -> bool
X.isPanel() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isPanel() const
Returns true if the item is a panel; otherwise returns false.
This function was introduced in Qt 4.6.
See also QGraphicsItem::panel() and ItemIsPanel.
Upstream PySide2 reference signatures (binding differences may apply):
isPanel(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isPanel
isSelected
isSelected() -> bool
X.isSelected() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isSelected() const
Returns true if this item is selected; otherwise, false is returned.
Items that are in a group inherit the group's selected state.
Items are not selected by default.
See also setSelected() and QGraphicsScene::setSelectionArea().
Upstream PySide2 reference signatures (binding differences may apply):
isSelected(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isSelected
isUnderMouse
isUnderMouse() -> bool
X.isUnderMouse() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isUnderMouse() const
Returns true if this item is currently under the mouse cursor in one of the views;
otherwise, false is returned.
This function was introduced in Qt 4.4.
See also QGraphicsScene::views() and QCursor::pos().
Upstream PySide2 reference signatures (binding differences may apply):
isUnderMouse(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isUnderMouse
isVisible
isVisible() -> bool
X.isVisible() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isVisible() const
Returns true if the item is visible; otherwise, false is returned.
Note that the item's general visibility is unrelated to whether or not it is actually being visualized by a QGraphicsView.
See also setVisible().
Upstream PySide2 reference signatures (binding differences may apply):
isVisible(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isVisible
isVisibleTo
isVisibleTo(parent: Any) -> bool
X.isVisibleTo(parent) -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isVisibleTo(const QGraphicsItem *parent) const
Returns true if the item is visible to parent; otherwise, false is returned.
parent can be nullptr, in which case this function will return whether the item is
visible to the scene or not.
An item may not be visible to its ancestors even if isVisible() is true. It may also be visible to its ancestors even if isVisible() is false. If any ancestor is hidden, the item itself will be implicitly hidden, in which case this function will return false.
This function was introduced in Qt 4.4.
See also isVisible() and setVisible().
Upstream PySide2 reference signatures (binding differences may apply):
isVisibleTo(self, parent: PySide2.QtWidgets.QGraphicsItem) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isVisibleTo
isWidget
isWidget() -> bool
X.isWidget() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isWidget() const
Returns true if this item is a widget (i.e.,
QGraphicsWidget);
otherwise, returns false.
This function was introduced in Qt 4.4.
Upstream PySide2 reference signatures (binding differences may apply):
isWidget(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isWidget
isWindow
isWindow() -> bool
X.isWindow() -> bool
Supplemental documentation: Qt 5 reference:
bool QGraphicsItem::isWindow() const
Returns true if the item is a
QGraphicsWidget
window, otherwise returns false.
This function was introduced in Qt 4.4.
See also QGraphicsWidget::windowFlags().
Upstream PySide2 reference signatures (binding differences may apply):
isWindow(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#isWindow
itemChange
itemChange(change: Any, value: Any) -> Any
X.itemChange(change, value) -> object
Supplemental documentation: Qt 5 reference:
[virtual protected] QVariant QGraphicsItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant \&value)
This virtual function is called by QGraphicsItem to notify custom items that some part of the item's state changes. By reimplementing this function, you can react to a change, and in some cases (depending on change), adjustments can be made.
change is the parameter of the item that is changing. value is the new value; the type of the value depends on change.
Example:
QVariant Component::itemChange(GraphicsItemChange change, const QVariant &value)
{
if (change == ItemPositionChange && scene()) {
// value is the new position.
QPointF newPos = value.toPointF();
QRectF rect = scene()->sceneRect();
if (!rect.contains(newPos)) {
// Keep the item inside the scene rect.
newPos.setX(qMin(rect.right(), qMax(newPos.x(), rect.left())));
newPos.setY(qMin(rect.bottom(), qMax(newPos.y(), rect.top())));
return newPos;
}
}
return QGraphicsItem::itemChange(change, value);
}
The default implementation does nothing, and returns value.
Note: Certain QGraphicsItem functions cannot be called in a reimplementation of this function; see the GraphicsItemChange documentation for details.
See also GraphicsItemChange.
Upstream PySide2 reference signatures (binding differences may apply):
itemChange(self, change: PySide2.QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#itemChange
itemTransform
itemTransform(other: Any, ok: Any) -> Any
X.itemTransform(other, ok) -> PythonQt.QtGui.QTransform
Supplemental documentation: Qt 5 reference:
QTransform QGraphicsItem::itemTransform(const QGraphicsItem *other, bool *ok \= nullptr) const
Returns a QTransform that maps coordinates from this item to other. If ok is not null, and if there is no such transform, the boolean pointed to by ok will be set to false; otherwise it will be set to true.
This transform provides an alternative to the mapToItem() or mapFromItem() functions, by returning the appropriate transform so that you can map shapes and coordinates yourself. It also helps you write more efficient code when repeatedly mapping between the same two items.
Note: In rare circumstances, there is no transform that maps between two items.
This function was introduced in Qt 4.5.
See also mapToItem(), mapFromItem(), and deviceTransform().
Upstream PySide2 reference signatures (binding differences may apply):
itemTransform(self, other: PySide2.QtWidgets.QGraphicsItem) -> typing.Tuple[PySide2.QtGui.QTransform, bool]
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#itemTransform
keyPressEvent
keyPressEvent(event: Any) -> None
X.keyPressEvent(event)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGraphicsItem::keyPressEvent(QKeyEvent *event)
This event handler, for event event, can be reimplemented to receive key press events for this item. The default implementation ignores the event. If you reimplement this handler, the event will by default be accepted.
Note that key events are only received for items that set the ItemIsFocusable flag, and that have keyboard input focus.
See also keyReleaseEvent(), setFocus(), QGraphicsScene::setFocusItem(), and sceneEvent().
Upstream PySide2 reference signatures (binding differences may apply):
keyPressEvent(self, event: PySide2.QtGui.QKeyEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#keyPressEvent
keyReleaseEvent
keyReleaseEvent(event: Any) -> None
X.keyReleaseEvent(event)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGraphicsItem::keyReleaseEvent(QKeyEvent *event)
This event handler, for event event, can be reimplemented to receive key release events for this item. The default implementation ignores the event. If you reimplement this handler, the event will by default be accepted.
Note that key events are only received for items that set the ItemIsFocusable flag, and that have keyboard input focus.
See also keyPressEvent(), setFocus(), QGraphicsScene::setFocusItem(), and sceneEvent().
Upstream PySide2 reference signatures (binding differences may apply):
keyReleaseEvent(self, event: PySide2.QtGui.QKeyEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#keyReleaseEvent
mapFromItem
mapFromItem(item: Any, x: Any, y: Any, w: Any, h: Any) -> Any
X.mapFromItem(item, x, y, w, h) -> PythonQt.QtGui.QPainterPath
Supplemental documentation: Qt 5 reference:
QPointF QGraphicsItem::mapFromItem(const QGraphicsItem *item, const QPointF \&point) const
Maps the point point, which is in item's coordinate system, to this item's coordinate system, and returns the mapped coordinate.
If item is nullptr, this function returns the same as
mapFromScene().
See also itemTransform(), mapFromParent(), mapFromScene(), transform(), mapToItem(), and The Graphics View Coordinate System.
QPolygonF QGraphicsItem::mapFromItem(const QGraphicsItem *item, const QRectF \&rect) const
Maps the rectangle rect, which is in item's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon.
If item is nullptr, this function returns the same as
mapFromScene()
See also itemTransform(), mapToItem(), mapFromParent(), transform(), and The Graphics View Coordinate System.
QPolygonF QGraphicsItem::mapFromItem(const QGraphicsItem *item, const QPolygonF \&polygon) const
Maps the polygon polygon, which is in item's coordinate system, to this item's coordinate system, and returns the mapped polygon.
If item is nullptr, this function returns the same as
mapFromScene().
See also itemTransform(), mapToItem(), mapFromParent(), transform(), and The Graphics View Coordinate System.
QPainterPath QGraphicsItem::mapFromItem(const QGraphicsItem *item, const QPainterPath \&path) const
Maps the path path, which is in item's coordinate system, to this item's coordinate system, and returns the mapped path.
If item is nullptr, this function returns the same as
mapFromScene().
See also itemTransform(), mapFromParent(), mapFromScene(), mapToItem(), and The Graphics View Coordinate System.
QPointF QGraphicsItem::mapFromItem(const QGraphicsItem *item, qreal x, qreal y) const
This is an overloaded function.
This convenience function is equivalent to calling mapFromItem(item, QPointF(x, y)).
QPolygonF QGraphicsItem::mapFromItem(const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapFromItem(item, QRectF(x, y, w, h)).
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
mapFromItem(self, item: PySide2.QtWidgets.QGraphicsItem, path: PySide2.QtGui.QPainterPath) -> PySide2.QtGui.QPainterPath
mapFromItem(self, item: PySide2.QtWidgets.QGraphicsItem, point: PySide2.QtCore.QPointF) -> PySide2.QtCore.QPointF
mapFromItem(self, item: PySide2.QtWidgets.QGraphicsItem, polygon: PySide2.QtGui.QPolygonF) -> PySide2.QtGui.QPolygonF
mapFromItem(self, item: PySide2.QtWidgets.QGraphicsItem, rect: PySide2.QtCore.QRectF) -> PySide2.QtGui.QPolygonF
mapFromItem(self, item: PySide2.QtWidgets.QGraphicsItem, x: float, y: float) -> PySide2.QtCore.QPointF
mapFromItem(self, item: PySide2.QtWidgets.QGraphicsItem, x: float, y: float, w: float, h: float) -> PySide2.QtGui.QPolygonF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapFromItem
mapFromParent
mapFromParent(x: Any, y: Any, w: Any, h: Any) -> Any
X.mapFromParent(x, y, w, h) -> PythonQt.QtGui.QPainterPath
Supplemental documentation: Qt 5 reference:
QPointF QGraphicsItem::mapFromParent(const QPointF \&point) const
Maps the point point, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped coordinate.
See also mapFromItem(), mapFromScene(), transform(), mapToParent(), and The Graphics View Coordinate System.
QPolygonF QGraphicsItem::mapFromParent(const QRectF \&rect) const
Maps the rectangle rect, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon.
See also mapToParent(), mapFromItem(), transform(), and The Graphics View Coordinate System.
QPolygonF QGraphicsItem::mapFromParent(const QPolygonF \&polygon) const
Maps the polygon polygon, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped polygon.
See also mapToParent(), mapToItem(), transform(), and The Graphics View Coordinate System.
QPainterPath QGraphicsItem::mapFromParent(const QPainterPath \&path) const
Maps the path path, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped path.
See also mapFromScene(), mapFromItem(), mapToParent(), and The Graphics View Coordinate System.
QPointF QGraphicsItem::mapFromParent(qreal x, qreal y) const
This is an overloaded function.
This convenience function is equivalent to calling mapFromParent(QPointF(x, y)).
QPolygonF QGraphicsItem::mapFromParent(qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapFromItem(QRectF(x, y, w, h)).
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
mapFromParent(self, path: PySide2.QtGui.QPainterPath) -> PySide2.QtGui.QPainterPath
mapFromParent(self, point: PySide2.QtCore.QPointF) -> PySide2.QtCore.QPointF
mapFromParent(self, polygon: PySide2.QtGui.QPolygonF) -> PySide2.QtGui.QPolygonF
mapFromParent(self, rect: PySide2.QtCore.QRectF) -> PySide2.QtGui.QPolygonF
mapFromParent(self, x: float, y: float) -> PySide2.QtCore.QPointF
mapFromParent(self, x: float, y: float, w: float, h: float) -> PySide2.QtGui.QPolygonF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapFromParent
mapFromScene
mapFromScene(x: Any, y: Any, w: Any, h: Any) -> Any
X.mapFromScene(x, y, w, h) -> PythonQt.QtGui.QPainterPath
Supplemental documentation: Qt 5 reference:
QPointF QGraphicsItem::mapFromScene(const QPointF \&point) const
Maps the point point, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped coordinate.
See also mapFromItem(), mapFromParent(), transform(), mapToScene(), and The Graphics View Coordinate System.
QPolygonF QGraphicsItem::mapFromScene(const QRectF \&rect) const
Maps the rectangle rect, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a polygon.
See also mapToScene(), mapFromItem(), transform(), and The Graphics View Coordinate System.
QPolygonF QGraphicsItem::mapFromScene(const QPolygonF \&polygon) const
Maps the polygon polygon, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped polygon.
See also mapToScene(), mapFromParent(), transform(), and The Graphics View Coordinate System.
QPainterPath QGraphicsItem::mapFromScene(const QPainterPath \&path) const
Maps the path path, which is in this item's scene's coordinate system, to this item's coordinate system, and returns the mapped path.
See also mapFromParent(), mapFromItem(), mapToScene(), and The Graphics View Coordinate System.
QPointF QGraphicsItem::mapFromScene(qreal x, qreal y) const
This is an overloaded function.
This convenience function is equivalent to calling mapFromScene(QPointF(x, y)).
QPolygonF QGraphicsItem::mapFromScene(qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapFromScene(QRectF(x, y, w, h)).
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
mapFromScene(self, path: PySide2.QtGui.QPainterPath) -> PySide2.QtGui.QPainterPath
mapFromScene(self, point: PySide2.QtCore.QPointF) -> PySide2.QtCore.QPointF
mapFromScene(self, polygon: PySide2.QtGui.QPolygonF) -> PySide2.QtGui.QPolygonF
mapFromScene(self, rect: PySide2.QtCore.QRectF) -> PySide2.QtGui.QPolygonF
mapFromScene(self, x: float, y: float) -> PySide2.QtCore.QPointF
mapFromScene(self, x: float, y: float, w: float, h: float) -> PySide2.QtGui.QPolygonF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapFromScene
mapRectFromItem
mapRectFromItem(item: Any, x: Any, y: Any, w: Any, h: Any) -> Any
X.mapRectFromItem(item, x, y, w, h) -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
QRectF QGraphicsItem::mapRectFromItem(const QGraphicsItem *item, const QRectF \&rect) const
Maps the rectangle rect, which is in item's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).
If item is nullptr, this function returns the same as
mapRectFromScene().
This function was introduced in Qt 4.5.
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QRectF QGraphicsItem::mapRectFromItem(const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapRectFromItem(item, QRectF(x, y, w, h)).
This function was introduced in Qt 4.5.
Upstream PySide2 reference signatures (binding differences may apply):
mapRectFromItem(self, item: PySide2.QtWidgets.QGraphicsItem, rect: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF
mapRectFromItem(self, item: PySide2.QtWidgets.QGraphicsItem, x: float, y: float, w: float, h: float) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapRectFromItem
mapRectFromParent
mapRectFromParent(x: Any, y: Any, w: Any, h: Any) -> Any
X.mapRectFromParent(x, y, w, h) -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
QRectF QGraphicsItem::mapRectFromParent(const QRectF \&rect) const
Maps the rectangle rect, which is in this item's parent's coordinate system, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).
This function was introduced in Qt 4.5.
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QRectF QGraphicsItem::mapRectFromParent(qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapRectFromParent(QRectF(x, y, w, h)).
This function was introduced in Qt 4.5.
Upstream PySide2 reference signatures (binding differences may apply):
mapRectFromParent(self, rect: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF
mapRectFromParent(self, x: float, y: float, w: float, h: float) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapRectFromParent
mapRectFromScene
mapRectFromScene(x: Any, y: Any, w: Any, h: Any) -> Any
X.mapRectFromScene(x, y, w, h) -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
QRectF QGraphicsItem::mapRectFromScene(const QRectF \&rect) const
Maps the rectangle rect, which is in scene coordinates, to this item's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).
This function was introduced in Qt 4.5.
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QRectF QGraphicsItem::mapRectFromScene(qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapRectFromScene(QRectF(x, y, w, h)).
This function was introduced in Qt 4.5.
Upstream PySide2 reference signatures (binding differences may apply):
mapRectFromScene(self, rect: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF
mapRectFromScene(self, x: float, y: float, w: float, h: float) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapRectFromScene
mapRectToItem
mapRectToItem(item: Any, x: Any, y: Any, w: Any, h: Any) -> Any
X.mapRectToItem(item, x, y, w, h) -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
QRectF QGraphicsItem::mapRectToItem(const QGraphicsItem *item, const QRectF \&rect) const
Maps the rectangle rect, which is in this item's coordinate system, to item's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).
If item is nullptr, this function returns the same as
mapRectToScene().
This function was introduced in Qt 4.5.
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QRectF QGraphicsItem::mapRectToItem(const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapRectToItem(item, QRectF(x, y, w, h)).
This function was introduced in Qt 4.5.
Upstream PySide2 reference signatures (binding differences may apply):
mapRectToItem(self, item: PySide2.QtWidgets.QGraphicsItem, rect: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF
mapRectToItem(self, item: PySide2.QtWidgets.QGraphicsItem, x: float, y: float, w: float, h: float) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapRectToItem
mapRectToParent
mapRectToParent(x: Any, y: Any, w: Any, h: Any) -> Any
X.mapRectToParent(x, y, w, h) -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
QRectF QGraphicsItem::mapRectToParent(const QRectF \&rect) const
Maps the rectangle rect, which is in this item's coordinate system, to its parent's coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).
This function was introduced in Qt 4.5.
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QRectF QGraphicsItem::mapRectToParent(qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapRectToParent(QRectF(x, y, w, h)).
This function was introduced in Qt 4.5.
Upstream PySide2 reference signatures (binding differences may apply):
mapRectToParent(self, rect: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF
mapRectToParent(self, x: float, y: float, w: float, h: float) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapRectToParent
mapRectToScene
mapRectToScene(x: Any, y: Any, w: Any, h: Any) -> Any
X.mapRectToScene(x, y, w, h) -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
QRectF QGraphicsItem::mapRectToScene(const QRectF \&rect) const
Maps the rectangle rect, which is in this item's coordinate system, to the scene coordinate system, and returns the mapped rectangle as a new rectangle (i.e., the bounding rectangle of the resulting polygon).
This function was introduced in Qt 4.5.
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QRectF QGraphicsItem::mapRectToScene(qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapRectToScene(QRectF(x, y, w, h)).
This function was introduced in Qt 4.5.
Upstream PySide2 reference signatures (binding differences may apply):
mapRectToScene(self, rect: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF
mapRectToScene(self, x: float, y: float, w: float, h: float) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapRectToScene
mapToItem
mapToItem(item: Any, x: Any, y: Any, w: Any, h: Any) -> Any
X.mapToItem(item, x, y, w, h) -> PythonQt.QtGui.QPainterPath
Supplemental documentation: Qt 5 reference:
QPointF QGraphicsItem::mapToItem(const QGraphicsItem *item, const QPointF \&point) const
Maps the point point, which is in this item's coordinate system, to item's coordinate system, and returns the mapped coordinate.
If item is nullptr, this function returns the same as
mapToScene().
See also itemTransform(), mapToParent(), mapToScene(), transform(), mapFromItem(), and The Graphics View Coordinate System.
QPolygonF QGraphicsItem::mapToItem(const QGraphicsItem *item, const QRectF \&rect) const
Maps the rectangle rect, which is in this item's coordinate system, to item's coordinate system, and returns the mapped rectangle as a polygon.
If item is nullptr, this function returns the same as
mapToScene().
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QPolygonF QGraphicsItem::mapToItem(const QGraphicsItem *item, const QPolygonF \&polygon) const
Maps the polygon polygon, which is in this item's coordinate system, to item's coordinate system, and returns the mapped polygon.
If item is nullptr, this function returns the same as
mapToScene().
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QPainterPath QGraphicsItem::mapToItem(const QGraphicsItem *item, const QPainterPath \&path) const
Maps the path path, which is in this item's coordinate system, to item's coordinate system, and returns the mapped path.
If item is nullptr, this function returns the same as
mapToScene().
See also itemTransform(), mapToParent(), mapToScene(), mapFromItem(), and The Graphics View Coordinate System.
QPointF QGraphicsItem::mapToItem(const QGraphicsItem *item, qreal x, qreal y) const
This is an overloaded function.
This convenience function is equivalent to calling mapToItem(item, QPointF(x, y)).
QPolygonF QGraphicsItem::mapToItem(const QGraphicsItem *item, qreal x, qreal y, qreal w, qreal h) const
This convenience function is equivalent to calling mapToItem(item, QRectF(x, y, w, h)).
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
mapToItem(self, item: PySide2.QtWidgets.QGraphicsItem, path: PySide2.QtGui.QPainterPath) -> PySide2.QtGui.QPainterPath
mapToItem(self, item: PySide2.QtWidgets.QGraphicsItem, point: PySide2.QtCore.QPointF) -> PySide2.QtCore.QPointF
mapToItem(self, item: PySide2.QtWidgets.QGraphicsItem, polygon: PySide2.QtGui.QPolygonF) -> PySide2.QtGui.QPolygonF
mapToItem(self, item: PySide2.QtWidgets.QGraphicsItem, rect: PySide2.QtCore.QRectF) -> PySide2.QtGui.QPolygonF
mapToItem(self, item: PySide2.QtWidgets.QGraphicsItem, x: float, y: float) -> PySide2.QtCore.QPointF
mapToItem(self, item: PySide2.QtWidgets.QGraphicsItem, x: float, y: float, w: float, h: float) -> PySide2.QtGui.QPolygonF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicsitem.html#mapToItem