Questions tagged [qt4]

Qt is a cross-platform application development framework.

Filter by
Sorted by
Tagged with
7
votes
1answer
290 views

Fixing headings for QGIS custom widgets in Qt Designer

I use custom Qt widgets like QgsMapLayerComboBox for my QGIS plugin, laying the whole thing out in Qt Designer. Using those requires fixing headings in .ui file as described here. Unfortunately I have ...
5
votes
1answer
538 views

PyQGIS toggle group visibility (and recursively subsub…group visibility)

I would like to set visibility of a layer group and all of its children (and grand-children and so on...) using PyQGIS (QGIS 2.14.1). Assume the groups name is g0 with subgroups g0[1...n] and subsub.....
1
vote
1answer
476 views

setHeaderData not working in a QgsAttributeTableModel?

I want to display the content from a layer in a new view I have so far a code like below (you should have 2 columns at least, then, just try in the QGIS Python console replacing mylayer_id) from ...
2
votes
1answer
188 views

Custom data entry form (.ui) crashes qgis

I'm using Linux Mint 17.2, qgis 2.8.1 and have also tried this on 2.10: Made a simple form using qt4 designer The field names match those in the attribute table used the properties page of qgis ...
1
vote
0answers
196 views

QGIS interface very slow on OSX

I'm running QGIS version 2.8.1-Wien QGIS code revision Compiled against Qt 4.8.6 Running against Qt 4.8.6 Compiled against GDAL/OGR 1.11.2 Running against GDAL/OGR 1.11.2 Compiled against ...
3
votes
2answers
1k views

Auto populate field as concatenation of other fields

I'm searching for a way to automatically combine several field values entered in the feature edit dialogue, resulting in a new column comprised of the former values. I have, say fields A, B and C ...
2
votes
1answer
76 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 ...
3
votes
1answer
191 views

Purpose of “myPlugin_dialog.py” file created by QGIS Plugin Builder

I usually use QGIS Plugin Builder to create working templates for QGIS plugins. While a generic Python plugin needs the files below; __init__.py metadata.txt resources.py (translated from resources....
4
votes
1answer
932 views

lookup forms in QGIS

Bit of an open question but.... Is it possible to design a form in qt designer that will be used as a form against a qgis layer but interacts with a different table in postgres/postgis as a lookup ...
0
votes
1answer
560 views

Custom Form with QTDesigner: Combine signals and slots?

I dare to ask that question here and not in the programmers section, cause i'm actually not looking for a coding answer, but a solution through the QtDesigner GUI (if possible). Custom QT-forms ...
11
votes
1answer
11k views

How do Qt Designer and QGIS work together?

I am just trying understand how qgis and designer work together. From Nathan W's excellent posts I know how to create a user form and how to hook it to a qgis layer and also how to add validation ...
1
vote
1answer
127 views

Get the ID of polygon in edition sessions of QGIS?

I did a Qt custom form for QGIS which contain a QlineEdit that must get the ID of the current polygon in edit session. For example, I start edit sessions I draw 3 polygons when the Qt form is opened ...
2
votes
1answer
965 views

View HTML field data with QT4 browers as a QGIS Run Feature Action Tool

I've successfully populated a sqlite table with an HTML-encoded-table as a field attribute, and so there is literally a Table within a single field value in sqlite, for each record. This is going to ...