|
| QgsMapLayerComboBox (QWidget *parent=nullptr) |
| QgsMapLayerComboBox creates a combo box to display the list of layers (currently in the registry). More...
|
|
QStringList | additionalItems () const |
| Returns the list of additional (non map layer) items included at the end of the combo box. More...
|
|
QList< QgsMapLayer * > | additionalLayers () const |
| Returns the list of additional layers added to the combobox. More...
|
|
bool | allowEmptyLayer () const |
| Returns true if the combo box allows the empty layer ("not set") choice. More...
|
|
QgsMapLayer * | currentLayer () const |
| Returns the current layer selected in the combo box. More...
|
|
QList< QgsMapLayer * > | exceptedLayerList () const |
| returns the list of excepted layers More...
|
|
QStringList | excludedProviders () const |
| Returns the list of data providers which are excluded from the combobox. More...
|
|
QgsMapLayerProxyModel::Filters | filters () const |
| currently used filter on list layers More...
|
|
QgsMapLayer * | layer (int layerIndex) const |
| Returns the layer currently shown at the specified index within the combo box. More...
|
|
void | setAdditionalItems (const QStringList &items) |
| Sets a list of additional (non map layer) items to include at the end of the combobox. More...
|
|
void | setAdditionalLayers (const QList< QgsMapLayer * > &layers) |
| Sets a list of additional layers to include in the combobox. More...
|
|
void | setAllowEmptyLayer (bool allowEmpty, const QString &text=QString(), const QIcon &icon=QIcon()) |
| Sets whether an optional empty layer ("not set") option is shown in the combo box. More...
|
|
void | setExceptedLayerList (const QList< QgsMapLayer * > &layerList) |
| except a list of layers not to be listed More...
|
|
void | setExcludedProviders (const QStringList &providers) |
| Sets a list of data providers which should be excluded from the combobox. More...
|
|
void | setFilters (QgsMapLayerProxyModel::Filters filters) |
| setFilters allows filtering according to layer type and/or geometry type. More...
|
|
void | setProject (QgsProject *project) |
| Sets the project from which map layers are shown. More...
|
|
void | setShowCrs (bool showCrs) |
| Sets whether the CRS of layers is also included in the combo box text. More...
|
|
bool | showCrs () const |
| Returns true if the combo box shows the layer's CRS. More...
|
|