Questions tagged [qt-designer]
Qt Designer is a tool for designing and building graphical user interfaces (GUIs) from Qt components.
137
questions
0
votes
1
answer
31
views
QGIS - catch return keypress on one qplaintextedit widget form
I'm certain this or similar has been asked here many times. I searched for it, but could not make the answers work.
During editing, I use a form which primary aim is to reduce mouse interaction during ...
0
votes
0
answers
42
views
Plugin class has no attribute
I'm working on a QGIS plugin and I named my plugin class "ModelGenerator". I've added a QCheckBox (named checkBox) in Qt Designer and I saved it to the .ui file. When calling this checkBox ...
0
votes
1
answer
96
views
Opening second window from first one for QGIS Plugin development via Python
I know, there are several posts about this specific topic (e.g. how to open second window in my plugin for QGIS?), but I am still struggling with some problems.
I have developed a plugin for QGIS 3.34....
0
votes
1
answer
88
views
Link my QGIS script with Qt Designer GUI
I would like to create a graphical user interface for my QGIS python script. I downloaded the Qt-designer, but am not sure how to connetc my script from QGIS with the Qt-designer.
I would like to ...
0
votes
1
answer
81
views
How to display an image in a UI custom form created with QtDesigner in QGIS 3.28
I created a custom form with QtDesigner. For the image in the form I used a QLabel and added the path of the picture to the "pixmap" attribute. The path is
C:\Users\Dennis\Desktop\Formulare\...
0
votes
0
answers
56
views
Run specific Python script (created with Model Designer) when pushing a button in Qt Designer
Let me start by saying my Python knowledge is very, very limited.
I created three models using the Model Designer in QGIS, and exported them as python scripts. Then I used the Plugin Builder and Qt ...
2
votes
1
answer
109
views
Self-made attribute mask in QGIS and current_value() function
I'm working on a QGIS-Project and I tried to design my own formmask/attributemask with QT Designer. I use QGIS 3.28.12
Most of the Mask works perfectly fine, except for two things.
The second of which ...
2
votes
1
answer
70
views
Implementing self-made attribute mask doubles combo boxes in QGIS
I'm working on a QGIS-Project and I tried to design my own formmask/attributemask with QT Designer. I use QGIS 3.28.12
Most of the Mask works perfectly fine, except for two things.
One of which I'm ...
3
votes
1
answer
204
views
Set up a file filter in QT Designer for QGSFileWidget
How would I set a file filter for QGSFileWidget for multiple file types, xlsx, csv etc
I've worked out where:
But I'm unsure what the string needs to look like - what separator to use etc?
I'm new to ...
5
votes
1
answer
195
views
Connecting signals to different functions based on combobox selection
I'm working on a Qgis plugin (using QT Designer). The goal of the plugin is, depending on the combobox, clicking on a button will launch different functions.
For example, choosing "Images - WMS&...
1
vote
0
answers
223
views
Styling the UI elements of Qt Designer through Plugin in QGIS
I am trying to style the UI elements built through Qt Designer(drag-drop) via the plugin for QGIS.
I have tried to import 'style.css' to the plugin main file, but it is not reflecting the changes in ...
1
vote
0
answers
123
views
QGIS Plugin: Running progress bar within basic plugin which was created in Qt designer, how to run proportional to processing steps and close dialog
I am trying to run my plugin with a progress bar. The progress bar I have added was created in Qt designer (name: progressBar) and currently just runs independently to my processing steps:
from PyQt5 ...
2
votes
1
answer
162
views
Running progress within QGIS plugin which was created in the Qt Designer
I am trying to run my plugin with a progress bar. The progress bar I have added was created in Qt designer and looks like this:
The name of the bar in Qt designer is "progressBar" and I ...
3
votes
1
answer
497
views
Connect QgsMapLayerComboBox to QgsFieldComboBox and get text inputs
I've used the Plugin Builder tool to create the template python code. In QT Designer I have added a QgsMapLayerComboBox and QgsFieldComboBox
I have gone through a couple of tutorials and checked the ...
6
votes
1
answer
257
views
Embbeding QgsLayoutDesignerInterface in plugin widget using QtDesigner and PyQGIS
Following the example of getting the QGIS canvas in a plugin window (as described here), I'm trying to add the QgsLayoutDesignerInterface into a plugin widget.
My goal is to simply display (no edit ...
2
votes
0
answers
153
views
Value Relation not working in custom UI form
I have an issue similar to the one here below, that was never answered it seems : QGIS 3 Value Relation current_value() not working in custom ui form
Daniel on the question above described the issue ...
2
votes
0
answers
81
views
Relations in QGIS
I have the following relationship implemented in Postgres
I have designed the following form for QGIS in QT Designer for save project
What I can't find is how to save the many-to-many relationship ...
1
vote
1
answer
292
views
Set QComboBox to disabled on form load based on feature attribute value
I am trying to display a QGIS 3 custom form combobox (QComboxBox) as disabled/greyed-out on initial form load based on an attribute value. The custom form was created with Qt Designer 5.15.2.
I can ...
0
votes
1
answer
376
views
Qt designer personalized forms in QField
Is it possible to use a form made in Qt Designer in the QField app?
The form works properly in QGIS but I don't see it when I try to open the project in QField?
6
votes
0
answers
263
views
Transfer QGIS form from Drag and Drop Designer to QT
I want to take the form designed using the drag and drop designer in QGIS, into Qt Designer to modify it further and then bring it back into QGIS. Is this possible?
As per
Saving QGIS form design ...
4
votes
1
answer
437
views
QgsFileWidget mandatory field in QWizard issue
I'm trying to create a mandatory QgsFileWidget in a QWizard form for a plugin but the result is a Next button that doesn't get active when I choose the path to save the project. Here is the snippet of ...
1
vote
0
answers
699
views
Convert .ui GUI file to python with QGIS Plugin Builder
I am using the QGIS plugin builder 3 with Qt Designer to create the GUI for my plugin. I've got a basic GUI done with QtDesigner and I need to dynamically populate a container in my GUI using python. ...
0
votes
1
answer
2k
views
Loading and writing CSV file in QTableView with Python 3.10 for QGIS Plugin
I know there are a lot of similar questions... but I can't implement them.
How can I load a CSV file and write that into a QTableView?
My first step was to browse it.
def select_input_file(self):
...
3
votes
1
answer
916
views
Dynamic parameters in Qt Designer
Started building my first plugin in qgis and looking for a way to create dynamic widget in pyqyt and Qt designer which allow user to add or delete parameters as much as he want (something like a '+' ...
0
votes
0
answers
492
views
Create multiple Window Plugin with Python for QGIS
What is the smoothest way to design a multiple Windows Python Plugin for QGIS. Should I create multiple Qt-Designer Windows and try to conect them, or is there a way to create the Windows in one Qt-...
0
votes
1
answer
471
views
Accessing variables and functions from QGIS in Qt Designer
When I am using the QGIS built-in formula to create a formula (for QField), I can use functions and access variables like now() or $y:
How can I access them using Qt Designer?
I want to display the ...
0
votes
1
answer
515
views
Creating custom forms (and custom triggered forms/events) for QField
I'm seriously lost. In QField website, it says that custom forms (at least that Drag and Drop from designer forms are supported) as well as this thread: QField - create a form for multiple, 1:n photos
...
1
vote
1
answer
404
views
N:M relation in QGIS with custom form in Qt Designer
The manual: https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/attribute_table.html#creating-one-or-many-to-many-relations describes how to create a N:M relation and how to use it with ...
4
votes
1
answer
1k
views
Populating QTableWidget with CSV file using PyQGIS [closed]
I've managed to populate a QTableWidget with data stored in a database with the code below:
self.cur.execute("""SELECT column1, column2, column3, column4 from schema.table WHERE ...
2
votes
1
answer
2k
views
PyQT plugin window is always smaller than when run in QGIS
I'm making this plugin and it's big as seen in the screenshot below
However, when I open it in QGIS, it's small and it's troublesome to keep adjusting the size.
0
votes
0
answers
62
views
Why QGIS installs QT related plugins?
I dread installing QGIS because this additionally always installs QT Assistant, QT Designer, QT Linguist. Any reason behind it?
I don't use any plugins but sudo apt install qgis forces to install ...
2
votes
0
answers
223
views
How to create group boxes in a QGIS custom form using Qt Designer?
I am trying to create a custom form for QGIS using Qt Designer.
Let's say I have a field which uses relational values. I want these values to be checkboxes. I can do it easily with the included form ...
6
votes
2
answers
3k
views
Getting directory path from QgsFileWidget using PyQGIS
I use Plugin Builder and Qt Designer to create a plugin on QGIS.
I would like to export a PDF file with results of processing. I try to use QgsFileWidget, to get the directory, but I cannot connect ...
0
votes
1
answer
158
views
Zooming to feature selected from QListWidget using PyQGIS
I have displayed in a QListWidget several features ranked according to their values from a field named "CODE". Based on this list I would like to select a feature and after a click on a ...
3
votes
1
answer
838
views
Image Adding Problem to QGIS Plugin GUI with Qt Designer
I'm using QGIS 3.1 and I created a plugin. Finally, I want to add a image(.png) to my plugin's GUI with Qt Designer. But when I add it, QGIS gives an error when it opens and my plugin does not work.
...
5
votes
1
answer
237
views
Target a specific attribute table
I'm new to PyQGIS and I'm stuck here.
So I've created a ComboBox so the user could select which layer he wants to work with. Everything's fine so far. I've also added all layers but now I'm having ...
3
votes
1
answer
512
views
QGIS - Change project variable using a dropdown menu
This is my first time in trying to develop any automation within the QGIS environment.
I am trying to change a user defined project variable – DMA select – programmatically.
The changed project ...
5
votes
1
answer
2k
views
How to use all QGIS 3 custom widgets in Qt Designer?
For example, QGIS 3.4 has various custom widgets such as QgsFieldValuesLineEdit and QgsColorWheel (and later versions have even more widgets) but they are not listed in the QGIS custom widgets list of ...
1
vote
1
answer
357
views
How can I use a custom .ui file (widget) as a popup in qgis2web?
I am exporting a map with qgis2web with popups. I have seen that I can make attributes and their labels show up on the popups. The problem is that I want to add a custom widget I created in QT ...
3
votes
0
answers
151
views
How to make buttons work from second window in my QGIS plugin?
I'm trying to develop a QGIS plugin. I already created a second window. In that second window, there are several buttons that I need them to work. I can't say I'm a programmer that's why I don't ...
4
votes
0
answers
4k
views
Problem with font size depending on screen resolution - QT
I developed a QGIS plugin by designing the interface with QT Designer.
The inferface appears correctly on my computer (left image).
However, on some computers, I encounter size problems, especially ...
1
vote
0
answers
191
views
Problem compiling ui to python for a QGIS 3 plugin
I've created a .ui using QT Designer for a QGIS 3.10 plugin called 'bhlayers' which has a docking widget to the right. When I used the: pb_tool deploy command it didn't seem to translate the .ui to ...
2
votes
0
answers
442
views
QtDesigner/QGIS 3: Which widget to use for multiple selections in ValueRelation?
I created a field of type ValueRelation allowing multiple selections in PyQGIS. Everything works as it should in the attribute table (see here for example). Now I'm trying to create a custom .ui in ...
4
votes
1
answer
3k
views
Connecting Qt GUI to python code in QGIS Plugin
I am completely new to PyQGIS/PyQt and am having lots of trouble getting started. I have managed to create my base dialog box like so:
The (automatically generated) code for the dialog is:
import os
...
1
vote
1
answer
119
views
QGIS plugin window - formatting error
I am new using QGIS plugins. I used QtDesigner to build a plugin window with some buttons. But when I open this plugin in QGIS all the formatting is gone. Any idea what is happening?
3
votes
1
answer
1k
views
Display a list field in a custom form with QGIS and Qt Designer
I'm building a form with Qt Designer and I want to show attributes of my table when I interrogate an object. I design this form with a .ui file.
With integers and strings fields I'm using QLineEdit ...
6
votes
2
answers
859
views
Qt Designer forms and QGIS [closed]
How can you link a qtdesigner form from the QGIS itself, and to call a code made from the console?
2
votes
1
answer
657
views
QGIS Widget on Qt Designer Mac
I would like to use a QGIS custom widget in a UI window on Qt Designer for Mac. I only have the Qt widgets and cannot find a way to see the QGIS widgets.
I have Mac OS Mojave 10.14.6, Qt Creator 4....
1
vote
1
answer
14k
views
return the text entered in a QTableWidget
I am creating a plugin in Qgis and I need to enter values to a QTableWidget through the interface, but I cannot find a function that returns them to me.
I do not do it with a LineEdit because I need ...
1
vote
0
answers
96
views
image.png problem in Qt design
I made a python plugin for qgis 3.4 and I built the interface in Qt design.
I have the problem when I insert an image.
I create a Label in qt design and configure the directory on pixmap, on Qt design ...