[QGIS-Developer] QGIS 3 layout: conversion from old template format ?

Alessandro Pasotti apasotti at gmail.com
Tue Feb 6 05:11:18 PST 2018


Hi Hugo,

if the old composition was embedded in a project the conversion should
happen automatically and you should see the old compositions in the layouts
menu.

There is a class to convert the 2.x composition to the new layouts:
https://github.com/qgis/QGIS/blob/master/src/core/layout/qgscompositionconverter.h

You can find some usage examples in
https://github.com/qgis/QGIS/blob/master/tests/src/core/testqgscompositionconverter.cpp

Cheers


On Tue, Feb 6, 2018 at 2:01 PM, Hugo Mercier <hugo.mercier at oslandia.com>
wrote:

> Hi,
>
> I have a project with lots of composer templates that have been designed
> before the new "layout" refactoring.
> Loading these old templates in a more recent version fails silently.
> Is there a way to convert from the old format to the new one ?
>
> Thanks.
> _______________________________________________
> 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/20180206/8a89be2a/attachment.html>


More information about the QGIS-Developer mailing list