[QGIS-Developer] Another QGIS 2 to 3 API Change - How to Adapt
adenaculture at gmail.com
Fri May 12 12:56:37 PDT 2017
Here is another problem I have encountered converting a plugin from QGIS 2
In my plugin I want to automatically create a point layer and have the
point labeled. Here is how I used to do it:
label = QgsPalLayerSettings()
label.enabled = True
label.fieldName = 'label'
In QGIS 3 setDataDefinedProperty() is no longer a method. It looks like it
has been replaced with setDataDefinedProperties()
How do I set the font size in QGIS 3 similar to what I was doing in QGIS 2?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the QGIS-Developer