[QGIS-Developer] Save project in Python

Nyall Dawson nyall.dawson at gmail.com
Wed Aug 8 23:44:24 PDT 2018


On Wed, 8 Aug 2018 at 23:58, Kasper <rapzak at gmail.com> wrote:
>         self.map_canvas = QgsMapCanvas()
>         self.map_canvas.setDestinationCrs(QgsCoordinateReferenceSystem("epsg:4326"))
>
>         self.project = QgsProject()

Insert here:

self.project.writeProject.connect(self.map_canvas.writeProject)

Nyall


More information about the QGIS-Developer mailing list