Class: QgsFixedGradientBackgroundSettings

Background settings for a two-color vertical gradient rendered behind the 3D scene.

Added in version 4.2.

Class Hierarchy

Inheritance diagram of qgis._3d.QgsFixedGradientBackgroundSettings

Base classes

QgsAbstract3DMapBackgroundSettings

Base class for all background settings classes used in a 3D map view.

Methods

bottomColor

Returns the color at the bottom of the gradient.

setBottomColor

Sets the color at the bottom of the gradient.

setTopColor

Sets the color at the top of the gradient.

topColor

Returns the color at the top of the gradient.

class qgis._3d.QgsFixedGradientBackgroundSettings[source]

Bases: QgsAbstract3DMapBackgroundSettings

bottomColor(self) QColor[source]

Returns the color at the bottom of the gradient.

See also

setBottomColor()

Return type:

QColor

setBottomColor(self, color: QColor | Qt.GlobalColor | int)[source]

Sets the color at the bottom of the gradient.

See also

bottomColor()

Parameters:

color (Union[QColor, Qt.GlobalColor, int])

setTopColor(self, color: QColor | Qt.GlobalColor | int)[source]

Sets the color at the top of the gradient.

See also

topColor()

Parameters:

color (Union[QColor, Qt.GlobalColor, int])

topColor(self) QColor[source]

Returns the color at the top of the gradient.

See also

setTopColor()

Return type:

QColor