Class: QgsColorSliderWidget

A composite horizontal color ramp widget and associated spinbox for manual value entry.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsColorSliderWidget

Base classes

QgsColorWidget

A base class for interactive color widgets. Widgets can either allow setting a single component of a color (e.g., the red or green components), or an entire color. The QgsColorWidget also keeps track of any explicitly set hue for the color, so that this information is not lost when the widget is set to a color with an ambiguous hue (e.g., black or white shades).

QWidget

QObject

QPaintDevice

class qgis.gui.QgsColorSliderWidget[source]

Bases: QgsColorWidget

__init__(parent: QWidget | None = None, component: QgsColorWidget.ColorComponent = QgsColorWidget.Red)

Construct a new color slider widget.

Parameters:
  • parent (Optional[QWidget] = None) – parent QWidget for the widget

  • component (QgsColorWidget.ColorComponent = QgsColorWidget.Red) – color component which is controlled by the slider