How can I show/open layout '2019_A' of Layout Manager from Python console?

How show window layout specific?

I checked in menu Interface Customization, mActionShowLayoutManager and I do not know how to call from Python console.

1 Answer 1


If you want open a new layout designer dialog for the specified layout.

# Open composition
project = QgsProject.instance()
projectLayoutManager = project.layoutManager()
layout = projectLayoutManager.layoutByName("2019_A")

and for show only manager dialog

iface.showLayoutManager ()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.