Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qt-designer]

Qt Designer is a tool for designing and building graphical user interfaces (GUIs) from Qt components.

1
vote
0answers
29 views

Changing the field colour/design on a QGIS 3 QT attribute form?

I have problems with changing the physical appearance of a custom attribute form (QGIS 3, Windows 7). A custom attribute form can be designed, for use in QGIS, using QT / QT Designer. In QT Designer ...
1
vote
0answers
13 views

How to pull in and push out text browser?

I am using Qt designer to create a plugin in Qgis3. I want to add description of a tool beside the tool. For this I have tried using 'Text Browser' by connecting it with button. I am able to hide and ...
1
vote
0answers
27 views

How is QT designer used to implement radio buttons for a QGIS field

I have a custom data form, created using QT Designer, for interacting with a particular layer on QGIS. A simple line-edit widget on such a form (as with most other form widgets) requires that the ...
2
votes
0answers
44 views

QGIS not binding value from field to widget in my custom form (Qt Designer)

I have created a custom form in QT Designer with a QSpinBox and a QLineEdit. I named the objects the same as the column names so that qgis can bind the values. Added the .ui to a layer. The widgets ...
1
vote
1answer
59 views

Making Qt designer form annotations show up in print composer?

Firstly, I am a QGIS novice, and even less so with QT Designer. I was able to figure out how to use QT Designer to make a QGIS Form Annotation. It sync's well with my data, but I have a problem with ...
1
vote
1answer
217 views

QGIS - QTableView or QTable widget in custom form

I've made a custom ui form for entering data in a GIS database built with PostgreSQL and QGIS. This is a relational database and I use the Relations properties in QGIS to implement this relations (one-...
2
votes
1answer
146 views

from qgis.gui import QgsMapCanvas - ModuleNotFoundError: No module named 'qgis'

I created a form with QT Designer, then converted it to a .py file. An error occurs with the line import : from qgis.gui import QgsMapCanvas. It's not recognized. How can I resolved this error in ...
3
votes
1answer
77 views

Can't open Qt Designer with qgis-designer.bat

I'm trying to open Qt Designer using the qgis-designer.bat file, but I'm receiving the following error message Windows cannot find 'designer.exe'. Make sure you've typed the name correctly, then ...
0
votes
0answers
100 views

QT Designer: Cannot load library C:\…\designer\pyqt5.dll: The specified module could not be found

I have a standard network installation of QGIS3. When I open QT Designer from the standard location where it installed with QGIS, I see the following error by selecting the menu "Help" and then ...
0
votes
0answers
22 views

How to use qgis customization.xml code in my gui?

I want to use the code under customization.xml file to use in my gui designed in QtDesigner. For instance in Data Source Manager | Delimited Text in QGIS there is a window: I want to use this ...
1
vote
0answers
70 views

QtDesigner shipped with QGIS 3 doesn't show svg's in resources

In the QtDesigner shipped with QGIS 3 svg's and jpg's are not shown in the Resources window nor as icons on widgets: QtDesigner from QGIS 3.2: svg's example jpg's example QtDesigner from QGIS 2.18 ...
5
votes
2answers
504 views

No custom widgets in Qt Designer for QGIS 3

There are no custom widgets in my "Qt Designer with QGIS 3.0.3 custom widgets". Is it a bug or I should somehow manually enable them?
2
votes
2answers
499 views

Python GUI for QGIS plugin ; 'ModuleNotFoundError: No module named…'

I am overhauling my QGIS plugin to work with QGIS 3.0. I have hit a problem relating to the importing of custom forms created using the Qt Designer. In the old version (which worked, with QGIS 2.x) I ...
4
votes
1answer
381 views

Autosize custom form window to its content

I've created several custom forms using Qt Designer. My problem is that when I open a form, its window size remains the same as the size of the window of the last form I opened. For example, let's say ...
1
vote
0answers
312 views

Unable to store comboBox value via QLineEdit ('list' object has no attribute 'setText')

