[Qgis-developer] layer.hasLabelsEnabled always returning False?

Richard Duivenvoorde rdmailings at duif.net
Fri Apr 11 03:01:55 PDT 2014


Hi,

having a python plugin which is supposed to check if there are labels I
use someting like this (python console):

iface.mapCanvas().currentLayer().hasLabelsEnabled()

(for an active simple point vector layer loaded)

But this always return False

is this method not working anymore because we switched label enginges?
Or is there something I do wrong?

See
http://qgis.org/api/classQgsVectorLayer.html#a5f6d192834d0370b66ebb5952a95feb5

Regards,

Richard Duivenvoorde


More information about the Qgis-developer mailing list