Class: QgsColorPreviewWidget¶
A preview box which displays one or two colors as swatches.
Class Hierarchy¶
Base classes¶
A base class for interactive color widgets. |
|
Methods
Returns the secondary color for the widget |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsColorPreviewWidget. See the FAQ for more details.
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