Class: QgsModelDesignerFlatButtonGraphicItem¶
A flat button graphic item for use in the Processing model designer.
Warning
Not stable API
Added in version 3.14.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Subclasses¶
A button allowing folding or expanding component graphics in the Processing model designer. |
|
A socket allowing linking component together. |
Methods
Returns the button's position. |
|
Sets the picture to render for the button graphics. |
|
Sets the button's position. |
|
Returns the associated model view. |
Signals
Emitted when the button is clicked. |
- class qgis.gui.QgsModelDesignerFlatButtonGraphicItem[source]¶
Bases:
QGraphicsObject- __init__(parent: QGraphicsItem | None, picture: QPicture, position: QPointF, size: QSizeF = QSizeF(16, 16))
Constructor for QgsModelDesignerFlatButtonGraphicItem, with the specified
parentitem.The
pictureargument specifies a QPicture object containing the graphic to render for the button. The button will be rendered at the specifiedpositionandsize.- Parameters:
parent (Optional[QGraphicsItem])
picture (QPicture)
position (QPointF)
size (QSizeF = QSizeF(16, 16))
- setPicture(self, picture: QPicture)[source]¶
Sets the
pictureto render for the button graphics.- Parameters:
picture (QPicture)
- setPosition(self, position: QPointF)[source]¶
Sets the button’s
position.- Parameters:
position (QPointF)
- view(self) QgsModelGraphicsView | None[source]¶
Returns the associated model view.
- Return type: