0
votes
1answer
11 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 ...
1
vote
1answer
28 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
46 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
0answers
25 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 ...
0
votes
0answers
19 views

QGIS Widget for data entry. Many fields based off 1 combobox

I have used QGIS for a while now but have just started getting into creating widgets for data entry. I want to know if there is a way to create a widget that will auto populate 2 or 3 other columns ...
0
votes
0answers
31 views

What does it entail to move Qgis to Qt 5.0 [duplicate]

What does the work entail to move QGis to Qt 5.0? Is there a road map for this? Ok, I agree that the above question can be interpreted as a duplicate, see Can I use Qgis with Qt5 Some of the ...
0
votes
0answers
23 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" ...
2
votes
1answer
125 views

Binding between qgis custom form (qt designer) and date/time field in a spatialite database table

For my attribute table I created a custom form in qt designer. The table has a date field and a time field. In qt designer there are widgets for entering date and time. But what data type is expected ...
0
votes
1answer
70 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
71 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). ...
0
votes
2answers
72 views

What kind of QT widget is the QGIS drawing area?

I mean when open QGIS , and add a vector layer or other type of data. The content will show on the "Drawing Area", i want to ask, the drwaing area is some type of widget or just in the QMainWindow? ...
0
votes
0answers
48 views

can't Find file chooser widget in QTdesigner for QGIS file name edit widget custom form

I designed a custom form (*.ui) for my shape file under QT Designer. I want the user to choose a file through a QGIS "file name" widget but I can't find the control in QT designer. Regards,
3
votes
1answer
48 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 ...
0
votes
0answers
232 views

Trying to make QT + QGIS working

I'm mostly a Java programmer, I worked on C++ many years ago, and knowing this my project manager has asked me to create a little app in Qt that can open a shape file, using QGIS. But I'm encountering ...
0
votes
0answers
18 views

how to remove MiddleButton double click event from qgsmaplegend?

I want to remove the MiddleButton double click event from the qgsmaplegend using qgis python plugin. I am developing the plugin in qgis api 1.8 with python 2.7. i tryed to install an event filter : ...
0
votes
0answers
13 views

Loading a saved pqt (saved composer file) with python in a QT Plugin

I'm working on a plugin for QGIS. The aim is to make the interface easy to use for my customer that never used GIS before. So I wanted to know if there is a easy way of opening the composer and then ...
0
votes
1answer
77 views

Pull pixmap image source from ui edit text in QT

I'm putting together a custom form for QGIS identify using Qt Designer. One attribute has a file name to the accompanying photo of the feature. I'd like to have the photo label in the form grab the ...
1
vote
1answer
89 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
120 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 ...
0
votes
1answer
151 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 ...
0
votes
1answer
88 views

connect signal to function with arguments

Hello I have this function on python that take 2 arguments: def niveau(controName,idNiveau): ........ I want to connect it to this signal: ...
0
votes
0answers
114 views

QGIS and QT How create a custom form with qt disigner, display custom photography by point and a print button for print the form

I create a form with qtDisigner for Qgis. I want to display in the form a custom photography by point on the map (1 point = 1 tree on the map) paths of photography is different for each point. I have ...
0
votes
1answer
130 views

QGIS plugin WORKS under Windows but NOT under Linux. How to get fîle path properly under Linux?

I am currently working on a QGIS plugin which depits node to node discreet flows. Let' say adaption of Tobler's Flow Mapper to QGIS. Plugin currently tested and working under Windows. But not under ...
1
vote
2answers
458 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...
5
votes
1answer
496 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()) ...
4
votes
1answer
243 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 ...
0
votes
2answers
247 views

Run function if item in QComboBox is selected

I got another issue writing a plugin to convert three shape files into an .obs input file. I created a UI (Qt) with a QComboBox to select a layer (that works fine). As soon as one of the layers in the ...
1
vote
1answer
159 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 ...
2
votes
0answers
154 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" ...
1
vote
1answer
2k 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 > ...
2
votes
0answers
241 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.
2
votes
1answer
429 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
1answer
301 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 ...
5
votes
1answer
1k 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 ...
0
votes
1answer
155 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 ...