QgsLabelingUtils class
Contains helper utilities for working with QGIS' labeling engine.
Contents
- Reference
Public static functions
-
static auto decodePredefinedPositionOrder(const QString& positionString) -> QVector<QgsPalLayerSettings::
PredefinedPointPosition> - Decodes a string to an ordered list of predefined point label positions.
-
static auto encodePredefinedPositionOrder(const QVector<QgsPalLayerSettings::
PredefinedPointPosition>& positions) -> QString - Encodes an ordered list of predefined point label positions to a string.
Function documentation
static QVector<QgsPalLayerSettings:: PredefinedPointPosition> QgsLabelingUtils:: decodePredefinedPositionOrder(const QString& positionString)
Decodes a string to an ordered list of predefined point label positions.
| Parameters | |
|---|---|
| positionString | encoded string of positions |
| Returns | decoded list |
static QString QgsLabelingUtils:: encodePredefinedPositionOrder(const QVector<QgsPalLayerSettings:: PredefinedPointPosition>& positions)
Encodes an ordered list of predefined point label positions to a string.
| Parameters | |
|---|---|
| positions | order list of positions |
| Returns | list encoded to string |