A pyqgis stand-alone app labels layer features with QgsPalLayerSettings
, in the same fashion as in Labelling line layer using QgsPalLayerSettings() QGIS failed, it works for me too.
How do I retrieve that pal layer object after it is "tied in" with a layer for further manipulation (enable/disable etc) or do I just define another pal layer object and writeTo that same layer again to overwrite it?
there is a fromLayer(layer)
static function of the QgsPalLayerSettings
class that seems to be able to get back a PalLayer object, but it looks like it is a cloned copy, I would like to just get the original pal layer object.