Class: Qgis

class qgis.core.Qgis

Bases: sip.wrapper

The Qgis class provides global constants for use throughout the application.

ARGB32 = 12
ARGB32_Premultiplied = 13
Always = 3
Ask = 1
Byte = 1
CFloat32 = 10
CFloat64 = 11
CInt16 = 8
CInt32 = 9
Critical = 2
DEFAULT_HIGHLIGHT_BUFFER_MM = 0.5
DEFAULT_HIGHLIGHT_COLOR = <PyQt5.QtGui.QColor object>
DEFAULT_HIGHLIGHT_MIN_WIDTH_MM = 1.0
DEFAULT_MAPTOPIXEL_THRESHOLD = 1.0
DEFAULT_SEARCH_RADIUS_MM = 2.0
DEFAULT_SNAP_TOLERANCE = 12.0
DEFAULT_SNAP_UNITS = 1
DEFAULT_Z_COORDINATE = 0.0
class DataType

Bases: int

baseClass

alias of qgis._core.Qgis

Float32 = 6
Float64 = 7
Info = 0
Int16 = 3
Int32 = 5
class MessageLevel

Bases: int

Never = 0
None = 4
NotForThisSession = 4
class PythonMacroMode

Bases: int

baseClass

alias of qgis._core.Qgis

QGIS_DEV_VERSION = 'exported'
QGIS_RELEASE_NAME = 'Hannover'
QGIS_VERSION = '3.16.6-Hannover'
QGIS_VERSION_INT = 31606
SCALE_PRECISION = 0.9999999999
SessionOnly = 2
Success = 3
UI_SCALE_FACTOR = 1.0
UInt16 = 2
UInt32 = 4
UnknownDataType = 0
Warning = 1
defaultProjectScales()str

A string with default project scales.

New in version 3.12.

Return type

str

devVersion()str

The development version

New in version 3.12.

Return type

str

releaseName()str

Release name

New in version 3.12.

Return type

str

staticMetaObject = <PyQt5.QtCore.QMetaObject object>
version()str

Version string.

New in version 3.12.

Return type

str

versionInt()int

Version number used for comparing versions using the “Check QGIS Version” function

New in version 3.12.

Return type

int