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 specifiedparent
item.The
folded
argument specifies whether the button should initially indicate the folded (collapsed) state.The button will be rendered at the specified
position
andsize
.A button allowing folding or expanding component graphics in the Processing model designer.
Warning
Not stable API
New in version 3.14:
Methods
- param event
Sets the
picture
to render for the button graphics.Signals
Emitted when the button
folded
state changes.- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- contextMenuEvent(self, QGraphicsSceneContextMenuEvent)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QGraphicsSceneDragDropEvent)¶
- dragLeaveEvent(self, QGraphicsSceneDragDropEvent)¶
- dragMoveEvent(self, QGraphicsSceneDragDropEvent)¶
- dropEvent(self, QGraphicsSceneDragDropEvent)¶
- event(self, QEvent) bool ¶
- focusInEvent(self, QFocusEvent)¶
- focusOutEvent(self, QFocusEvent)¶
- folded¶
Emitted when the button
folded
state changes.If
folded
isTrue
, the button represents the collapsed state for the item. [signal]- Parameters
folded (bool) –
- hoverMoveEvent(self, QGraphicsSceneHoverEvent)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- inputMethodQuery(self, Qt.InputMethodQuery) Any ¶
- isSignalConnected(self, QMetaMethod) bool ¶
- itemChange(self, QGraphicsItem.GraphicsItemChange, Any) Any ¶
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- mouseDoubleClickEvent(self, QGraphicsSceneMouseEvent)¶
- mouseMoveEvent(self, QGraphicsSceneMouseEvent)¶
- mousePressEvent(self, event: QGraphicsSceneMouseEvent)¶
- Parameters
event (QGraphicsSceneMouseEvent) –
- mouseReleaseEvent(self, QGraphicsSceneMouseEvent)¶
- prepareGeometryChange(self)¶
- receivers(self, PYQT_SIGNAL) int ¶
- sceneEvent(self, QEvent) bool ¶
- sceneEventFilter(self, QGraphicsItem, QEvent) bool ¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setPicture(self, picture: QPicture)¶
Sets the
picture
to render for the button graphics.
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- wheelEvent(self, QGraphicsSceneWheelEvent)¶