Class: QgsModelDesignerFoldButtonGraphicItem

A button allowing folding or expanding component graphics in the Processing model designer.

Warning

Not stable API

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsModelDesignerFoldButtonGraphicItem

Base classes

QgsModelDesignerFlatButtonGraphicItem

A flat button graphic item for use in the Processing model designer.

QGraphicsObject

QObject

QGraphicsItem

Signals

folded

Emitted when the button folded state changes.

class qgis.gui.QgsModelDesignerFoldButtonGraphicItem[source]

Bases: QgsModelDesignerFlatButtonGraphicItem

__init__(parent: QGraphicsItem | None, folded: bool, position: QPointF | QPoint, size: QSizeF = QSizeF(11, 11))

Constructor for QgsModelDesignerFoldButtonGraphicItem, with the specified parent item.

The folded argument specifies whether the button should initially indicate the folded (collapsed) state.

The button will be rendered at the specified position and size.

Parameters:
  • parent (Optional[QGraphicsItem])

  • folded (bool)

  • position (Union[QPointF, QPoint])

  • size (QSizeF = QSizeF(11, 11))

signal folded(folded: bool)[source]

Emitted when the button folded state changes.

If folded is True, the button represents the collapsed state for the item.

Parameters:

folded (bool)