QgsDataDefinedSizeLegendWidget class
Widget for configuration of appearance of legend for marker symbols with data-defined size.
Contents
Base classes
- class QgsPanelWidget
- Base class for any widget that can be shown as a inline panel.
Constructors, destructors, conversion operators
- QgsDataDefinedSizeLegendWidget(const QgsDataDefinedSizeLegend* ddsLegend, const QgsProperty& ddSize, QgsMarkerSymbol* overrideSymbol, QgsMapCanvas* canvas = nullptr, QWidget* parent = nullptr) explicit
- Creates the dialog and initializes the content to what is passed in the legend configuration (may be null).
Public functions
- auto dataDefinedSizeLegend() const -> QgsDataDefinedSizeLegend*
- Returns configuration as set up in the dialog (may be null). Ownership is passed to the caller.
Function documentation
QgsDataDefinedSizeLegendWidget:: QgsDataDefinedSizeLegendWidget(const QgsDataDefinedSizeLegend* ddsLegend,
const QgsProperty& ddSize,
QgsMarkerSymbol* overrideSymbol,
QgsMapCanvas* canvas = nullptr,
QWidget* parent = nullptr) explicit
Creates the dialog and initializes the content to what is passed in the legend configuration (may be null).
The ddSize argument determines scaling of the marker symbol - it should have a size scale transformer assigned to know the range of sizes. The overrideSymbol argument may override the source symbol: this is useful in case when the symbol is given from outside rather than being set inside QgsDataDefinedSizeLegend.