[QGIS-Developer] Editing rule based labeling with the new QGIS3 python API
Dominique Lyszczarz
domlysz at gmail.com
Sun Feb 4 04:36:33 PST 2018
Thank you very much Martin for this quick fix, tested this morning and it
works as expected now.
I have another question : after settings some labeling rules with pyqgis,
the labels are not displaying but if I just enter the rule settings through
the gui and directly exit it without changing anything then the labels are
displayed correctly. Is there any register action needed for each rule that
I forgot in my code ?
2018-02-03 22:34 GMT+01:00 Martin Dobias <wonder.sk at gmail.com>:
> Hi Dominique
>
> On Sat, Feb 3, 2018 at 11:24 AM, Dominique Lyszczarz <domlysz at gmail.com>
> wrote:
> >
> > Unfortunately I can't find how to iterate over existing rules, the
> > labeling() method available for vector layers return an object of
> > QgsAbstractVectorLayerLabeling class
>
> That should be fixed on master now:
> https://github.com/qgis/QGIS/commit/4b365a8f47d96b35f7609859e58038
> 8927ae0606
>
> Cheers
> Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180204/d12fc2c8/attachment-0001.html>
More information about the QGIS-Developer
mailing list