Class: QgsColorPreviewWidget¶
A preview box which displays one or two colors as swatches.
Class Hierarchy¶
Base classes¶
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 |
|
Methods
Returns the secondary color for the widget |
|
Sets the second color for the widget |
- class qgis.gui.QgsColorPreviewWidget[source]¶
Bases:
QgsColorWidget
- __init__(parent: QWidget | None = None)
Construct a new color preview widget.
- Parameters:
parent (Optional[QWidget] = None) – parent QWidget for the widget