1

I would like to get the project title with PyQGIS to use it as a parameter of a Python script.

1

You can get the project title with

title = QgsProject.instance().title()

See the documentation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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