QgsColorBrewerColorRampWidget class

A widget which allows users to modify the properties of a QgsColorBrewerColorRamp.

Base classes

class QgsPanelWidget
Base class for any widget that can be shown as a inline panel.

Constructors, destructors, conversion operators

QgsColorBrewerColorRampWidget(const QgsColorBrewerColorRamp& ramp, QWidget* parent = nullptr)
Constructor for QgsColorBrewerColorRampWidget.

Public functions

auto ramp() const -> QgsColorBrewerColorRamp
Returns a color ramp representing the current settings from the dialog.
void setRamp(const QgsColorBrewerColorRamp& ramp)
Sets the color ramp to show in the dialog.

Signals

void changed()
Emitted when the dialog settings change.

Function documentation

QgsColorBrewerColorRampWidget::QgsColorBrewerColorRampWidget(const QgsColorBrewerColorRamp& ramp, QWidget* parent = nullptr)

Constructor for QgsColorBrewerColorRampWidget.

Parameters
ramp initial ramp to show in dialog
parent parent widget

QgsColorBrewerColorRamp QgsColorBrewerColorRampWidget::ramp() const

Returns a color ramp representing the current settings from the dialog.

void QgsColorBrewerColorRampWidget::setRamp(const QgsColorBrewerColorRamp& ramp)

Sets the color ramp to show in the dialog.

Parameters
ramp color ramp