Hi,
It seems to me that QgisInterface::actionOpenProject() (and
QgisApp::addProject()) do a lot more than QgsProject.instance().read()
- how much of that is important?
Etienne
On Mon, Nov 19, 2012 at 6:09 PM, Tim Sutton wrote:
> Hi
>
>
> On Mon, Nov 19, 2012 at 6:31 PM, Etienne Tourigny
> wrot
It could be useful (for the future) to have also a writtenProject signal,
to be able to do post-saving processing. I will add a wish ticket...
giovanni
Sent from Nexus
Il giorno 19/nov/2012 21:09, "Tim Sutton" ha scritto:
> Hi
>
>
> On Mon, Nov 19, 2012 at 6:31 PM, Etienne Tourigny
> wrote:
>
Hi
On Mon, Nov 19, 2012 at 6:31 PM, Etienne Tourigny
wrote:
>
> To load a project file call QgisInterface::actionOpenProject()
Or programmatically open the project file like this:
QgsProject.instance().setFileName(myProjectPath)
QgsProject.instance().read()
Regards
Tim
>
>
To load a project file call QgisInterface::actionOpenProject()
most app-related stuff that a plugin can do are in the QgisInterface class
On a related note:
If you want the plugin to do something when a project file is loaded,
you need to connect to the QGisInterface projectRead() signal
Hi
I must be missing something... I have searched the API and the web, but
cannot find out how to do this seemingly simple task
I want to make my plugin automatically load a specified .qgs Project file
into QGIS when the plugin is activated.
I'm sure that I must be missing something.
Any help ap