I'm filtering the layers in a QgsMapLayerComboBox and in addition to filtering according to geometry, I want to remove the layers that are disabled? Is it possible? How do I do it? I'm using the following code to filter according to geometry.
self.CMBNODES.setFilters(QgsMapLayerProxyModel.PointLayer)
self.CMBPIPES.setFilters(QgsMapLayerProxyModel.LineLayer)
self.CMBMDE.setFilters(QgsMapLayerProxyModel.RasterLayer )
self.CMBCURVAS.setFilters(QgsMapLayerProxyModel.NoGeometry)
QgsMapLayerComboBox
has asetExceptedLayerList()
method which you can pass a list of layers which you want to exclude from being shown in the combo box. api.qgis.org/api/…