I am trying to create a QGIS custom form which allows users to select a value (name) among others in a comboBox, and saves said value with its corresponding code (taken from another table in the ...
1
vote
2answers
213 views

Debugging Global name ''QgsMapLayerComboBox' is not defined?

I try to develop little plugin for Qgis. I used custom widgets in QT that comes with QGIS 2.18 and loaded QgisMapLayerComboBox. But when I reload my plugin in QGis it gives me an error: 2018-01-...
3
votes
2answers
165 views

PyQGIS/QGIS2.18 : Store checkbox state as boolean in database (PostGreSQL 9.3)

I would like to store the information about whether a checkbox is checked or not in a boolean column in my database (running on PostGreSQL 9.3). I'm using a custom form, and the corresponding checkbox ...
2
votes
2answers
385 views

PyQt - merge selected features function

VERSION QGIS 2.1x i realize plugins to do this actions without use toolbar: copy features / paste to layer / merge selected features => define attribute to use in merge. So, all is okay but i don't ...
2
votes
1answer
315 views

QGIS 2.18 : Choosing path of file for Python init function

I'm using a custom feature form for QGIS 2.18 (custom .ui file + custom Form.py file containing the Python init function used by the form). I would like to be able to put the .ui file and the Form.py ...
6
votes
2answers
2k views

How to compile QtDesigner user interface (.ui) and resource (.qrc) files with QGIS 3 on Windows?

I tried to transpose the QGIS 2 process with no success. I first had to edit C:\Program Files\QGIS 2.99\etc\ini\python-core.bat which contains references to Python27 instead of Python36. I run C:\...
7
votes
1answer
279 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 ...
8
votes
2answers
181 views

Colouring attribute/field on QGIS data form based on value?

Using QGIS (2.14) is it possible on the data form for an attribute to have a colour (or other formatting) based on its value? For example if my data has a field 'quality' which has a value 'good' or ...
1
vote
0answers
175 views

How to fill multi combo box in pyqgis?

I want to select raster layers by a GUI, so I designed a form by Qt designer that can add raster layers in 5 combo boxes. I want when a user select first raster layer in first combo box, and then user ...
1
vote
0answers
56 views

Keep dialog displayed while processing

I'm working on a plug-in for QGIS and I'm a bit stuck on a problem with my dialog (realized on Qt Designer). Indeed, I added a progression bar wich seems to work, but I can't really check this ...
2
votes
1answer
286 views

Python traceback at QGIS startup with QgsMapLayerComboBox in Plugin

I created a QGIS (2.14.8 LTR) plugin gui with QtDesigner and I would like to use a QgsMapLayerComboBox, cp. screenshot below (selected widget, settings at the right). At QGIS startup, when loading ...
2
votes
1answer
342 views

How do I make a file dialog for a custom forms that does the same thing as the autogenerated URL selector?

I used QT Designer to build a custom form for attribute entry. One of the attributes is for storing a file path of a permit document as a string. With the auto-generated forms, there was a URL ...
1
vote
1answer
216 views

Python GUI for QGIS plugin ; how to reference form controls in code? [closed]

I've been going around in circles with this for a few hours so hopefully someone can help. I am familiar with VB, C# but not Python - and struggling to do something fairly simple. I have created a ...
0
votes
1answer
42 views

Edited Plugin not Loading new version

I have edited a GUI in QT of a plugin and made changes to the code. Have exported the correct ui.py files and files paths within the python elements of the plugin, look to be correct. However, I ...
1
vote
1answer
581 views

How to create “multiple layer selection” with Qt designer?

could anybody help me out? I want to create a multiple selection box (like you can see when you click on the processing saga tool "Merge vector layers") with the Qt designer.
1
vote
1answer
66 views

Plugin Builder Load data [duplicate]

I am trying to re design a plugin to run multiple iterations of data loaded from a file. I am using QT creator to develop the GUI. How would I design a load data input box so users can select a data ...
2
votes
1answer
711 views

import Map from QGIS into QT Designer

I am looking for a way to get a map from QGIS into QT Designer. I have the QT Designer version that comes with QGIS, meaning i have all the standard QGIS Widget. I don´t see a map widget, but many ...
1
vote
0answers
649 views

decimals and commas in QGIS - how to display in Qt designer form

I use Qt designer, create a new form, add several line edit (qLineEdit) widgets, rename them the same as the fields in a QGIS attribute table, and save. In QGIS I associate the new .ui file in Layer ...
1
vote
1answer
174 views

Connect Qt DoubleSpinBox to PyQGIS script

I have done a python script and I want to change the '1.0' value on pas15 with the value that is set in the double spin box, but I can't find the way to do it. Any idea? self.dlg.doubleSpinBox....
1
vote
0answers
147 views

Scroll for qgis custom form

I made form in qt designer for QGIS. But there are a lot of fields in It and It can't placed in screen. I want to add scroll area in my qt designer form but It doesn't work as scroll doesn't appear. ...
2
votes
0answers
412 views

This extension is corrupted : No module named qgscollapsiblegroupbox

I'm building a QGIS plugin, and I am making the GUI using Qt Designer. Whenever I am using one of the "QGIS custom widgets" (in the present case, a QgsCollapsibleGroupBox) in my plugin window, it ...
2
votes
1answer
365 views

How to connect QtDesigner with python console on QGIS

I've created a script with python console on QGIS and an interface for my plugin with Qt Designer with QGIS 2.14.0 custom widgets. I would like to connect my sript with the interface but I can't find ...
3
votes
1answer
324 views

How to use Qt3 Support widgets in QGIS plugin?

Similar to this post: My plugins crashes with “No module named qgsprojectionselectionwidget” in Windows. Except I would like to also use Qt3 Support widgets (in particular, a Q3ButtonGroup). However, ...
2
votes
1answer
455 views

How to filter out layers with QgsMapLayerComboBox?

I am using Qt Designer 4.8.5 to develop a plugin (with QGIS 2.14.3-Essen). I recently started to use QgsMapLayerComboBox widgets instead of the conventional Combo Box widget. However, I want to ...
2
votes
1answer
300 views

Qt Designer and QGIS, using relation references

I have made my own form in Qt Designer and connected it to QGIS. One of my fields is a relation reference. But the text doesn't fit in the combo box. You can see it in the picture. I tried to ...
1
vote
0answers
216 views

QGIS Qt Designer set current date and time in mask

I have created an input mask for QGIS using the Qt Designer. Everything works fine but I have a small issue with the date, the time and the date/time edit widget. Is there any way to display the ...
1
vote
1answer
196 views

Why changes made in QtDeisgner form not shown in QGIS plugin gui?

I have created a plugin in QGIS 2.10.1. After making some modifications in the ui file in Qt Designer and reloaded the plugin or restarted QGIS or restarted the pc these are not incorporated. I cannot ...
8
votes
2answers
2k views

How can I add a second Toolbar Button and Dialog to a QGIS plugin built with Plugin Builder?

I want to create a toolbar with 2 buttons, each button opening a different form. The steps I followed are: Created a plugin using Plugin builder Created a toolbar with 2 buttons by doing the ...
1
vote
1answer
216 views

checkbox in qgis

Please, help me, maybe I do something wrong? I create form in Qt disigner for QGis table. And i made there CheckBox. Then in QGIS Properties I noted that it's a checkbox and loaded on the created form....
5
votes
2answers
1k views

How to populate QTableWidget via plugin?

I am attempting to populate a QTableWidget by adding rows, this is done by the user clicking on the add button: I have the following code to try and insert rows but nothing is happening: def ...
3
votes
1answer
437 views

How to connect QgsMapLayerComboBox to QgsDataDefinedButton

in Qt Designer there is the possibility to use directly QGIS custom widgets. In the UI I added a QgsMapLayerComboBox (to get the layers added in the legend) and a QgsDataDefinedButton. What I would ...
1
vote
0answers
254 views

QGIS plugin 'Module' object has no attribute 'classFactory'

I am trying to learn how to make QGIS plugins and have been trying to follow tutorials such as this one; https://anitagraser.com/2014/04/26/getting-started-writing-qgis-2-x-plugins/ but I keep ...
1
vote
2answers
666 views

Advanced forms with QT designer

I have a QGIS project where a SHP-layer contains the IDs of plots besides vector data. I want to create a form with QTDesigner which enables me to enter the contact information of the landowner(s) ...
1
vote
0answers
243 views

How can I connect qt ui with qgis, which browse the data file? [closed]

I have created a form in qt designer which is basically a dialog box with line edit and a browse button to browse .csv files. I am trying to connect this with QGIS so that as soon as a layer is ...
2
votes
1answer
57 views

Return several layers from listwidget

I am new to python and I am writing my first plugin that add selected layers from a listwidget to QGIS. So good so far, but it does not allow me to select several layers at once. Am I missing ...
1
vote
0answers
158 views

QGIS QT .ui not displaying attribute table value

Following tutorial 6.3.6, Creating a New Form (the first introduction of Qt designer). Seems very basic. Create a point layer with two attributes: name (text 80) and age (text 80). Then in QT ...