Hi, I have a problem with loading a project file at the end of a python plugin:
project = QgsProject.instance() project.read(QFileInfo(projectFile)) # read the new project file Only a few layers are loaded, no styles etc. When I close the project and reload it manually, everthing is o.k. How can I load the project file correctly? Best wishes, Jörg FH Aachen Prof. Dr.-Ing. Jörg Höttges Fachbereich 2 - Bauingenieurwesen Wasserwirtschaft und Bauinformatik FH Aachen University of Applied Sciences Bayernallee 9 52066 Aachen | Germany T +49 (0)241 6009-51176 F +49 (0)241 6009-51206 http://www.fh-aachen.de/hoettges/ [email protected] <mailto:[email protected]>
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
