QgsSymbolLayerAbstractMetadata class

Stores metadata about one symbol layer class.

Contents

Derived classes

class QgsSymbolLayerMetadata
Convenience metadata class that uses static functions to create symbol layer and its widget.

Public functions

auto createSymbolLayer(const QgsStringMap& map) -> QgsSymbolLayer* pure virtual
Create a symbol layer of this type given the map of properties.
auto createSymbolLayerFromSld(QDomElement&) -> QgsSymbolLayer* virtual
Create a symbol layer of this type given the map of properties.
auto createSymbolLayerWidget(QgsVectorLayer*) -> QgsSymbolLayerWidget* virtual
Create widget for symbol layer of this type. Can return NULL if there's no GUI.
void resolvePaths(QgsStringMap& properties, const QgsPathResolver& pathResolver, bool saving) virtual
Resolve paths in symbol layer's properties (if there are any paths).

Function documentation

void QgsSymbolLayerAbstractMetadata::resolvePaths(QgsStringMap& properties, const QgsPathResolver& pathResolver, bool saving) virtual

Resolve paths in symbol layer's properties (if there are any paths).

When saving is true, paths are converted from absolute to relative, when saving is false, paths are converted from relative to absolute. This ensures that paths in project files can be relative, but in symbol layer instances the paths are always absolute