QGIS API Documentation  3.4.3-Madeira (2f64a3c)
Public Member Functions | Public Attributes | List of all members
QgsVectorLayer::LayerOptions Struct Reference

Setting options for loading vector layers. More...

#include <qgsvectorlayer.h>

Public Member Functions

 LayerOptions (bool loadDefaultStyle=true, bool readExtentFromXml=false)
 Constructor for LayerOptions. More...
 

Public Attributes

bool loadDefaultStyle = true
 Sets to true if the default layer style should be loaded. More...
 
bool readExtentFromXml = false
 If true, the layer extent will be read from XML (i.e. More...
 

Detailed Description

Setting options for loading vector layers.

Since
QGIS 3.0

Definition at line 398 of file qgsvectorlayer.h.

Constructor & Destructor Documentation

◆ LayerOptions()

QgsVectorLayer::LayerOptions::LayerOptions ( bool  loadDefaultStyle = true,
bool  readExtentFromXml = false 
)
inlineexplicit

Constructor for LayerOptions.

Definition at line 404 of file qgsvectorlayer.h.

Member Data Documentation

◆ loadDefaultStyle

bool QgsVectorLayer::LayerOptions::loadDefaultStyle = true

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

Definition at line 410 of file qgsvectorlayer.h.

◆ readExtentFromXml

bool QgsVectorLayer::LayerOptions::readExtentFromXml = false

If true, the layer extent will be read from XML (i.e.

stored in the project file). If false, the extent will be determined by the provider on layer load.

Definition at line 416 of file qgsvectorlayer.h.


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