Hi Gary,
According to the QgisApp::addProject( QString projectFile ) function, I did
some change in my code. However, the map still doesn't show, but the CRS in
project works fine. So I think the project file was read but there is
something wrong about display(or MapCanvas).
I don't use Python plu
Thanks a lot! I will try that.
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Open-a-qgs-project-file-in-API-why-maps-do-not-show-tp5168545p5168549.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
__
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
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.
--
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 Quantu
On 10/20/14 6:10 PM, Tendfly niu wrote:
Hi all,
I'm using QGIS-2.4.0 API. I saved a test.qgs file in QGIS Desktop, in
this project, there is one layer in it.
Then I open the test.qgs project file in QGIS API to developing, but it
is not showed in APP.
Why is that?
The code I'm using to open the