Questions tagged [qt-designer]
Qt Designer is a tool for designing and building graphical user interfaces (GUIs) from Qt components.
132
questions
4
votes
1
answer
51
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
108
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
80
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 ...
0
votes
0
answers
118
views
Can't add custom widget to pyqgis plugin using Qt Designer (ModuleNotFoundError)
I have created a pyqgis plugin using Plugin Builder. I have a UI file (my_dialog.ui) containing the custom widget description (generated with promoted widget in Qt Designer) :
<item row="0&...
2
votes
1
answer
61
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
184
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
193
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 ...
0
votes
0
answers
425
views
ImportError: QtWebEngineWidgets must be imported or Qt.AA_ShareOpenGLContexts must be set before a QCoreApplication instance is created
I want to load a simple HTML code in my plugin. But when I want to use QtWebEngineWidgets in Pyqt, Qgis shows the following error.
ImportError: QtWebEngineWidgets must be imported or Qt....
0
votes
0
answers
33
views
QgsDockWidget content gets "squashed"
I designed QgsDockWidget in QtDesigner and it looks like this:
But when the plugin is started all the content gets messed up:
What can be the possible reason for such behavior? I set minimumSize ...
2
votes
0
answers
127
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 ...
0
votes
0
answers
54
views
Adding N-M related field on custom ui-file form in QGIS
I have two tables without geometry fields, but are related as an N-M relationship:
Jobs:
id, name....
Types:
id, type....
Jobs_Types:
job_id, type_id....
A Job record is a project with a bunch of ...
2
votes
0
answers
64
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
0
answers
120
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
231
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?
4
votes
0
answers
145
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
280
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
477
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
1k
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
544
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
393
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
363
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
286
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
270
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
1k
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
48
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
151
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 ...
5
votes
2
answers
2k
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
128
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
635
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
231
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
336
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
1k
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
278
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
108
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
3k
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
167
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
297
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
2k
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
85
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?
2
votes
1
answer
958
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
682
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?
1
vote
1
answer
447
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
11k
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
70
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 ...
0
votes
0
answers
121
views
QtDesigner is not starting for qgis bat file
The qt-designer.bat file did not launch the QtDesigner. I have tried the file available with OSGeo4W64 installation but the qt-designer did not starts.I also try to start the qtdesigner from the ...
2
votes
2
answers
688
views
PyQT5 - How to use QCompleter, QGIS Plugin
I'm trying to use QCompleter to get something like in the image. The code seems pretty simple, but in my dialog nothing happens.
Is there some problem in this code?
The dialog is created using Qt ...
1
vote
0
answers
422
views
How to retrieve text from a QLineEdit in a tabifyDockWidget
I've write a plugin that calls a tool when a certain push button in my tabifyDockWidget is clicked. When the comboBox button is clicked it works perfectly carring the comboBox.currentText() to the ...
1
vote
1
answer
204
views
Compile error in creating QGIS QT Designer UI file
Working on my first attempt with QGIS QT Designer I am trying to compile my UI file. I am using Python27 found inside my QGIS installation (purposely not using QGIS v3 at this point). I am using ...
1
vote
0
answers
76
views
Adding a tab to the QGIS project properties
I would like to know, if there is the possibility to add new tabs to the QGIS project properties? (for example, under the "QGIS Server")
The goal is to have the advanced options of a QGIS plugin ...