Tendfly niu
2014-10-21 02:10:25 UTC
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 project is:
QString myProjectPath = "E:\\QGIS\\Pro\\test.qgs";
Qgsproject::instance()->setFileName(myProjectPath);
bool isRead = QgsProject::instance()->read();
In Debug mode, isRead equals TRUE.
Any advice would be appreciated!
Regards,
Bob
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 project is:
QString myProjectPath = "E:\\QGIS\\Pro\\test.qgs";
Qgsproject::instance()->setFileName(myProjectPath);
bool isRead = QgsProject::instance()->read();
In Debug mode, isRead equals TRUE.
Any advice would be appreciated!
Regards,
Bob