Class: QgsRecentColorScheme

A color scheme which contains the most recently used colors.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsRecentColorScheme

Base classes

QgsColorScheme

Abstract base class for color schemes.

Abstract Methods

clone

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 | int)[source]

Adds a color to the list of recent colors.

Parameters:

color (QColor|Qt.GlobalColor|int) – color to add

See also

lastUsedColor()

abstract clone(self) → QgsRecentColorScheme | None[source]
Return type:

QgsRecentColorScheme|None

static lastUsedColor() → QColor[source]

Returns the most recently used color.

See also

addRecentColor()

Return type:

QColor