OptionalannotationsMap canvas annotations (text, SVG, HTML, and form annotations).
OptionalattributesOther root attributes, such as saveUser and saveDateTime.
OptionalautoAutomatic transaction groups of older projects (active).
OptionalbookmarksSpatial bookmarks.
OptionalcanvasMap canvas units of older projects, such as degrees or meters.
OptionalcrsHorizontal CRS. Removing an active CRS disables project projection.
OptionaldataData-defined properties for QGIS Server.
OptionaldisabledStored horizontal CRS while project projection is disabled. An active crs takes precedence.
OptionaldisplayCoordinate and bearing display settings.
OptionalelevationElevation profiles (QGIS 4.2+).
OptionalelevationTerrain settings.
OptionalelevationElevation shading (eye-dome lighting and hillshading) settings.
OptionalevaluateProvider-side default values of older projects (active).
OptionalextentDefault view extent, with an optional CRS of its own.
OptionalgpsGPS digitizing settings.
OptionalhomeProject home path, passed to QGIS without rewriting file paths.
OptionallabelLabeling engine rules (QGIS 3.40+), such as a minimum distance between labels and features.
OptionallayerDrawing order as layer IDs. Removed project layers are excluded on serialization.
Project layers. Additions and removals update tree and drawing-order references on serialization.
OptionallayerGroups and layer references in display order.
OptionallayoutsPrint layouts.
OptionallegacyQGIS 2 legend of older projects; QGIS uses it only without a layer tree.
OptionallegacyIndependent legacy map canvas settings, when different from the default view.
Optionalextent?: QgsReferencedRectangleLegacy canvas extent and its CRS.
Optionalrotation?: numberLegacy clockwise rotation in degrees.
OptionalloadWhether opening the project zooms to its default view extent.
OptionalmainThe project's main annotation layer, drawn above all layers.
OptionalmapMap themes (visibility presets).
Optionalmap3D map views (<mapViewDocks3D>).
OptionalmaskingSelective masking source sets (QGIS 4.2+).
Descriptive metadata, excluding the project title.
OptionalpolymorphicPolymorphic relations, each with attributes and field pairs.
OptionalpresetFull extent that replaces the extent of all layers (<PresetFullExtent>).
OptionalpresetCRS of QgsProject.presetFullExtent.
OptionalprocessingProcessing models stored in the project (<projectModels>).
OptionalprojectProject flags joined with |, such as EvaluateDefaultValuesOnProviderSide.
OptionalpropertiesProject property tree, such as Variables, Measurement, Measure, or
WMSServiceTitle. SpatialRefSys/ProjectionsEnabled follows QgsProject.crs.
OptionalrelationsRelations between layers.
OptionalreportsReports, stored with the layouts.
OptionalrotationDefault clockwise view rotation in degrees. Must be finite.
OptionalscalesPredefined scale denominators, as stored.
OptionalsensorsSensors (<Sensors>), such as TCP or serial port feeds.
OptionalsnappingSnapping settings.
OptionalstyleDefault symbol and style database settings.
OptionaltimeTemporal navigation settings.
Project title. Edits synchronize the title locations used by QGIS.
OptionaltransactionTransaction mode, such as Disabled, AutomaticGroups, or BufferedGroups.
OptionaltransformPreferred coordinate operations between CRS pairs.
OptionaltrustTrusted layer metadata of older projects (active).
OptionaluseWhether the project's predefined scales replace the global ones.
OptionalverticalVertical CRS, for use with QGIS versions that support it.
An editable project model, independent of the QGIS version used to read it.
Edit the typed properties and choose a target version with serializeQgs. Store it with serializeJson and restore it with parseJson.