QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
A widget that allows the selection of a list of symbol layers from a layer. More...
#include <qgssymbollayerselectionwidget.h>
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. | |
A widget that allows the selection of a list of symbol layers from a layer.
A tree shows a list of selectable symbol layers.
Definition at line 37 of file qgssymbollayerselectionwidget.h.
|
explicit |
Default constructor.
Definition at line 28 of file qgssymbollayerselectionwidget.cpp.
|
signal |
Signal emitted when something the configuration is changed.
QSet< QString > QgsSymbolLayerSelectionWidget::selection | ( | ) | const |
Returns current symbol layer selection.
Definition at line 154 of file qgssymbollayerselectionwidget.cpp.
void QgsSymbolLayerSelectionWidget::setLayer | ( | const QgsVectorLayer * | layer | ) |
Populate the tree with selectable symbol layers from a given layer.
Definition at line 44 of file qgssymbollayerselectionwidget.cpp.
void QgsSymbolLayerSelectionWidget::setSelection | ( | const QSet< QString > & | sel | ) |
Sets the symbol layer selection.
Definition at line 165 of file qgssymbollayerselectionwidget.cpp.