QGIS API Documentation 3.37.0-Master (49cede7946b)
No Matches
Public Member Functions | Public Attributes | List of all members
QgsMapLayerFactory::LayerOptions Struct Reference

Setting options for loading layers. More...

#include <qgsmaplayerfactory.h>

Public Member Functions

 LayerOptions (const QgsCoordinateTransformContext &transformContext)
 Constructor for LayerOptions with transformContext.

Public Attributes

bool loadAllStoredStyles = false
 Controls whether the stored styles will be all loaded.
bool loadDefaultStyle = true
 Set to true if the default layer style should be loaded.
QgsCoordinateTransformContext transformContext
 Transform context.

Detailed Description

Setting options for loading layers.

QGIS 3.22

Definition at line 64 of file qgsmaplayerfactory.h.

Constructor & Destructor Documentation

◆ LayerOptions()

QgsMapLayerFactory::LayerOptions::LayerOptions ( const QgsCoordinateTransformContext transformContext)

Constructor for LayerOptions with transformContext.

Definition at line 70 of file qgsmaplayerfactory.h.

Member Data Documentation

◆ loadAllStoredStyles

bool QgsMapLayerFactory::LayerOptions::loadAllStoredStyles = false

Controls whether the stored styles will be all loaded.

If true and the layer's provider supports style stored in the data source all the available styles will be loaded in addition to the default one.

If false (the default), the layer's provider will only load the default style.

QGIS 3.30

Definition at line 92 of file qgsmaplayerfactory.h.

◆ loadDefaultStyle

bool QgsMapLayerFactory::LayerOptions::loadDefaultStyle = true

Set to true if the default layer style should be loaded.

Definition at line 78 of file qgsmaplayerfactory.h.

◆ transformContext

QgsCoordinateTransformContext QgsMapLayerFactory::LayerOptions::transformContext

Transform context.

Definition at line 75 of file qgsmaplayerfactory.h.

The documentation for this struct was generated from the following file: