Is a cross-platform application framework that is widely used for developing application software with a graphical user interface (GUI) (in which cases Qt is classified as a widget toolkit), and also used for developing non-GUI programs such as command-line tools and consoles for servers.

learn more… | top users | synonyms

1
vote
0answers
17 views

QGIS and QT library- code compilation problem [closed]

So, I am trying to workout an GIS standalone application using QGIS and QT C++ Libraries on linux(ubuntu 15.04). I am following this tutorial: https://github.com/qgis/QGIS-Code-Examples Taking the ...
0
votes
1answer
42 views

Where are cpp files from libqgis? [closed]

I am in linux Mint 17.0 I am trying to develop a small application in Qt using libqgis library. When I create a Class inherit from QgsMapCanvas, I get mistakes related with 'undefined references ...
0
votes
0answers
40 views

Use QGIS and Qt dialog forms

I have a QGIS project where there are plots with a attributes like name of the owner, address of the owner, cultivate, and so on. This plots are read from a PostGIS database. The future users of this ...
1
vote
0answers
26 views

use qgis api in qtcreator

i have a college project that searches content in map. I did all instruction written in this site: http://kartoza.com/how-to-build-and-debug-qgis-with-qtcreator then built my sample project. this is ...
0
votes
1answer
13 views

Gdal/OGR LayerMetaData not parsing its value

To start off with: Using Gdal/Ogr compiled with Xerces to read a WFS Reading from a WFS version 1.0.0 Compiler is QT version 5.4.1 ( C++ ) So I'm trying to get all the capabilities of a WFS via ...
1
vote
0answers
47 views

How to pull data from multiple databases via Qt .ui form?

Using a single .ui form and wthin QGIS, can I show multiple records from another table that is associated with a single polygon? Table 1 contains planning applications ref Table 2 contains multiple ...
1
vote
0answers
7 views

Plugin c++ - QGIS [duplicate]

I'd like to know how can i create extension in c++ by using QtCreator, for QGis 2.8 ? Thank you for helping me.
1
vote
0answers
18 views

C++ Get Capabilities from a WFS

To start off with: Coding in C++ Using the QT Creator Reading from WFS Version 1.1.0 Using Gdal/OGR compiled with Xerces Hi all so I'm trying to get all of the Capabilities from a WFS. I know how ...
1
vote
1answer
68 views

How to show a QGis map in Qt/C++ custom widget with QgsMapCanvas?

