On 10/20/14 6:24 PM, Spartucus wrote:
Hi Gary ,
Thanks for reply!
I don't what iface is. Is it another name of QgsProject::instance()? I'm
using C++ to developing app.



Ah, I missed the fact you were using C++.

iface is an instance of QgisInterface available in the Python console. It exposes interfaces in QgisApp, which doesn't help you if you are developing a standalone app in C++.

See the code for: QgisApp::addProject( QString projectFile ) in qgisapp.cpp for how QGIS loads a project file.


        

--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Open-a-qgs-project-file-in-API-why-maps-do-not-show-tp5168545p5168547.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer



--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Gary Sherman

Founder, QGIS Project
Consulting: geoapt.com
Publishing: locatepress.com

We work virtually anywhere
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to