Class: 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   | 
|
Returns the major version number.  | 
|
Returns the minor version number.  | 
|
Returns the sub version number.  | 
|
Returns a string representation of the version.  | 
- class qgis.core.QgsProjectVersion[source]¶
 Bases:
object- __init__()
 Creates a new NULL version
- __init__(major: int, minor: int, sub: int, name: str | None = '')
 Constructor for QgsProjectVersion, with the specified
major,minorandsubversion numbers.- Parameters:
 major (int)
minor (int)
sub (int)
name (Optional[str] = '')
- __init__(string: str | None)
 Constructor for QgsProjectVersion, which parses the version number from a
string.- Parameters:
 string (Optional[str])
- __init__(a0: QgsProjectVersion)
 - Parameters:
 a0 (QgsProjectVersion)