Class: QgsRangeFieldDomain¶
Definition of a numeric field domain with a range of validity for values.
Added in version 3.26.
Class Hierarchy¶
Base classes¶
Base class for field domains. |
Methods
Returns the maximum value. |
|
Returns |
|
Returns the minimum value. |
|
Returns |
|
Sets the maximum allowed value. |
|
Sets whether the maximum value is inclusive. |
|
Sets the minimum allowed value. |
|
Sets whether the minimum value is inclusive. |
- class qgis.core.QgsRangeFieldDomain[source]¶
Bases:
QgsFieldDomain
- __init__(name: str | None, description: str | None, fieldType: QMetaType.Type, minimum: Any, minimumIsInclusive: bool, maximum: Any, maximumIsInclusive: bool)
Constructor for QgsRangeFieldDomain, with the specified
name
,description
andfieldType
.Set an invalid QVariant for
minimum
ormaximum
respectively if no minimum or maximum value is desired.- Parameters:
name (Optional[str])
description (Optional[str])
fieldType (QMetaType.Type)
minimum (Any)
minimumIsInclusive (bool)
maximum (Any)
maximumIsInclusive (bool)
- __init__(name: str | None, description: str | None, fieldType: QVariant.Type, minimum: Any, minimumIsInclusive: bool, maximum: Any, maximumIsInclusive: bool)
Constructor for QgsRangeFieldDomain, with the specified
name
,description
andfieldType
.Set an invalid QVariant for
minimum
ormaximum
respectively if no minimum or maximum value is desired.Deprecated since version 3.38: Use the method with a QMetaType.Type argument instead.
- Parameters:
name (Optional[str])
description (Optional[str])
fieldType (QVariant.Type)
minimum (Any)
minimumIsInclusive (bool)
maximum (Any)
maximumIsInclusive (bool)
- maximum(self) Any [source]¶
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 [source]¶
Returns
True
if the maximum value is inclusive.See also
See also
- Return type:
bool
- minimum(self) Any [source]¶
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 [source]¶
Returns
True
if the minimum value is inclusive.See also
See also
- Return type:
bool
- setMaximum(self, maximum: Any)[source]¶
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)[source]¶
Sets whether the maximum value is
inclusive
.See also
See also
- Parameters:
inclusive (bool)
- setMinimum(self, minimum: Any)[source]¶
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)