Class: QgsModelDesignerFoldButtonGraphicItem

class qgis.gui.QgsModelDesignerFoldButtonGraphicItem(parent: QGraphicsItem, folded: bool, position: Union[QPointF, QPoint], size: QSizeF = QSizeF(11, 11))

Bases: QgsModelDesignerFlatButtonGraphicItem

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.

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

Warning

Not stable API

New in version 3.14.

Parameters
  • parent (QGraphicsItem) –

  • folded (bool) –

  • position (Union[QPointF) –

  • size

childEvent()
connectNotify()
contextMenuEvent()
customEvent()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
event()
focusInEvent()
focusOutEvent()
folded

Emitted when the button folded state changes.

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

Parameters

folded (bool) –

hoverMoveEvent()
inputMethodEvent()
inputMethodQuery()
isSignalConnected()
itemChange()
keyPressEvent()
keyReleaseEvent()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent(self, event: QGraphicsSceneMouseEvent)
Parameters

event (QGraphicsSceneMouseEvent) –

mouseReleaseEvent()
prepareGeometryChange()
receivers()
sceneEvent()
sceneEventFilter()
sender()
senderSignalIndex()
setPicture()
timerEvent()
updateMicroFocus()
wheelEvent()