| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   25   , mSelectedFeatures( initialSelection )
 
   31   return mSelectedFeatures.size();
 
   36   mSelectedFeatures += ids;
 
   42   mSelectedFeatures -= ids;
 
   51   mSelectedFeatures = ids;
 
   57   return mSelectedFeatures;
 
  
const QgsFeatureIds & selectedFeatureIds() const override
Returns reference to identifiers of selected features.
 
QgsGenericFeatureSelectionManager(QObject *parent=nullptr)
 
void selectionChanged(const QgsFeatureIds &selected, const QgsFeatureIds &deselected, bool clearAndSelect)
Emitted when selection was changed.
 
void deselect(const QgsFeatureIds &ids) override
Deselect features by feature ids.
 
void setSelectedFeatures(const QgsFeatureIds &ids) override
Change selection to the new set of features.
 
QSet< QgsFeatureId > QgsFeatureIds
 
int selectedFeatureCount() override
Returns the number of features that are selected in this layer.
 
void select(const QgsFeatureIds &ids) override
Select features by feature ids.
 
Is an interface class to abstract feature selection handling.