<div><div dir="auto">Hi Raymond,</div><div dir="auto"><br></div><div dir="auto">For the window title, you can try designer.window().windowTitle().</div><div dir="auto"><br></div><div dir="auto">To get the QgsPrintLayout object, you can try designer.masterLayout() which has the .name() method.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"><br></div><div dir="auto">John</div></div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 29 Jul 2022 at 12:04, Raymond Nijssen via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi developers,<br>
<br>
I'm trying to get the name for a layout designer window, which is in a <br>
python variable (designer) of type QgsLayoutDesignerInterface.<br>
<br>
designer.layout() returns a QgsLayout object but that class does not <br>
have a .name() function.<br>
<br>
The QgsPrintLayout class does have a .name() function but I don't know <br>
how to get a QgsPrintLayout object from my designer.<br>
<br>
Anyone?<br>
<br>
Kind regards,<br>
Raymond<br>
<br>
<br>
<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">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/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div></div>
</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">John Gitau</div>