Class: QgsProjectFileTransform

class qgis.core.QgsProjectFileTransform(domDocument: QDomDocument, version: QgsProjectVersion)

Bases: sip.wrapper

Create an instance from a Dom and a supplied version

Parameters
  • domDocument (QDomDocument) – The Dom document to use as content

  • version (QgsProjectVersion) – Version number

QgsProjectFileTransform(QgsProjectFileTransform)

Methods

convertRasterProperties

param doc

currentVersion

The current project version

dom

The current dom document

dump

Prints the contents via :py:class:`QgsDebugMsg`()

updateRevision

param version

convertRasterProperties(doc: QDomDocument, parentNode: QDomNode, rasterPropertiesElem: QDomElement, rlayer: QgsRasterLayer)
Parameters
  • doc (QDomDocument) –

  • parentNode (QDomNode) –

  • rasterPropertiesElem (QDomElement) –

  • rlayer (QgsRasterLayer) –

currentVersion(self) → QgsProjectVersion

The current project version

New in version 3.12.

Return type

QgsProjectVersion

dom(self) → QDomDocument

The current dom document

New in version 3.12.

Return type

QDomDocument

dump(self)

Prints the contents via :py:class:`QgsDebugMsg`()

updateRevision(self, version: QgsProjectVersion) → bool
Parameters

version (QgsProjectVersion) –

Return type

bool