GraphicsPixmapItem
Qt Base Class: QGraphicsPixmapItem
Signature: QGraphicsPixmapItem(self, parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None) -> None
QGraphicsPixmapItem(self, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str], parent: Optional[PySide6.QtWidgets.QGraphicsItem] = None) -> None
Base classes
Name | Children | Inherits |
---|---|---|
GraphicsItemMixin prettyqt.widgets.graphicsitem |
||
QGraphicsPixmapItem PySide6.QtWidgets QGraphicsPixmapItem(self, parent: Optional[PySide6.QtWidgets.QGraphicsItem] \= None) -> None |
⋔ Inheritance diagram
graph TD
1473293695072["widgets.GraphicsPixmapItem"]
1473293706784["widgets.GraphicsItemMixin"]
140713234304496["builtins.object"]
1473290847728["QtWidgets.QGraphicsPixmapItem"]
1473290795024["QtWidgets.QGraphicsItem"]
1473291690208["Shiboken.Object"]
1473293706784 --> 1473293695072
140713234304496 --> 1473293706784
1473290847728 --> 1473293695072
1473290795024 --> 1473290847728
1473291690208 --> 1473290795024
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: GraphicsItemMixin
, QGraphicsPixmapItem
Pixmap item that you can add to a QGraphicsScene.
Source code in prettyqt\widgets\graphicspixmapitem.py
get_shape_mode() -> ShapeModeStr
get_transformation_mode() -> constants.TransformationModeStr
Return current transformation mode.
set_shape_mode(mode: ShapeModeStr | widgets.QGraphicsPixmapItem.ShapeMode)
Set shape mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
ShapeModeStr | ShapeMode
|
shape mode to use |
required |
set_transformation_mode(mode: constants.TransformationModeStr | constants.TransformationMode)
Set transformation mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
TransformationModeStr | TransformationMode
|
transformation mode to use |
required |