QGIS API Documentation  3.20.0-Odense (decaadbb31)
Static Public Member Functions | List of all members
QgsMapLayerFactory Class Reference

Contains utility functions for creating map layers. More...

#include <qgsmaplayerfactory.h>

Static Public Member Functions

static QgsMapLayerType typeFromString (const QString &string, bool &ok)
 Returns the map layer type corresponding a string value. More...
 
static QString typeToString (QgsMapLayerType type)
 Converts a map layer type to a string value. More...
 

Detailed Description

Contains utility functions for creating map layers.

Since
QGIS 3.18.1

Definition at line 32 of file qgsmaplayerfactory.h.

Member Function Documentation

◆ typeFromString()

QgsMapLayerType QgsMapLayerFactory::typeFromString ( const QString &  string,
bool &  ok 
)
static

Returns the map layer type corresponding a string value.

Parameters
stringstring to convert to map layer type
okwill be set to true if string was successfully converted to a map layer type
Returns
converted map layer type
See also
typeToString()

Definition at line 20 of file qgsmaplayerfactory.cpp.

◆ typeToString()

QString QgsMapLayerFactory::typeToString ( QgsMapLayerType  type)
static

Converts a map layer type to a string value.

See also
typeFromString()

Definition at line 42 of file qgsmaplayerfactory.cpp.


The documentation for this class was generated from the following files: