Class: QgsRecentColorScheme

class qgis.core.QgsRecentColorScheme

Bases: qgis._core.QgsColorScheme

Constructor for QgsRecentColorScheme.

QgsRecentColorScheme(QgsRecentColorScheme)

A color scheme which contains the most recently used colors.

New in version 2.5: Enums

Methods

addRecentColor Adds a color to the list of recent colors.
clone
fetchColors
flags
lastUsedColor Returns the most recently used color.
schemeName

Signals

Attributes

addRecentColor(color: Union[QColor, Qt.GlobalColor, QGradient])

Adds a color to the list of recent colors.

Parameters:color – color to add

See also

lastUsedColor()

New in version 2.14.

clone(self) → QgsRecentColorScheme
fetchColors(self, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → object
flags(self) → QgsColorScheme.SchemeFlags
lastUsedColor() → QColor

Returns the most recently used color.

See also

addRecentColor()

New in version 3.0.

schemeName(self) → str