GraphicsPixmapItem
Base classes
| Name | Children | Inherits |
|---|---|---|
| GraphicsItemMixin prettyqt.widgets.graphicsitem |
||
| QGraphicsPixmapItem PySide6.QtWidgets QGraphicsPixmapItem(self, pixmap: PySide6.QtGui.QPixmap | PySide6.QtGui.QImage, /, parent: PySide6.QtWidgets.QGraphicsItem | None \= None) -> None |
⋔ Inheritance diagram
graph TD
1649920864["widgets.GraphicsPixmapItem"]
1638127052["widgets.GraphicsItemMixin"]
2751680898["builtins.object"]
3403337318["QtWidgets.QGraphicsPixmapItem"]
2584426969["QtWidgets.QGraphicsItem"]
37984305["Shiboken.Object"]
1638127052 --> 1649920864
2751680898 --> 1638127052
3403337318 --> 1649920864
2584426969 --> 3403337318
37984305 --> 2584426969
2751680898 --> 37984305
🛈 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 |