QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
65 mSingleSymbol = mRenderer->
symbol()->clone();
69 QVBoxLayout *layout =
new QVBoxLayout(
this );
70 layout->setContentsMargins( 0, 0, 0, 0 );
71 layout->addWidget( mSelector );
76 QAction *actionLevels = advMenu->addAction( tr(
"Symbol Levels…" ) );
77 connect( actionLevels, &QAction::triggered,
this, &QgsSingleSymbolRendererWidget::showSymbolLevels );
80 QAction *actionDdsLegend = advMenu->addAction( tr(
"Data-defined Size Legend…" ) );
82 connect( actionDdsLegend, &QAction::triggered,
this, &QgsSingleSymbolRendererWidget::dataDefinedSizeLegend );
115 void QgsSingleSymbolRendererWidget::changeSingleSymbol()
122 void QgsSingleSymbolRendererWidget::showSymbolLevels()
127 void QgsSingleSymbolRendererWidget::dataDefinedSizeLegend()
QgsDataDefinedSizeLegend * dataDefinedSizeLegend() const
Returns configuration of appearance of legend when using data-defined size for marker symbols.
static QgsSingleSymbolRenderer * convertFromRenderer(const QgsFeatureRenderer *renderer)
Creates a new single symbol renderer from an existing renderer.
static QgsSymbol * defaultSymbol(QgsWkbTypes::GeometryType geomType)
Returns a new default symbol for the specified geometry type.
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
void setDataDefinedSizeLegend(QgsDataDefinedSizeLegend *settings)
Configures appearance of legend when renderer is configured to use data-defined size for marker symbo...
Abstract base class for all rendered symbols.
A marker symbol type, for rendering Point and MultiPoint geometries.
void setSymbol(QgsSymbol *s)
Sets the symbol which will be rendered for every feature.
virtual QgsSymbol * clone() const =0
Returns a deep copy of this symbol.
Represents a vector layer which manages a vector based data sets.
SymbolType type() const
Returns the symbol's type.
QgsSymbol * symbol() const
Returns the symbol which will be rendered for every feature.
Q_INVOKABLE QgsWkbTypes::GeometryType geometryType() const
Returns point, line or polygon.