Obsolete Members for LabelDefinition
The following members of class LabelDefinition are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
| ||LabelDefinition(QObject *parent = nullptr)|
Member Function Documentation
LabelDefinition::LabelDefinition(QObject *parent = nullptr)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Creates a label definition.
- parent - The optional parent QObject.
This method is deprecated since 100.11. LabelDefinition has replaced this method.
It is safer to construct a LabelDefinition using a LabelExpression and TextSymbol. This reduces the chance of LabelDefinition being used with no expression or textSymbol, which would result in no labels being created.