Class: QgsModelDesignerFlatButtonGraphicItem¶
A flat button graphic item for use in the Processing model designer.
Warning
Not stable API
Added in version 3.14.
Class Hierarchy¶
Base classes¶
Subclasses¶
A button allowing folding or expanding component graphics in the Processing model designer. |
|
A socket allowing linking component together. |
- class qgis.gui.QgsModelDesignerFlatButtonGraphicItem[source]¶
Bases:
QGraphicsObject- __init__(parent: QGraphicsItem | None, picture: QPicture, position: QPointF | QPoint, 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 (Union[QPointF, QPoint])
size (QSizeF = QSizeF(16, 16))
- signal clicked[source]¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- setPicture(self, picture: QPicture)[source]¶
Sets the
pictureto render for the button graphics.- Parameters:
picture (QPicture)
- setPosition(self, position: QPointF | QPoint)[source]¶
Sets the button’s
position.- Parameters:
position (Union[QPointF, QPoint])
- view(self) QgsModelGraphicsView | None[source]¶
Returns the associated model view.
- Return type:
Optional[QgsModelGraphicsView]