Class: QgsColorBox¶
A color box widget.
This widget consists of a two dimensional rectangle filled with color variations, where a different color component varies along both the horizontal and vertical axis.
QgsColorBox using the QgsColorWidget.ColorComponent.Value component¶
QgsColorBox using the QgsColorWidget.ColorComponent.Hue component¶
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
A base class for interactive color widgets. |
|
- class qgis.gui.QgsColorBox[source]¶
Bases:
QgsColorWidget- __init__(parent: QWidget | None = None, component: QgsColorWidget.ColorComponent = QgsColorWidget.Value)
Construct a new color box widget.
- Parameters:
parent (Optional[QWidget] = None) – parent QWidget for the widget
component (QgsColorWidget.ColorComponent = QgsColorWidget.Value) – constant color component for the widget. The color components which vary along the horizontal and vertical axis are automatically assigned based on this constant color component.