46 return ( mLayer && mFeature.
isValid() && hasValidGeometry() );
51 return ( mLayer == other.
layer() ) && ( mFeature == other.
feature() );
56 return ( mLayer != other.
layer() ) || ( mFeature != other.
feature() );
59 bool QgsQuickFeatureLayerPair::hasValidGeometry()
const
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
bool hasGeometry() const
Returns true if the feature has an associated geometry.
bool isValid() const
Returns the validity of this feature.
QgsWkbTypes::GeometryType type
Pair of QgsFeature and QgsVectorLayer.
bool operator==(const QgsQuickFeatureLayerPair &other) const
QgsFeature feature
Feature that belongs to layer.
QgsQuickFeatureLayerPair()
Constructs invalid feature-layer pair.
bool operator!=(const QgsQuickFeatureLayerPair &other) const
Q_GADGET QgsVectorLayer * layer
Vector layer to which the feature belongs.
QgsFeature & featureRef()
Feature that belongs to layer.
bool isValid() const
Whether.
Represents a vector layer which manages a vector based data sets.
Q_INVOKABLE QgsWkbTypes::GeometryType geometryType() const
Returns point, line or polygon.