Class: QgsProjectVersion

class qgis.core.QgsProjectVersion

Bases: sip.wrapper

Creates a new NULL version

QgsProjectVersion(major: int, minor: int, sub: int, name: str = ‘’)

QgsProjectVersion(string: str)

QgsProjectVersion(QgsProjectVersion)

A class to describe the version of a project. Used in places where you need to check if the current version of QGIS is greater than the one used to create a project file.

Enums

Methods

isNull

Returns True if this is a NULL project version.

majorVersion

minorVersion

subVersion

text

Signals

Attributes

isNull(self) → bool

Returns True if this is a NULL project version.

majorVersion(self) → int
minorVersion(self) → int
subVersion(self) → int
text(self) → str