PythonQt.QtGui.QGraphicsPixmapItem · declarations 001
Back to PythonQt.QtGui.QGraphicsPixmapItem
BoundingRectShape
instance-attribute
BoundingRectShape: Any
HeuristicMaskShape
instance-attribute
HeuristicMaskShape: Any
MaskShape
instance-attribute
MaskShape: Any
ShapeMode
instance-attribute
ShapeMode: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
boundingRect
boundingRect() -> Any
X.boundingRect() -> PythonQt.QtCore.QRectF
Supplemental documentation: Qt 5 reference:
[override virtual] QRectF QGraphicsPixmapItem::boundingRect() const
Reimplements: QGraphicsItem::boundingRect() const.
Upstream PySide2 reference signatures (binding differences may apply):
boundingRect(self) -> PySide2.QtCore.QRectF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#boundingRect
contains
contains(point: Any) -> bool
X.contains(point) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QGraphicsPixmapItem::contains(const QPointF \&point) const
Reimplements: QGraphicsItem::contains(const QPointF \&point) const.
Upstream PySide2 reference signatures (binding differences may apply):
contains(self, point: PySide2.QtCore.QPointF) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#contains
extension
extension(variant: Any) -> Any
X.extension(variant) -> object
Upstream PySide2 reference signatures (binding differences may apply):
extension(self, variant: typing.Any) -> typing.Any
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#extension
isObscuredBy
isObscuredBy(item: Any) -> bool
X.isObscuredBy(item) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QGraphicsPixmapItem::isObscuredBy(const QGraphicsItem *item) const
Reimplements: QGraphicsItem::isObscuredBy(const QGraphicsItem *item) const.
Upstream PySide2 reference signatures (binding differences may apply):
isObscuredBy(self, item: PySide2.QtWidgets.QGraphicsItem) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#isObscuredBy
offset
offset() -> Any
X.offset() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
QPointF QGraphicsPixmapItem::offset() const
Returns the pixmap item's offset, which defines the point of the top-left corner of the pixmap, in local coordinates.
See also setOffset().
Upstream PySide2 reference signatures (binding differences may apply):
offset(self) -> PySide2.QtCore.QPointF
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#offset
opaqueArea
opaqueArea() -> Any
X.opaqueArea() -> PythonQt.QtGui.QPainterPath
Supplemental documentation: Qt 5 reference:
[override virtual] QPainterPath QGraphicsPixmapItem::opaqueArea() const
Reimplements: QGraphicsItem::opaqueArea() const.
Upstream PySide2 reference signatures (binding differences may apply):
opaqueArea(self) -> PySide2.QtGui.QPainterPath
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#opaqueArea
paint
paint(painter: Any, option: Any, widget: Any) -> None
X.paint(painter, option, widget)
Supplemental documentation: Qt 5 reference:
[override virtual] void QGraphicsPixmapItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Reimplements: QGraphicsItem::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/qgraphicspixmapitem.html#paint
pixmap
pixmap() -> Any
X.pixmap() -> PythonQt.QtGui.QPixmap
Supplemental documentation: Qt 5 reference:
QPixmap QGraphicsPixmapItem::pixmap() const
Returns the item's pixmap, or an invalid QPixmap if no pixmap has been set.
See also setPixmap().
Upstream PySide2 reference signatures (binding differences may apply):
pixmap(self) -> PySide2.QtGui.QPixmap
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#pixmap
setOffset
setOffset(x: Any, y: Any) -> None
X.setOffset(x, y)
Supplemental documentation: Qt 5 reference:
void QGraphicsPixmapItem::setOffset(const QPointF \&offset)
Sets the pixmap item's offset to offset. QGraphicsPixmapItem will draw its pixmap using offset for its top-left corner.
See also offset().
void QGraphicsPixmapItem::setOffset(qreal x, qreal y)
This convenience function is equivalent to calling setOffset(QPointF(x, y)).
This function was introduced in Qt 4.3.
Upstream PySide2 reference signatures (binding differences may apply):
setOffset(self, offset: PySide2.QtCore.QPointF) -> None
setOffset(self, x: float, y: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#setOffset
setPixmap
setPixmap(pixmap: Any) -> None
X.setPixmap(pixmap)
Supplemental documentation: Qt 5 reference:
void QGraphicsPixmapItem::setPixmap(const QPixmap \&pixmap)
Sets the item's pixmap to pixmap.
See also pixmap().
Upstream PySide2 reference signatures (binding differences may apply):
setPixmap(self, pixmap: PySide2.QtGui.QPixmap) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#setPixmap
setShapeMode
setShapeMode(mode: Any) -> None
X.setShapeMode(mode)
Supplemental documentation: Qt 5 reference:
void QGraphicsPixmapItem::setShapeMode(QGraphicsPixmapItem::ShapeMode mode)
Sets the item's shape mode to mode. The shape mode describes how QGraphicsPixmapItem calculates its shape. The default mode is MaskShape.
See also shapeMode() and ShapeMode.
Upstream PySide2 reference signatures (binding differences may apply):
setShapeMode(self, mode: PySide2.QtWidgets.QGraphicsPixmapItem.ShapeMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#setShapeMode
setTransformationMode
setTransformationMode(mode: Any) -> None
X.setTransformationMode(mode)
Supplemental documentation: Qt 5 reference:
void QGraphicsPixmapItem::setTransformationMode(Qt::TransformationMode mode)
Sets the pixmap item's transformation mode to mode, and toggles an update of the item. The default mode is Qt::FastTransformation, which provides quick transformation with no smoothing.
Qt::SmoothTransformation enables QPainter::SmoothPixmapTransform on the painter, and the quality depends on the platform and viewport. The result is usually not as good as calling QPixmap::scale() directly.
See also transformationMode().
Upstream PySide2 reference signatures (binding differences may apply):
setTransformationMode(self, mode: PySide2.QtCore.Qt.TransformationMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#setTransformationMode
shape
shape() -> Any
X.shape() -> PythonQt.QtGui.QPainterPath
Supplemental documentation: Qt 5 reference:
[override virtual] QPainterPath QGraphicsPixmapItem::shape() const
Reimplements: QGraphicsItem::shape() const.
Upstream PySide2 reference signatures (binding differences may apply):
shape(self) -> PySide2.QtGui.QPainterPath
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#shape
shapeMode
shapeMode() -> Any
X.shapeMode()
Supplemental documentation: Qt 5 reference:
QGraphicsPixmapItem::ShapeMode QGraphicsPixmapItem::shapeMode() const
Returns the item's shape mode. The shape mode describes how QGraphicsPixmapItem calculates its shape. The default mode is MaskShape.
See also setShapeMode() and ShapeMode.
Upstream PySide2 reference signatures (binding differences may apply):
shapeMode(self) -> PySide2.QtWidgets.QGraphicsPixmapItem.ShapeMode
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#shapeMode
transformationMode
transformationMode() -> Any
X.transformationMode()
Supplemental documentation: Qt 5 reference:
Qt::TransformationMode QGraphicsPixmapItem::transformationMode() const
Returns the transformation mode of the pixmap. The default mode is Qt::FastTransformation, which provides quick transformation with no smoothing.
See also setTransformationMode().
Upstream PySide2 reference signatures (binding differences may apply):
transformationMode(self) -> PySide2.QtCore.Qt.TransformationMode
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#transformationMode
type
type() -> int
X.type() -> int
Supplemental documentation: Qt 5 reference:
[override virtual] int QGraphicsPixmapItem::type() const
Reimplements: QGraphicsItem::type() const.
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qgraphicspixmapitem.html#type