Class: QgsModelDesignerFlatButtonGraphicItem

class qgis.gui.QgsModelDesignerFlatButtonGraphicItem

Bases: PyQt5.QtWidgets.QGraphicsObject

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

Warning

Not stable API

Added in version 3.14.

QgsModelDesignerFlatButtonGraphicItem(parent: Optional[QGraphicsItem], picture: QPicture, position: Union[QPointF, QPoint], size: QSizeF = QSizeF(16, 16)) Constructor for QgsModelDesignerFlatButtonGraphicItem, with the specified parent item.

The picture argument specifies a QPicture object containing the graphic to render for the button. The button will be rendered at the specified position and size.

boundingRect(self) QRectF
Return type:

QRectF

childEvent(self, a0: QChildEvent | None)
clicked

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.

Parameters:
  • name (str = ...)

  • revision (int = ...)

  • arguments (Sequence = ...)

Return type:

PYQT_SIGNAL

connectNotify(self, signal: QMetaMethod)
contextMenuEvent(self, event: QGraphicsSceneContextMenuEvent | None)
customEvent(self, a0: QEvent | None)
disconnectNotify(self, signal: QMetaMethod)
dragEnterEvent(self, event: QGraphicsSceneDragDropEvent | None)
dragLeaveEvent(self, event: QGraphicsSceneDragDropEvent | None)
dragMoveEvent(self, event: QGraphicsSceneDragDropEvent | None)
dropEvent(self, event: QGraphicsSceneDragDropEvent | None)
event(self, ev: QEvent | None) bool
focusInEvent(self, event: QFocusEvent | None)
focusOutEvent(self, event: QFocusEvent | None)
hoverEnterEvent(self, event: QGraphicsSceneHoverEvent | None)
Parameters:

event (Optional[QGraphicsSceneHoverEvent])

hoverLeaveEvent(self, event: QGraphicsSceneHoverEvent | None)
Parameters:

event (Optional[QGraphicsSceneHoverEvent])

hoverMoveEvent(self, event: QGraphicsSceneHoverEvent | None)
inputMethodEvent(self, event: QInputMethodEvent | None)
inputMethodQuery(self, query: Qt.InputMethodQuery) Any
isSignalConnected(self, signal: QMetaMethod) bool
itemChange(self, change: QGraphicsItem.GraphicsItemChange, value: Any) Any
keyPressEvent(self, event: QKeyEvent | None)
keyReleaseEvent(self, event: QKeyEvent | None)
mouseDoubleClickEvent(self, event: QGraphicsSceneMouseEvent | None)
mouseMoveEvent(self, event: QGraphicsSceneMouseEvent | None)
mousePressEvent(self, event: QGraphicsSceneMouseEvent | None)
Parameters:

event (Optional[QGraphicsSceneMouseEvent])

mouseReleaseEvent(self, event: QGraphicsSceneMouseEvent | None)
paint(self, painter: QPainter | None, option: QStyleOptionGraphicsItem | None, widget: QWidget | None = None)
Parameters:
  • painter (Optional[QPainter])

  • option (Optional[QStyleOptionGraphicsItem])

  • widget (Optional[QWidget] = None)

prepareGeometryChange(self)
receivers(self, signal: PYQT_SIGNAL) int
sceneEvent(self, event: QEvent | None) bool
sceneEventFilter(self, watched: QGraphicsItem | None, event: QEvent | None) bool
sender(self) QObject | None
senderSignalIndex(self) int
setPicture(self, picture: QPicture)

Sets the picture to render for the button graphics.

Parameters:

picture (QPicture)

setPosition(self, position: QPointF | QPoint)

Sets the button’s position.

Parameters:

position (Union[QPointF)

timerEvent(self, a0: QTimerEvent | None)
updateMicroFocus(self)
view(self) QgsModelGraphicsView | None

Returns the associated model view.

Return type:

Optional[QgsModelGraphicsView]

wheelEvent(self, event: QGraphicsSceneWheelEvent | None)