[Qgis-developer] Zoom in qt

2014-12-09 Thread eliu1234
I am currently trying to use pyqt and qgis to write an application. I am using zoomWithCenter method to do the zoom action. Is it possible to make sure when I zoom out, the qgsmapcanvas is always at the center of the qwindow? Also, is it possible to block all zoom in action if the zoom action

[Qgis-developer] Handling event in overlap widget scenario in Qt

2014-12-04 Thread eliu1234
Here is my problem: I am trying to develop a mobile application using Qt and QGIS. I am trying to implement zoom action on qgsmapcanvas. Right now, I have a qgsmapcanvas and a qwidget. I have developed the code for zoom action on the qwidget. And I am considering to overlap the qgsmapcanvas

[Qgis-developer] Is there a python version of qTuio?

2014-12-04 Thread eliu1234
Is there a python version of qTuio? qTuio is implemented in C++. However, I am currently trying to use pyqgis due to problems with C++ environment (I cannot even create a raster layer). Any help is appreciated. -- View this message in context:

[Qgis-developer] Fail to create raster layer in C++ but is able to do so in python

2014-12-03 Thread eliu1234
I am trying to add a raster layer in c++ application with QtCreator and QGIS 2.6.0. I am currently trying to create a 32bit application under 64 bit windows system. I am not sure if this would be the cause. My code is as follows: QgsRasterLayer * layer = new

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

2014-11-25 Thread eliu1234
part de eliu1234 Envoyé : lundi 24 novembre 2014 17:52 À : qgis-developer@.osgeo Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows QgisInterface is an abstract class. How are you initializing it? Or do you just

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

2014-11-25 Thread eliu1234
-bounces@.osgeo ] De la part de eliu1234 Envoyé : lundi 24 novembre 2014 17:52 À : qgis-developer@.osgeo Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows QgisInterface is an abstract class. How are you initializing

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

2014-11-24 Thread eliu1234
/classQgisInterface.html#a808a34b507a8c4204d607a5857d62748 Regards, Nejia -Message d'origine- De : qgis-developer-bounces@.osgeo [mailto: qgis-developer-bounces@.osgeo ] De la part de eliu1234 Envoyé : vendredi 21 novembre 2014 21:36 À : qgis-developer@.osgeo Objet : Re: [Qgis

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

2014-11-24 Thread eliu1234
QgisInterface *m_ptInterface; See http://qgis.org/api/2.6/classQgisInterface.html#a808a34b507a8c4204d607a5857d62748 Regards, Nejia -Message d'origine- De : qgis-developer-bounces@.osgeo [mailto: qgis-developer-bounces@.osgeo ] De la part de eliu1234 Envoyé : vendredi 21

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

2014-11-21 Thread eliu1234
/rest/services/World_Imagery/MapServer?f=jsonpretty=true,raster;); Regards, Nejia -Message d'origine- De : qgis-developer-bounces@.osgeo [mailto: qgis-developer-bounces@.osgeo ] De la part de eliu1234 Envoyé : jeudi 20 novembre 2014 21:40 À : qgis-developer@.osgeo

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

2014-11-20 Thread eliu1234
d'origine- De : qgis-developer-bounces@.osgeo [mailto: qgis-developer-bounces@.osgeo ] De la part de eliu1234 Envoyé : mercredi 19 novembre 2014 17:39 À : qgis-developer@.osgeo Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator

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

2014-11-19 Thread eliu1234
1. So in the .proj file, what do i need to change? 2. My Python works in this case, it is the C++ part that is not working. Nejia wrote 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

Re: [Qgis-developer] Write custom c++ application using QGIS under windows

2014-11-18 Thread eliu1234
Thanks so much for the answer. I am able to get the 32 bit version working. Right now, I am facing the problem of not able to run debug mode. Since all those xd.lib files does not exist with the OSGeo4W installation. Do you have any idea how to fix this? And right now, I cannot seem to print

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

2014-11-18 Thread eliu1234
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

[Qgis-developer] Write custom c++ application using QGIS under windows

2014-11-17 Thread eliu1234
Anyone was able to write qgis c++ application under Windows? The problem that I am encountering is that header files such as qgsapplication.h cannot be found. I have installed qgis 2.6 and those files actually do not exist. What do I need to do in order to find these header files so I can do C++

Re: [Qgis-developer] Write custom c++ application using QGIS under windows

2014-11-17 Thread eliu1234
Thanks for the reply. So after that, I should just include the directory containing the header files in .proj? I tried to do this, however, i get the error in the following stackoverflow post: http://stackoverflow.com/questions/26597253/syntax-error-in-qgsapplication-h -- View this message

Re: [Qgis-developer] Write custom c++ application using QGIS under windows

2014-11-17 Thread eliu1234
Thanks for the reply. So after that, I should just include the directory containing the header files in .proj? I tried to do this, however, i get the error in the following stackoverflow post: http://stackoverflow.com/questions/26597253/syntax-error-in-qgsapplication-h -- View this message

Re: [Qgis-developer] Write custom c++ application using QGIS under windows

2014-11-17 Thread eliu1234
I saw your post on this. And I actually used this .proj file. However, with all of your include directory, the header files qgisapplication.h does not exist in anyone of them. This is why I am confused about where it can be. -- View this message in context:

Re: [Qgis-developer] Write custom c++ application using QGIS under windows

2014-11-17 Thread eliu1234
; 5:47pm — by 3nids 3nids Hi, I wrote a post about that: http://3nids.wordpress.com/2014/02/27/build-and-deploy-c-qgis-app-on-windows/ I hope it helps Denis Le mardi 18 novembre 2014, eliu1234 [hidden email] a écrit : Thanks for the reply. So after that, I should just include the directory