Class: QgsFeatureSelectionDlg¶
A dialog for selecting features from a vector layer.
Class Hierarchy¶
Base classes¶
Methods
Gets the selected features |
|
Set form filter expression |
|
Set the selected features |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsFeatureSelectionDlg. See the FAQ for more details.
Make sure the dialog does not grow too much |
- class qgis.gui.QgsFeatureSelectionDlg[source]¶
Bases:
QDialog
- __init__(vl: QgsVectorLayer | None, context: QgsAttributeEditorContext, parent: QWidget | None = None)
Constructor for QgsFeatureSelectionDlg
- Parameters:
vl (Optional[QgsVectorLayer])
context (QgsAttributeEditorContext)
parent (Optional[QWidget] = None)
- selectedFeatures(self) Any ¶
Gets the selected features
- Return type:
Any
- Returns:
The selected feature ids
- setFilterExpression(self, filter: str | None, type: QgsAttributeForm.FilterType)[source]¶
Set form filter expression
- Parameters:
filter (Optional[str])
type (QgsAttributeForm.FilterType)