QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
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. | |
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.