Class: QgsRecentColorScheme

A color scheme which contains the most recently used colors.

Class Hierarchy

Inheritance diagram of qgis.core.QgsRecentColorScheme

Base classes

QgsColorScheme

Abstract base class for color schemes.

Static Methods

addRecentColor

Adds a color to the list of recent colors.

lastUsedColor

Returns the most recently used color.

class qgis.core.QgsRecentColorScheme[source]

Bases: QgsColorScheme

static addRecentColor(color: QColor | Qt.GlobalColor)[source]

Adds a color to the list of recent colors.

Parameters:

color (Union[QColor, Qt.GlobalColor]) – color to add

See also

lastUsedColor()

static lastUsedColor() QColor[source]

Returns the most recently used color.

See also

addRecentColor()

Return type:

QColor