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
Returns
True
if this is a NULL project version.- rtype
int
- rtype
int
- rtype
int
- 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