Class: QgsRangeFieldDomain¶
- class qgis.core.QgsRangeFieldDomain¶
Bases:
QgsFieldDomain
Definition of a numeric field domain with a range of validity for values.
New in version 3.26.
QgsRangeFieldDomain(name: str, description: str, fieldType: QVariant.Type, minimum: Any, minimumIsInclusive: bool, maximum: Any, maximumIsInclusive: bool) Constructor for
QgsRangeFieldDomain
, with the specifiedname
,description
andfieldType
.Set an invalid QVariant for
minimum
ormaximum
respectively if no minimum or maximum value is desired.Methods
- rtype:
QgsRangeFieldDomain
Returns the maximum value.
Returns
True
if the maximum value is inclusive.Returns the minimum value.
Returns
True
if the minimum value is inclusive.Sets the
maximum
allowed value.Sets whether the maximum value is
inclusive
.Sets the
minimum
allowed value.Sets whether the minimum value is
inclusive
.- rtype:
Qgis.FieldDomainType
- rtype:
str
- clone(self) QgsRangeFieldDomain ¶
- Return type:
- maximum(self) Any ¶
Returns the maximum value.
If no maximum value is set then an invalid variant will be returned.
See also
See also
- Return type:
Any
- maximumIsInclusive(self) bool ¶
Returns
True
if the maximum value is inclusive.See also
See also
- Return type:
bool
- minimum(self) Any ¶
Returns the minimum value.
If no minimum value is set then an invalid variant will be returned.
See also
See also
- Return type:
Any
- minimumIsInclusive(self) bool ¶
Returns
True
if the minimum value is inclusive.See also
See also
- Return type:
bool
- setMaximum(self, maximum: Any)¶
Sets the
maximum
allowed value.If no maximum value is desired then an invalid variant should be set.
See also
See also
- Parameters:
maximum (Any) –
- setMaximumIsInclusive(self, inclusive: bool)¶
Sets whether the maximum value is
inclusive
.See also
See also
- Parameters:
inclusive (bool) –
- setMinimum(self, minimum: Any)¶
Sets the
minimum
allowed value.If no minimum value is desired then an invalid variant should be set.
See also
See also
- Parameters:
minimum (Any) –
- setMinimumIsInclusive(self, inclusive: bool)¶
Sets whether the minimum value is
inclusive
.See also
See also
- Parameters:
inclusive (bool) –
- type(self) Qgis.FieldDomainType ¶
- Return type:
- typeName(self) str ¶
- Return type:
str