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.

Methods

isNull

Returns True if this is a NULL project version.

majorVersion

rtype

int

minorVersion

rtype

int

subVersion

rtype

int

text

rtype

str

isNull(self) → bool

Returns True if this is a NULL project version.

Return type

bool

majorVersion(self) → int
Return type

int

minorVersion(self) → int
Return type

int

subVersion(self) → int
Return type

int

text(self) → str
Return type

str