0
votes
0answers
8 views

How to debug a QGis C++ plugin with Visual Studio 2008 [duplicate]

I have a plugin for QGIS 2.2 in C++ (legacy). I dont find how debugging this plugin, with Visual Studio 2008 (for evolution, etc.) Sorry for my bad english. Thanks you ! Paho
0
votes
1answer
109 views

QGIS 2.0 Howto copy raster data from a QgsRasterDataProvider to an OpenCV matrix

I'm hacking the half day arround a problem and that I' thought it was simple one. I'm using C++ (QtCreator) QGIS 2.0 und openCV2 on an 64 bit Workstation runnig Debian Wheezy. The Application I try to ...
0
votes
0answers
12 views

How to define own icon for qgsvertexmarker?

I want to use a small image instead of predefined icons of vertex marker in qgis. how to do this? QgsVertexMarker * marker = new QgsVertexMarker(mPlugin->iface()->mapCanvas()); ...
0
votes
0answers
63 views

Unable to view a wms layer in QGIS cpp aplication

I am a newbie in QGIS c++ programming, and I am trying to load a raster file from a WMS and display it. The image I want to display can be obtained from this url ...
2
votes
2answers
166 views

how can i set place mark with text in QGIS?

I want to mark a point in map and place text near it. I used QgsVertexMarker to mark point .As far as now i am using tool-tip to show text. but i need clean code to show my text on map. Following ...
2
votes
1answer
131 views

how to remove and change qgsvertexmarker in QGIS using c++ code?

In QGIS following code is used to set marker at point A. QgsVertexMarker * marker = new QgsVertexMarker(mPlugin->iface()->mapCanvas()); marker->setColor(Qt::black); ...
0
votes
1answer
44 views

Install plugins for qgis in centos

I followed the instructions here: How to install QGIS on Centos 6? If I run: QgsVectorLayer * vpoly = new QgsVectorLayer("Polygon", "pointbuffer", "memory"); QgsVectorDataProvider * provider = ...
1
vote
1answer
597 views

QGIS Plugin Windows

I have written a QGIS plugin (RTools) which acts mostly like a independent plugin (minimal interaction with QGIS core functions). On Linux both QGIS and RTools were build using QT 4.8 on Qt creator. ...
0
votes
0answers
75 views

Developing QGIS Plugin on windows [duplicate]

I have developed a small plugin which acts as a plugin for QGIS. On linux, QGIS (customized) as well as the plugin were built using QT creator and worked well. Same code I am trying to port on to ...
1
vote
1answer
136 views

Get the keyPress-Event in QGis-Plugin

I have a QTreeWidget in a QWidget which is the gui of my plugin(cpp). Now i want to get the keyPress-Event of a Node in the TreeView. I try to reimplement the signal of the QWidget. protected: ...
0
votes
1answer
204 views

How to set the cursor to busy mode?

How can I set the cursor to busy-mode/in progress from my qgis plugin (cpp)? I couldn't find anything in the API documentation.
2
votes
0answers
55 views

Is there a way to distinguish between digitized and pasted features?

Is there a way to tell if an added feature in QGIS is in fact a newly digitized one or a pasted feature? I think QGIS is treating both cases in the same way, emitting the same signal: ...
5
votes
1answer
93 views

Is it possible show the feature attributes dialog when I add a feature in code?

I want to know if it is possible to make the feature attributes dialog in Qgis show up when I add a feature by code using: QgsVectorLayer::addFeature( tFeature ) This is available when I add ...
5
votes
1answer
711 views

Where can I find documentation on QGIS C++ Plugin Development?

Is external C++ plug-in support available for QGIS? I'm having a really hard time getting started here. I followed the doc here: ...
6
votes
1answer
757 views

C++ Code Examples in Quantum GIS 1.8

I am trying to utilize the C++ code examples from blog.qgis.org, specifically Tutorial 4, Adding Rasters to QGIS Map Canvas. I am successfully able to run the example loading a GeoTIFF with QGIS ...
3
votes
3answers
331 views

Installing the development files libqgis-dev in Ubuntu 12.04

I am trying to install development files which include the headers and the libraries for qgis in Ubuntu 12.04. I used Ubuntu software center, synaptic and the terminal and am still getting the same ...
2
votes
0answers
261 views

Setup of development environment of QGIS on windows with qt creator

Can anyone help me in setting up environment for working on QGIS on windows using qt-creator? I am using qt creator version 1.3.1,qt version 4.6 and QGIS version 1.8. Thanks.
5
votes
1answer
2k views

Setting up an application in QT Creator that uses QGIS API

I am a 15 year veteran of Java making my first entry in to C++ applications. I have a specific need to develop a desktop application that produces graphics type output as well as displaying imbedded ...
1
vote
2answers
127 views

Fetching field values from uncommitted features on Qgis

I'm trying to fetch a feature's field value on Qgis, I use QgsFeature.attributeMap().value(cont int & key).toDouble() This works fine for committed features but it always returns " 0 " if the ...
1
vote
0answers
243 views

What do I need to build a C++ plugin on windows 7?

I want to make a plugin in C++ and I need to write and build it in windows (Im better with *nix systems). While I have skimmed the various updated C++Plugin docs I can understand if I need to build ...
0
votes
1answer
177 views

Qgis : QGraphicsTextItem's position not updated?

I'm using QgisInterface->mapCanvas()->scene()->addItem(QGraphicsTextItem) to add a QGraphicsTextItem to the map canvas. The problem is that when I use the pan tool to move the display the added ...
2
votes
1answer
184 views

Qgis C++ plugin translation

I'm having issues with the translation of my Qgis plugin. static const QString sName = QObject::tr( "Editeur Monoscopique 3D" ); MyClass::MyClass( QgisInterface * theQgisInterface ): ...
7
votes
1answer
1k views

How can i create sectors for telecom towers

friends i am seeking advice from the GIS community I work in the Mobile networks industry and i took up a task to create a plugin for QGIS using c++/python that does the following: step 1: Create ...
2
votes
1answer
282 views

How to port QGIS C++ plugins to other QGIS installations?

I developed a C++ plugin for QGIS using VC++ express 2008 and a QGIS dev release (1.9.90 alpha), my plugin works fine on this release and now I want to port it to other QGIS installations, so I copied ...
0
votes
0answers
21 views

MapCanvas : Mouse-wheel event filtering/overriding [duplicate]

Possible Duplicate: MouseWheel event filtering on Qgis I’m developing a C++ plugin for Qgis and I want to filter/override the mouse-wheel event. I created a “maptool” to select a polygon ...
5
votes
2answers
441 views

How to filter the MouseWheel event in a QGIS C++ plugin?

I’m developing a C++ plugin for Qgis and I want to filter/override the mouse-wheel event. I created a “maptool” to select a polygon feature on a vector layer, the feature has two attributes : an id ...
2
votes
1answer
109 views

Keeping a vector layer always on top

I want to know how to keep a layer always on top of other layers! After adding a vector layer ( QgisInterface->addVectorLayer ), I want that layer to always be displayed on top of layers added later. ...