[QGIS-Developer] How to get the name for a QgsLayoutDesignerInterface object?

Raymond Nijssen r.nijssen at terglobo.nl
Fri Jul 29 01:48:27 PDT 2022


Hi developers,

I'm trying to get the name for a layout designer window, which is in a 
python variable (designer) of type QgsLayoutDesignerInterface.

designer.layout() returns a QgsLayout object but that class does not 
have a .name() function.

The QgsPrintLayout class does have a .name() function but I don't know 
how to get a QgsPrintLayout object from my designer.

Anyone?

Kind regards,
Raymond





More information about the QGIS-Developer mailing list