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

6
votes
1answer
91 views

How to get info from selected object?

I am new to the Quantum Plugin development and wonder if there is more information about the following. I have added a shape file and am (off course) able to select a point from this shape file. In ...
5
votes
1answer
1k views

How to create a dropdown menu in QGIS Toolbar with Python

I Have a set of some QAction in my QGIS-Plugin and they are created and added to the toolbar like this icon = QIcon(":/action1.png") self.action1 = QAction(icon, u"Action 1", self.iface.mainWindow()) ...
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 ...
4
votes
2answers
206 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 ...
4
votes
1answer
5k views

How to reference to my in QT designer created buttons in python?

I have created an own QDialog (using QT Designer) with three push buttons. The names are pButton1, pButton2 and pButton3. After saving the file I created the ui file by using: pyuic4 ui_xy.ui > ...
4
votes
1answer
443 views

QGIS - Add a combobox to a toolbar

Is there a way to add a combobox to a toolbar for QGIS? So far I can only find examples that add buttons. I found this tutorial which seems to explain how to do this with general PyQT but haven't had ...
4
votes
1answer
180 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 ...
3
votes
2answers
136 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 ...
3
votes
1answer
863 views

How to implement signals on add or modify feature?

I've created a test plug-in in QGIS successfully, but have had a hard time implementing a signal on a vector layer event (add or modify feature). I've add this to my initGUI method: ...
3
votes
2answers
681 views

How to connect a PyQGIS plugin with Postgres?

I have some questions for you: I created a python-plugin in QGIS, then I created a Qt gui fom my plugin and at last I created a Postgres DB now I need to make a connection between Qt-gui and ...
3
votes
1answer
136 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? ...
3
votes
1answer
95 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 ...
3
votes
1answer
1k views

circle detection on binary image

My image is gray scale image which i have converted to binary by smoothing and then edge detection method. Now i want to place the circle /ellipse on edge detected. I don't know how to proceed ...
3
votes
1answer
86 views

How to create a printable data sheet when using edit widget “value realtion” in QGIS 2.0?

I created a spatiaLite Database with a point layer (every point is a tree). Additional I created several tables to fill the columns of the spatial layer with attributes using the editing widget “value ...
3
votes
1answer
601 views

Using GDAL to connect to a WFS

I'm trying to connect to a wfs using GDAL, from reading some of the (fairly sparse) documentation on this i have found that this is possible if GDAL is compiled with the correct drivers (Curl, ...
3
votes
1answer
520 views

Offline Map - QGraphicsGeo

I’ve realized a desktop application based on Qt Mobility for displaying maps and adds some landmarks in real-time (like QGeoMapObject). I've to see the track of some vehicles... I've used the code ...
2
votes
1answer
99 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 ...
2
votes
1answer
93 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
3answers
1k views

Can I use QGIS with Qt5?

I want to use QGIS with Qt 5.But i don't know the exact relationship between Qt and QGIS.Will there some problems if i use qgis with qt5 or it will not depand on it...
2
votes
1answer
297 views

How to move the QGIS Layerpanel/Dockwidget programmatically

i'm working on a QGIS-plugin and want to move the default LayerPanel/Dockwidget to somewhere else programmatically. More specific: i want to move it into a tab of my tabwidget. Is this possible? How ...
2
votes
1answer
95 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 ...
2
votes
1answer
1k views

Is it possible to query via bounding box in the Google Maps Static API?

We have a Qt program written in C++ to request wms tiles and display them. This works fine. Now we want to display imaginery from Google Maps and due to some restrictions in our program, we can't use ...
2
votes
1answer
209 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 ...
2
votes
1answer
180 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 ...
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 ...
2
votes
1answer
38 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 ...
2
votes
0answers
42 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, ...
2
votes
0answers
189 views

qgis and embedded ajax (bing map)

I need to load in a docked QWebView this html: < html > < body > < iframe width="100%" height="499" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" ...
2
votes
0answers
353 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.
1
vote
2answers
2k views

making maps using Qt

D maps using Openstreetmap data with the help of Qt. I need to use Qt specifically as other components in the software have objects that integrate into the map using Qt. How should I proceed? Can I ...
1
vote
1answer
260 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() # ...
1
vote
1answer
352 views

Connect not working for custom QGIS form

So I have a custom form for editting feature attributes. However, I can't seem to correctly disconnect and reconnect certain bindings. The init code is below and should work for any simple QT widget ...
1
vote
1answer
73 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 ...
1
vote
1answer
181 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 ...
1
vote
1answer
224 views

Count the number of symbols in a 'new symbology' renderer from pyqgis

Background : I create a lot of symbology using 'saturation' ramps - for want of a better term, e.g. where the hue and value of each symbol stays the same, but the saturation changes. I couldn't figure ...
1
vote
1answer
97 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
182 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 ...
1
vote
1answer
269 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
200 views

Buttons (Ok, Cancel) disappear in “Apri Modulo” from Attribute Table in QGIS 2.0.1

QGIS 2.0 has changed the visualisation of a form opened from the attribute table: instead of opening the form in a separate window, the form is opened in the same one. This is not a problem, but all ...
1
vote
1answer
179 views

How can I add a delete button to feature forms?

I have created some formulars in QTDesigner for capturing and manipulating data in QGIS. The data is stored in a postgis-database. It would be helpful to have a delete-button in this formulars to ...
1
vote
1answer
27 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 ...
1
vote
0answers
29 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
76 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, ...
1
vote
0answers
43 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
0answers
36 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 ...
1
vote
1answer
59 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
0answers
161 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
41 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
2answers
139 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 ...
1
vote
0answers
87 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" ...