I try to set the extent of my QgsProject to the extent of one of the layers in it. I know how to do that with qgis.utils.iface but it works only when the script runs inside QGIS' Python console. What I need is a way to modify the interface without being in QGIS.

Your Answer

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

Browse other questions tagged or ask your own question.