[QGIS-Developer] QgsComposition in QGIS3
Alessandro Pasotti
apasotti at gmail.com
Thu Mar 15 04:51:35 PDT 2018
Hi,
QgsComposition is gone in favor of the new layout classes: see
https://qgis.org/api/classQgsLayout.html
Have a look to the tests for some usage examples:
https://github.com/qgis/QGIS/blob/master/tests/src/python/test_qgslayout.py
Hope this helps
On Thu, Mar 15, 2018 at 12:28 PM, KOHLMANN Hannes <H.KOHLMANN at ove.at> wrote:
> Hello everyone!
>
>
>
> I have a short question concerning print composition, as I want to do that
> via PyQgis in QGIS3:
>
> I stumbled across the QgsComposition class (http://kartoza.com/en/blog/
> how-to-create-a-qgis-pdf-report-with-a-few-lines-of-python)
>
> I cannot find this class in the Qgis3 API. Usuallly, the Python console in
> QGIS will suggest me available classes as soon as I type the initials, but
> all Qgis shows me are some QgsCompound… classes
>
> Since nothing is mentioned in the backwards incompatible changes (
> https://qgis.org/api/api_break.html) I wanted to ask here, maybe I have
> just overseen something or am searching for a wrong class (?)
>
>
>
> QGIS-Version
>
> 3.0.0-Girona
>
> QGIS-Codeversion
>
> 001c80b0c3 <https://github.com/qgis/QGIS/commit/001c80b0c3>
>
> Kompiliert gegen Qt
>
> 5.9.2
>
> Laufendes Qt
>
> 5.9.2
>
> Kompiliert mit GDAL/OGR
>
> 2.2.3
>
> Läuft mit GDAL/OGR
>
> 2.2.3
>
> Kompiliert mit GEOS
>
> 3.5.0-CAPI-1.9.0
>
> Läuft mit GEOS
>
> 3.5.0-CAPI-1.9.0 r4084
>
> PostgreSQL-Client-Version
>
> 9.2.4
>
> SpatiaLite-Version
>
> 4.3.0
>
> QWT-Version
>
> 6.1.3
>
> QScintilla2-Version
>
> 2.10.1
>
> PROJ.4-Version
>
> 493
>
>
>
> Thanks for help! J
>
>
>
> Best regards,
>
> Hannes K.
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
--
Alessandro Pasotti
w3: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180315/dbcfc092/attachment.html>
More information about the QGIS-Developer
mailing list