I'm trying to add a QGis map in Qt/C++ widget using QgsMapCanvas, but I have some problems... I'm working with the following environment: - Ubuntu 12.04 - QGis 2.8.1 - Qt Creator 2.4.1 (based on Qt ...
1
vote
1answer
34 views

Getting Feature names from WFS in C++

to start off with: Coding in C++ Using WFS Version 1.0.0 Using QT 5.4.1 Windows 8 Latest versions I'm trying to read in a WFS in code via Gdal compiled with Xerces - I'm able to read the GML ...
2
votes
1answer
73 views

Qt/C++ Hello World application with QGIS not compiled: qgsconfig.h not found

I am a Qt/C++ developer. I have to create a GUI application (Qt/C++) with GIS maps. I'm trying to do that using QGIS. I'm working in Linux Ubuntu with Qt Creator 2.4.1 (based on Qt 4.8.0). I did the ...
0
votes
1answer
75 views

QGIS C++ Hello World example crashing

I have written a very simple C++/Qt application using QGIS comprised of a single "main.cpp" file as below: #include <qgsapplication.h> int main(int argc, char ** argv) { QgsApplication ...
0
votes
0answers
50 views

How to make a QT form modal in QGIS

I have created a form in QT (ui) and I have configured the properties of a layer (fields) at edit ui. The form is called from QGIS as non-modal but I need it to be called as Modal. Is there a ...
1
vote
0answers
37 views

QGIS MapCanvas with Round Border

I have a canvas within a QWidget (also tried QFrame) which uses a stylesheet: border: 2px solid black; border-radius: 10px; The stylesheet looks great in the designer, but as soon as I put the ...
1
vote
1answer
139 views

QGIS custom Form - How to bind a value from a QComboBox?

I am trying to build a custom form for field data collection (bird species) with some python logic. The python code inserts values into a QComboBox: At the beginning of the list it adds the twenty ...
1
vote
1answer
159 views

QGIS plugin: Problems importing resources (resources_rc) file - plugin doasn't load - PATH problems?

I'm building qgis plugin and I can't find solution for this error. File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 478, in _import mod = _builtin_import(name, globals, locals, ...
0
votes
0answers
39 views

How to create custom input widget using Plugin builder?

I am trying to develop a plugin that takes in user input for the time, using the QGIS plugin builder. However, I want to specify the different times the user is allowed to select from when the plugin ...
1
vote
0answers
65 views

QGIS Project: where to put CORE_Export definition in Visual studio 2010

I am trying to develop a QGIS application with the following setup: OSGE4W qgis Libs QT 4.8.5 Windows 7 Visual Studio 2010 I have all the references setup in VS, but am not sure where define the ...
1
vote
1answer
89 views

How to add multiple attributes to a newly created feature with PyQGIS

I am creating a form for updating the attribute values of the newly created feature. But when i am updating the values only one attribute field is getting updated. So if i want to update the multiple ...
2
votes
1answer
141 views

Adding new menu item to QGIS Desktop app

I need to add new menu item to the top level menu of QGIS Desktop (2.7.0); I.e. it shall be on same level as "Project", "Edit", "View", "Layer" etc. As far as I know there is pretty nice way how hide ...
1
vote
0answers
40 views

How to change the attribute values of the feature using the custom feature form

When i am using the following command it opens the feature form with all the fields: qgis.utils.iface.openFeatureForm(qgis.utils.iface.activeLayer(), f) But i want to open a feature form with the ...
0
votes
1answer
115 views

How to position the Qwidget form/QDialogBox in the left corner using python programming

1) I am creating a Qwidget Form or QDialogBox using QT Designer. I am using the following code to move the form: sDialog.move(50,450) But i want to fit the dialogBox to fit in the left corner.How ...
0
votes
0answers
81 views

How to best get Qt Designer for QGIS plugin development on Mac?

I'm using QGIS 2.6.1 on Mac OSX 10.9.4, trying to create a plugin as described in the PyQGIS Programmer's Guide. I have the plugin 'skeleton' (main widget with header and ok/cancel buttons) running in ...
2
votes
1answer
111 views

Layer properties dialog in my QGIS plugin

I am developing a plugin which should display some information like geometry of the layer, feature count etc. Now those are currently displayed in QMessageBox.information. I want it to be displayed ...
1
vote
1answer
70 views

How to make rectangle selection on QgsMapCanvas?

I have this code for create and open raster map: if(QFile::exists(rasterFileName)) { QFileInfo myRasterFileInfo(rasterFileName); m_pRasterLayer = QSharedPointer<QgsRasterLayer>( ...
1
vote
1answer
237 views

How to change the values of the push buttons in QT designer [closed]

I am using the standard dialog box with ok and cancel options.i Have also added one more button exit. self.dlg.show() result=self.dlg.exec_() print 'The result is',result it is ...
3
votes
1answer
164 views

How to create a clickable hyperlink in a QGIS form?

I have a hyperlink field in my table. I wish I could go to those addresses without using actions. I want to go directly from the form by clicking on them as happens in a hyperlink. It is possible? ...
4
votes
1answer
219 views

QGIS Standalone C++ Application with Qt: “The program has unexpectedly finished”

I'm trying to develop an Standalone Application with Qt and QGIS API. There are several code examples that should work, but they don't. The Problem is that everytime I use "QgsApplication" the ...
4
votes
2answers
211 views

Is there a GIS-Tool that fit my needs? [closed]

I´m working on a GIS-Project in the Defense & Intelligence sector. The goal was to develop/create a GIS-Service that: stores and manage GIS-Data (Map data, Height data.. ) has a repository for ...
1
vote
0answers
170 views

With QGIS, why use QT Designer tools for creating Slots/Signals/ etc, if plugin coding can do it alone

I am curious why there is facility within QT Designer to create signals and slots as, to my surprise, I did not need to do this. All of the necessary coding was accomplished completely within the ...
1
vote
0answers
44 views

How to find QGIS or QT or Python object definitions

I am attempting a simple plugin, on QGIS 2.6, using the available QT Designer installed I have successfully loaded a plugin, and can display a dialog box with widgets, within, and now attacking ...
1
vote
1answer
225 views

With QGIS Plugin Builder, receiving “ImportError: cannot import name”

While doing a first-time attempt to craft a simple plugin, I ran into the above error. I am using QGIS 2.6.0 for windows, the QT Designer that comes with that package, and the plugin builder plugin ...
2
votes
0answers
47 views

How to actually add the path to a file conatining a photo on a QT form using QGis/Postgis/Postgress

Simple newbie question as I have just designed my first QT form, after a frustrating afternoon search unsucessfully for the answer, help please. I have a spatial table in postgress, loaded into QGis, ...
0
votes
0answers
59 views

Syntax Error in qgsapplication file

I am trying to test an QGIS application code example. However, when I try to compile it, it is reporting errors in qgsapplication.h which is coming with the source code of QGIS. I am using QTCreator ...
3
votes
2answers
138 views

QGIS Installation on Windows

I'm newbie to QGIS and to this forum. I want to develop application using Qt on QGIS to real time updation/mapping of a symbol using GPS co-ordinates. Initially i have installed QGIS on Windows 32 ...
2
votes
1answer
104 views

QGIS Plugin development version compatibility

At this time latest QGIS version is 2.4 , QT Version is 5.3.1 and PyQT5.Are these version compatible with each other ? Once QGIS 2.4 is installed , how does one know which version of QT and PyQT(and ...
2
votes
1answer
259 views

Add band to GDAL VRT dataset and convert to TIFF

I'm trying to add a band to a TIFF dataset by converting it to a VRT format and using the AddBand() function, then convert it back to a TIFF to access the band and write the data. Here is an example ...
1
vote
2answers
163 views

GDAL Application crashes when loading GDAL drivers

I'm developing on QT an application that uses GDAL library (which I compiled using MinGW 4.8). When I use the application on my windows 8 laptop, it works fine, but when I tried using it on several ...
2
votes
1answer
205 views

How to add buttons to QT ui for qgis feature forms to loop through attributes?

I'm looking for a bit of guidance. I'm happy creating a standard feature form using QT designer (as excellently documented here) for QGIS but I was wondering how you add a forward and back button to ...
3
votes
1answer
100 views

Referencing Qt UIs external to plugin with python

I'm developing a plugin that sets up a working environment for a user: loading layers (from db), applying styles and several custom designed (Qt) UI files etc. Primary user interaction is in the ...
2
votes
1answer
296 views

How to use Threads in PyQgis, mainly to keep UI active?

I'm trying to develop a plugin, which does heavy computations and as a result, user interface becomes inactive. I know that I should use threads to keep the UI alive (specifically, I have a progress ...
1
vote
1answer
302 views

How to populate a combobox with layers in TOC?

I am developing a plugin, and I want user to select one of the loaded layers from a combobox. I've already coded this much: self.dlg.show() layerlist = [] self.dlg.ui.layerCombo.clear() # ...
0
votes
0answers
121 views

QGIS custom form and autocompleted data entering with “validation check”

In Qt-Designer I created a custom form where I can choose serveral species names in two different combo boxes. This combo boxes are linked via "value relation" to the accordant non spatial tables ...
0
votes
1answer
153 views

Building with MinGW 4.8

I'm working on a project where we would like to add QGIS features to an existing Qt application. The Qt application has been built with Qt5.2.1 using MinGW 4.8 and thus I think I need to build QGIS ...
2
votes
1answer
55 views

In what ways has QGIS 2.x API changed making Plugin Builder Tutorial invalid?

I am working on the QGIS workshop Tutorial for QGIS Plugin Builder and notice that it is for QGIS 1.1. As this seems like a popular tutorial, in general, what are some areas of this tutorial that need ...
0
votes
1answer
335 views

QT Designer form - Combobox stores value but doesn't display it

I have a custom form created with QT Designer on which I have several comboboxes among other stuff. All the fields have the correct names corresponding to the database. One of these comboboxes has a ...
0
votes
1answer
162 views

Duplicate values in combobox in QT Designer form

I have a custom form created with QT Designer on which I have several comboboxes among other stuff. All the fields have the correct names corresponding to the database. But something weird and ...
1
vote
1answer
97 views

Problems with connecting QDateEdit and QTimeEdit widgets to corresponding Field in QGIS Layer (shp/spatialite)

Could anybody give me a hint how to connect the QDateEdit and the QTimeEdit widgets with a field in a QGIS layer (shp or spatialite). The fields in the QGIS layers are from datatype "date" ...
0
votes
1answer
284 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 ...
1
vote
0answers
173 views

How to create a spatial view when allowing multiple selection in qgis’s edit widget “value relation”?

I've a point layer in qgis and serveral non spatial tables in a spatialite database. In qgis the fields were filled using the edit widget "value relation" (multiple selection allowed for some fields). ...