Skip to main content

Questions tagged [qt-designer]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 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 ...
aogino's user avatar
  • 13
0 votes
1 answer
77 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....
kopi's user avatar
  • 451
0 votes
1 answer
76 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 ...
pyjamajedi's user avatar
0 votes
1 answer
44 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\...
Dennis's user avatar
  • 43
0 votes
0 answers
40 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 ...
LaiaE's user avatar
  • 1
2 votes
1 answer
86 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 ...
geofreak's user avatar
  • 121
2 votes
1 answer
69 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 ...
geofreak's user avatar
  • 121
2 votes
1 answer
137 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 ...
LeasMaps's user avatar
  • 737
5 votes
1 answer
153 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&...
emanas's user avatar
  • 113
1 vote
0 answers
210 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 ...
BenStone's user avatar
  • 333
1 vote
0 answers
121 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 ...
GISJess's user avatar
  • 125
2 votes
1 answer
138 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 ...
GISJess's user avatar
  • 125
3 votes
1 answer
430 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 ...
GeorgeC's user avatar
  • 8,238
6 votes
1 answer
240 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 ...
wanderzen's user avatar
  • 2,140
2 votes
0 answers
143 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 ...
Anne's user avatar
  • 21
2 votes
0 answers
80 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 ...
Javier Aguilar's user avatar
1 vote
1 answer
246 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 ...
cm1's user avatar
  • 2,280
0 votes
1 answer
337 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?
Guichete's user avatar
6 votes
0 answers
239 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 ...
GeorgeC's user avatar
  • 8,238
4 votes
1 answer
414 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 ...
Marcelo Franco Patané Júnior's user avatar
1 vote
0 answers
645 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. ...
Ravindu's user avatar
  • 61
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): ...
ähmöhm's user avatar
3 votes
1 answer
845 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 '+' ...
GallPeters's user avatar
0 votes
0 answers
465 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-...
Mart1999in's user avatar
0 votes
1 answer
454 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 ...
noclueGIS's user avatar
0 votes
1 answer
471 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 ...
IKindaNeedAHand's user avatar
1 vote
1 answer
371 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 ...
user104475's user avatar
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 ...
Linda's user avatar
  • 341
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.
BallpenMan's user avatar
  • 1,217
0 votes
0 answers
58 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 ...
nurgasemetey's user avatar
2 votes
0 answers
203 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 ...
M-Rick's user avatar
  • 476
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 ...
Newton Monteiro's user avatar
0 votes
1 answer
152 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 ...
wanderzen's user avatar
  • 2,140
3 votes
1 answer
795 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. ...
AFK's user avatar
  • 33
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 ...
Cinouna's user avatar
  • 135
3 votes
1 answer
488 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 ...
Kumar Nadarajah's user avatar
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 ...
Orienteerix's user avatar
1 vote
1 answer
329 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 ...
Bandidot's user avatar
3 votes
0 answers
141 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 ...
GIS_lounge's user avatar
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 ...
paul.barioul's user avatar
1 vote
0 answers
189 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 ...
GIS_py's user avatar
  • 483
2 votes
0 answers
424 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 ...
Mefimefi's user avatar
  • 586
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 ...
thesunnyscientist's user avatar
1 vote
1 answer
116 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?
Ana's user avatar
  • 59
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 ...
GeoGyro's user avatar
  • 1,656
6 votes
2 answers
831 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?
Javier Garcia's user avatar
2 votes
1 answer
618 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....
Florian H.'s user avatar
1 vote
1 answer
13k 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 ...
camilo8888's user avatar
1 vote
0 answers
95 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 ...
GIOVA.A88's user avatar
  • 189
0 votes
0 answers
135 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 ...
Alloylo's user avatar
  • 223