QgsVectorLayer::LayerOptions struct

Setting options for loading vector layers.

Constructors, destructors, conversion operators

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

Public variables

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

Variable documentation

bool QgsVectorLayer::LayerOptions::readExtentFromXml

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.