Class: QgsLocalDefaultSettings

Contains local default settings which should be respected when creating new objects such as QgsProjects.

This class contains a variety of default setting values. These values are local, profile specific settings which may have been configured or tweaked by the user (as opposed to global, fixed default settings).

The values encapsulated here should be inherited when creating new objects such as new QGIS projects.

Typically, the QgsSettings backend is used to store and retrieve these local settings.

Added in version 3.12.

Static Methods

bearingFormat

Returns the default bearing format, which controls how angular bearings are displayed.

geographicCoordinateFormat

Returns the default geographic coordinate format, which controls how geographic coordinates are displayed.

setBearingFormat

Sets the default bearing format, which controls how angular bearings are displayed.

setGeographicCoordinateFormat

Sets the default geographic coordinate format, which controls how geographic coordinates are displayed.

class qgis.core.QgsLocalDefaultSettings[source]

Bases: object

static bearingFormat() QgsBearingNumericFormat | None[source]

Returns the default bearing format, which controls how angular bearings are displayed.

This method returns a new object and the caller takes ownership of the returned value.

Return type:

Optional[QgsBearingNumericFormat]

static geographicCoordinateFormat() QgsGeographicCoordinateNumericFormat | None[source]

Returns the default geographic coordinate format, which controls how geographic coordinates are displayed.

This method returns a new object and the caller takes ownership of the returned value.

Added in version 3.26.

Return type:

Optional[QgsGeographicCoordinateNumericFormat]

static setBearingFormat(format: QgsBearingNumericFormat | None)[source]

Sets the default bearing format, which controls how angular bearings are displayed.

See also

bearingFormat()

Parameters:

format (Optional[QgsBearingNumericFormat])

static setGeographicCoordinateFormat(format: QgsGeographicCoordinateNumericFormat | None)[source]

Sets the default geographic coordinate format, which controls how geographic coordinates are displayed.

Added in version 3.26.

Parameters:

format (Optional[QgsGeographicCoordinateNumericFormat])