On 7 January 2017 at 07:14, Martin Landa <[email protected]> wrote: > Hi, > > 2016-10-10 21:33 GMT+02:00 Blumentrath, Stefan <[email protected]>: >> Then maybe this helps: >> http://gis.stackexchange.com/questions/89903/is-there-a-way-to-run-a-python-script-on-opening-a-qgis-project > > I tried project-related macros, but it seems to me that they are never > launched. I found issue what exactly describes this problem [1]. It > has been fixed in master but it doesn't seems to be backported at > least to 2.18. (\me using 2.18.2). Any comments/tips? Thanks, Martin
Unfortunately in this case the fix was a quick one which relied on language features available in QGIS 3 but not QGIS 2.x, so the fix was not easily backportable. I just stumbled on this bug while experimenting with possible solution for a project which never went ahead so I won't be investing any more time into this issue. It's possible that an interested developer could adapt the fix to Qt4/non c++11 for 2.x, but I can't volunteer the time to do this. Nyall > > [1] https://hub.qgis.org/issues/9523 > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa > _______________________________________________ > Qgis-developer mailing list > [email protected] > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
