Class: QgsIntRange

QgsRange which stores a range of integer values.

See also

QgsDoubleRange

See also

QgsDateRange

See also

QgsDateTimeRange

Class Hierarchy

Inheritance diagram of qgis.core.QgsIntRange

Base classes

QgsRangeintBase

A template based class for storing ranges (lower to upper values).

Methods

isInfinite

Returns True if the range consists of all possible values.

class qgis.core.QgsIntRange[source]

Bases: QgsRangeintBase

__init__(lower: int, upper: int, limits: Qgis.RangeLimits)

Constructor for QgsIntRange. The lower and upper bounds are specified, and whether or not these bounds are included in the range.

Added in version 3.38.

Parameters:
__init__(lower: int, upper: int, includeLower: bool = True, includeUpper: bool = True)

Constructor for QgsIntRange. The lower and upper bounds are specified, and optionally whether or not these bounds are included in the range.

Parameters:
  • lower (int)

  • upper (int)

  • includeLower (bool = True)

  • includeUpper (bool = True)

__init__()

Constructor for QgsIntRange containing an infinite range (see isInfinite()).

Added in version 3.18.

__init__(a0: QgsIntRange)
Parameters:

a0 (QgsIntRange)

isInfinite(self) bool[source]

Returns True if the range consists of all possible values.

Added in version 3.18.

Return type:

bool