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

Hugo Mercier hugo.mercier at oslandia.com
Tue Feb 6 05:18:01 PST 2018


Hi Alessandro,

That's great, thanks ! :)

On 06/02/2018 14:11, Alessandro Pasotti wrote:
> 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
> <mailto: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 <mailto:QGIS-Developer at lists.osgeo.org>
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>     Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> 
> 
> 
> 
> -- 
> Alessandro Pasotti
> w3:   www.itopen.it <http://www.itopen.it>


More information about the QGIS-Developer mailing list