Class: QgsProjectDisplaySettings

class qgis.core.QgsProjectDisplaySettings(parent: QObject = None)

Bases: PyQt5.QtCore.QObject

Constructor for QgsProjectDisplaySettings with the specified parent object.

Contains settings and properties relating to how a QgsProject should display values such as map coordinates and bearings.

New in version 3.12.

Parameters

parent

bearingFormat(self)QgsBearingNumericFormat

Returns the project bearing’s format, which controls how bearings associated with the project are displayed.

Return type

QgsBearingNumericFormat

bearingFormatChanged

Emitted when the bearing format changes.

See also

bearingFormat() [signal]

childEvent()
connectNotify()
customEvent()
disconnectNotify()
isSignalConnected()
readXml(self, element: QDomElement, context: QgsReadWriteContext) → bool

Reads the settings’s state from a DOM element.

See also

writeXml()

Parameters
Return type

bool

receivers()
reset(self)

Resets the settings to a default state.

sender()
senderSignalIndex()
setBearingFormat(self, format: QgsBearingNumericFormat)

Sets the project bearing format, which controls how bearings associated with the project are displayed.

Ownership of format is transferred to the settings.

See also

bearingFormat()

Parameters

format (QgsBearingNumericFormat) –

timerEvent()
writeXml(self, doc: QDomDocument, context: QgsReadWriteContext) → QDomElement

Returns a DOM element representing the settings.

See also

readXml()

Parameters
Return type

QDomElement