Class: QgsPlaybackControllerWidget

A compound widget containing a set of buttons for controlling media playback.

Added in version 3.36.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsPlaybackControllerWidget

Base classes

QWidget

QObject

QPaintDevice

Methods

button

Returns the button associated with the specified playback operation.

setState

Sets the current animation state for the widget.

togglePause

Toggles the pause state on or off.

Signals

operationTriggered

Emitted when a playback operation is triggered.

class qgis.gui.QgsPlaybackControllerWidget[source]

Bases: QWidget

__init__(parent: QWidget | None = None)

Constructor for QgsPlaybackControllerWidget, with the specified parent widget.

Parameters:

parent (Optional[QWidget] = None)

button(self, operation: Qgis.PlaybackOperation) QPushButton | None[source]

Returns the button associated with the specified playback operation.

Parameters:

operation (Qgis.PlaybackOperation)

Return type:

Optional[QPushButton]

signal operationTriggered(operation: Qgis.PlaybackOperation)[source]

Emitted when a playback operation is triggered.

Parameters:

operation (Qgis.PlaybackOperation)

setState(self, state: Qgis.AnimationState)[source]

Sets the current animation state for the widget.

Parameters:

state (Qgis.AnimationState)

togglePause(self)[source]

Toggles the pause state on or off.