[QGIS-Developer] Compositions/Layouts - Subsitution map in QGIS 3

Adam Borczyk adam.borczyk at gis-support.pl
Wed May 16 08:29:42 PDT 2018


Hi everyone,

In QGIS 2 there was this handy function to load a Python dict with string
mapping into a QgsComposition object, so each string (not only label, also
eg. HTML) inside a given .qpt project was substituted accordingly ->
https://qgis.org/api/2.18/classQgsComposition.html#ac147dd9e3ee689a7fdfdca58743e7be8

I know Composition stuff was moved to QgsLayout in Q 3. In the
documentation I found only this one:
https://qgis.org/api/classQgsLayout.html#ad84ff95e98598ed3c29eef973d7b4bff
but it doesn't seem to support the substitution map. What is the way to
substitute string in Q 3?

Best regards

* Adam Borczyk*

*---------------------------------GIS Support Sp. z o.o.DobrzaƄskiego 3,
Lublin 20-262
<https://maps.google.com/?q=Dobrza%C5%84skiego+3,+Lublin+20-262&entry=gmail&source=g>tel.
+48 81 451 14 90, NIP: 9462641761*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180516/acac2c4c/attachment-0001.html>


More information about the QGIS-Developer mailing list