<div dir="ltr"><div><div><div><div>Hi Hugo,<br><br></div>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.<br><br></div>There is a class to convert the 2.x composition to the new layouts: <a href="https://github.com/qgis/QGIS/blob/master/src/core/layout/qgscompositionconverter.h">https://github.com/qgis/QGIS/blob/master/src/core/layout/qgscompositionconverter.h</a><br><br></div>You can find some usage examples in <a href="https://github.com/qgis/QGIS/blob/master/tests/src/core/testqgscompositionconverter.cpp">https://github.com/qgis/QGIS/blob/master/tests/src/core/testqgscompositionconverter.cpp</a><br><br></div><div><div>Cheers<br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 6, 2018 at 2:01 PM, Hugo Mercier <span dir="ltr"><<a href="mailto:hugo.mercier@oslandia.com" target="_blank">hugo.mercier@oslandia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a project with lots of composer templates that have been designed<br>
before the new "layout" refactoring.<br>
Loading these old templates in a more recent version fails silently.<br>
Is there a way to convert from the old format to the new one ?<br>
<br>
Thanks.<br>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div>