QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
QgsFeatureSelectionDlg Class Reference

#include <qgsfeatureselectiondlg.h>

Inheritance diagram for QgsFeatureSelectionDlg:
Inheritance graph
[legend]

Public Member Functions

 QgsFeatureSelectionDlg (QgsVectorLayer *vl, const QgsAttributeEditorContext &context, QWidget *parent=nullptr)
 Constructor for QgsFeatureSelectionDlg.
 
const QgsFeatureIdsselectedFeatures ()
 Gets the selected features.
 
void setFilterExpression (const QString &filter, QgsAttributeForm::FilterType type)
 Set form filter expression.
 
void setSelectedFeatures (const QgsFeatureIds &ids)
 Set the selected features.
 

Protected Member Functions

void keyPressEvent (QKeyEvent *evt) override
 
void showEvent (QShowEvent *event) override
 Make sure the dialog does not grow too much.
 

Detailed Description

Definition at line 37 of file qgsfeatureselectiondlg.h.

Constructor & Destructor Documentation

◆ QgsFeatureSelectionDlg()

QgsFeatureSelectionDlg::QgsFeatureSelectionDlg ( QgsVectorLayer vl,
const QgsAttributeEditorContext context,
QWidget *  parent = nullptr 
)
explicit

Constructor for QgsFeatureSelectionDlg.

Definition at line 29 of file qgsfeatureselectiondlg.cpp.

Member Function Documentation

◆ keyPressEvent()

void QgsFeatureSelectionDlg::keyPressEvent ( QKeyEvent *  evt)
overrideprotected

Definition at line 59 of file qgsfeatureselectiondlg.cpp.

◆ selectedFeatures()

const QgsFeatureIds & QgsFeatureSelectionDlg::selectedFeatures ( )

Gets the selected features.

Returns
The selected feature ids

Definition at line 67 of file qgsfeatureselectiondlg.cpp.

◆ setFilterExpression()

void QgsFeatureSelectionDlg::setFilterExpression ( const QString &  filter,
QgsAttributeForm::FilterType  type 
)

Set form filter expression.

Definition at line 136 of file qgsfeatureselectiondlg.cpp.

◆ setSelectedFeatures()

void QgsFeatureSelectionDlg::setSelectedFeatures ( const QgsFeatureIds ids)

Set the selected features.

Parameters
idsThe feature ids to select

Definition at line 72 of file qgsfeatureselectiondlg.cpp.

◆ showEvent()

void QgsFeatureSelectionDlg::showEvent ( QShowEvent *  event)
overrideprotected

Make sure the dialog does not grow too much.

Definition at line 77 of file qgsfeatureselectiondlg.cpp.


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