QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
Setting options for loading layers. More...
#include <qgsmaplayerfactory.h>
Public Member Functions | |
LayerOptions (const QgsCoordinateTransformContext &transformContext) | |
Constructor for LayerOptions with transformContext. More... | |
Public Attributes | |
bool | loadAllStoredStyles = false |
Controls whether the stored styles will be all loaded. More... | |
bool | loadDefaultStyle = true |
Set to true if the default layer style should be loaded. More... | |
QgsCoordinateTransformContext | transformContext |
Transform context. More... | |
Setting options for loading layers.
Definition at line 64 of file qgsmaplayerfactory.h.
|
inlineexplicit |
Constructor for LayerOptions with transformContext.
Definition at line 70 of file qgsmaplayerfactory.h.
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.
Definition at line 92 of file qgsmaplayerfactory.h.
bool QgsMapLayerFactory::LayerOptions::loadDefaultStyle = true |
Set to true
if the default layer style should be loaded.
Definition at line 78 of file qgsmaplayerfactory.h.
QgsCoordinateTransformContext QgsMapLayerFactory::LayerOptions::transformContext |
Transform context.
Definition at line 75 of file qgsmaplayerfactory.h.