QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsSymbolLayerSelectionWidget Class Reference

A widget that allows the selection of a list of symbol layers from a layer. More...

#include <qgssymbollayerselectionwidget.h>

Inheritance diagram for QgsSymbolLayerSelectionWidget:

Signals

void changed ()
 Signal emitted when something the configuration is changed.

Public Member Functions

 QgsSymbolLayerSelectionWidget (QWidget *parent=nullptr)
 Default constructor.
QSet< QString > selection () const
 Returns current symbol layer selection.
void setLayer (const QgsVectorLayer *layer)
 Populate the tree with selectable symbol layers from a given layer.
void setSelection (const QSet< QString > &sel)
 Sets the symbol layer selection.

Friends

class TestQgsMaskingWidget

Detailed Description

A widget that allows the selection of a list of symbol layers from a layer.

A tree shows a list of selectable symbol layers.

Since
QGIS 3.14

Definition at line 38 of file qgssymbollayerselectionwidget.h.

Constructor & Destructor Documentation

◆ QgsSymbolLayerSelectionWidget()

QgsSymbolLayerSelectionWidget::QgsSymbolLayerSelectionWidget ( QWidget * parent = nullptr)
explicit

Default constructor.

Definition at line 31 of file qgssymbollayerselectionwidget.cpp.

Member Function Documentation

◆ changed

void QgsSymbolLayerSelectionWidget::changed ( )
signal

Signal emitted when something the configuration is changed.

◆ selection()

QSet< QString > QgsSymbolLayerSelectionWidget::selection ( ) const

Returns current symbol layer selection.

Definition at line 157 of file qgssymbollayerselectionwidget.cpp.

◆ setLayer()

void QgsSymbolLayerSelectionWidget::setLayer ( const QgsVectorLayer * layer)

Populate the tree with selectable symbol layers from a given layer.

Definition at line 47 of file qgssymbollayerselectionwidget.cpp.

◆ setSelection()

void QgsSymbolLayerSelectionWidget::setSelection ( const QSet< QString > & sel)

Sets the symbol layer selection.

Definition at line 168 of file qgssymbollayerselectionwidget.cpp.

◆ TestQgsMaskingWidget

friend class TestQgsMaskingWidget
friend

Definition at line 67 of file qgssymbollayerselectionwidget.h.


The documentation for this class was generated from the following files: