[Qgis-developer] Making QgsProject available to python plugins

Alexander Bruy alexander.bruy at gmail.com
Sat Sep 29 05:32:58 PDT 2012


AFAIK, QgsProject already available from Python. Just use
QgsProject.instance() to access it. Maybe you mean that
some methods currently not exposed in Python API?

2012/9/29 Sandro Santilli <strk at keybit.net>:
> How do I make QgsProject available to python plugins ?
> I read on API docs it's not available but I do see a qgsproject.sip
> file under python/core so I'm wondering what's missing.
>
> I'd like to use it to add layers in another project file
> to the currently loaded project.
>
> --strk;


-- 
Alexander Bruy


More information about the Qgis-developer mailing list