QGIS API Documentation  3.2.0-Bonn (bc43194)
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 389 of file qgsvectorlayer.h.

Constructor & Destructor Documentation

◆ LayerOptions()

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

Constructor for LayerOptions.

Definition at line 395 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 401 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 407 of file qgsvectorlayer.h.


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