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 <[email protected]> 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 > [email protected] > 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
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
