[Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows

Nejia nejia at spaceyes.fr
Tue Nov 18 23:24:10 PST 2014


Hi,

1- QGIS and Qt libraries shipped with Osgeo4W are compiled using release
mode so if you want to debug your application you can use RelWithDebInfo
mode.
2- see:
http://gis.stackexchange.com/questions/120823/how-to-load-a-wms-layer-using-
pyqgis
http://ieqgis.wordpress.com/2014/08/09/adding-esris-online-world-imagery-dat
aset-to-qgis/

Cheers
Nejia


-----Message d'origine-----
De : qgis-developer-bounces at lists.osgeo.org
[mailto:qgis-developer-bounces at lists.osgeo.org] De la part de eliu1234
Envoyé : mercredi 19 novembre 2014 07:42
À : qgis-developer at lists.osgeo.org
Objet : [Qgis-developer] Problems with developing custom c++ qgis
application with QtCreator and MSVC2008 on Windows

I am using qtcreator and msvc2008 for developing the c++ custom application.

I followed the following tutorial to setup the system:
http://3nids.wordpress.com/2014/02/27/build-and-deploy-c-qgis-app-on-windows
/

Problem 1: under debug mode, I cannot create a QgsMapCanvas object. It
always exit with code 1.

Problem 2: under release mode, I tried to create a raster layer with the
following command:
QgsRasterLayer * layer = new
QgsRasterLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Im
agery/MapServer?f=json&pretty=true","raster");
It always result in a layer which is invalid. I tried the python equivalent
command: layer =
QgsRasterLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Im
agery/MapServer?f=json&pretty=true","raster");
in qgis python console and it works fine.

Any help is appreciated.



--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c-qgis-a
pplication-with-QtCreator-and-MSVC2008-on-Windows-tp5173711.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the Qgis-developer mailing list