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
1 vote
0 answers
26 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 ...
user avatar
  • 1,981
0 votes
1 answer
68 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?
user avatar
2 votes
0 answers
23 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 ...
user avatar
  • 7,494
4 votes
1 answer
81 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 ...
user avatar
1 vote
0 answers
119 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. ...
user avatar
  • 51
0 votes
1 answer
231 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): ...
user avatar
0 votes
0 answers
40 views

QT designer form for QGIS: Adding hyperlinks

I've been scratching my head trying to make my custom form in QT designer work with QGIS. Most of the things work now and I can display the links in QGIS using the qlabel widget. However no matter ...
user avatar
  • 1
0 votes
0 answers
26 views

Qtdesigner 5.15 forms shift in Qgis 3.16 display

With previous QGIS versions I created custom forms with Qt Designer. I recently updated QGIS to QGIS 3.16 and adjusted my .ui files with the built-in Qt Designer. I noticed every time I opened a form,...
user avatar
  • 71
2 votes
1 answer
211 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 '+' ...
user avatar
0 votes
0 answers
156 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-...
user avatar
0 votes
1 answer
209 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 ...
user avatar
0 votes
1 answer
155 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 ...
user avatar
0 votes
0 answers
31 views

Whitespace in objectName for QGIS custom UI

Im trying to build a custom UI for the QGIS Feature-Form with QT Designer. To bind a Input in QT Designer to a Field in QGIS, i have to set the objectName of the QObject to the QGIS Field name. Most ...
user avatar
1 vote
1 answer
134 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 ...
user avatar
4 votes
1 answer
420 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 ...
user avatar
  • 269
1 vote
1 answer
427 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.
user avatar
  • 1,102
0 votes
0 answers
33 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 ...
user avatar
1 vote
0 answers
62 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 ...
user avatar
  • 431
5 votes
2 answers
641 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 ...
user avatar
0 votes
1 answer
72 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 ...
user avatar
  • 1,237
3 votes
1 answer
390 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. ...
user avatar
  • 33
5 votes
1 answer
151 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 ...
user avatar
  • 135
3 votes
1 answer
215 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 ...
user avatar
5 votes
1 answer
540 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 ...
user avatar
1 vote
1 answer
214 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 ...
user avatar
3 votes
0 answers
84 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 ...
user avatar
3 votes
0 answers
2k 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 ...
user avatar
1 vote
0 answers
129 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 ...
user avatar
  • 445
2 votes
0 answers
159 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 ...
user avatar
  • 526
4 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
51 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?
user avatar
  • 59
2 votes
1 answer
642 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 ...
user avatar
  • 1,273
6 votes
2 answers
467 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?
user avatar
1 vote
1 answer
291 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....
user avatar
1 vote
1 answer
7k 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 ...
user avatar
1 vote
0 answers
44 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 ...
user avatar
  • 189
0 votes
0 answers
104 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 ...
user avatar
  • 113
2 votes
2 answers
408 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 ...
user avatar
  • 985
1 vote
0 answers
314 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 ...
user avatar
1 vote
1 answer
120 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 ...
user avatar
  • 163
1 vote
0 answers
51 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 ...
user avatar
  • 457
2 votes
1 answer
2k views

How to change the particular letter color in text box using python

I need to highlight the particular letter in a text box using python. I am using the below code but it changes the entire text color in text box. Kindly suggest any other ideas. I am ...
user avatar
2 votes
1 answer
74 views

Designing text in QGIS

I want to write cubic meters in QGIS 3, I searched a lot but I didn't find any instructions. Is there a way to write cubic meters as m³?
user avatar
  • 111
1 vote
1 answer
50 views

Input Widget Class that can take values above 99

I developed a plugin in which the user can add a length of a line and than the line gets created. in QtDesigner I used a Spin Box. However, I just realized that a Spin Box takes only values to 99. ...
user avatar
  • 2,287
2 votes
1 answer
137 views

Saving QGIS form design basic functionality in .ui to modify it with QTDesigner

It is possible to save a classic Qgis form (a drag and drop form) in order to modify it with QtDesigner afterwards ? I have created a form and I just want to change a list value into a toggle button ...
user avatar
  • 95
1 vote
1 answer
155 views

Create QGIS Plugin UI with QGIS Designer - style like original tools

I developed a QGIS Plugin with QGIS Designer but my UI does not look as nice as original QGIS Tools and I was wondering if its possible to make them as good looking. Specifically, I don't manage to ...
user avatar
  • 2,287
1 vote
0 answers
263 views

Making clickable hyperlink from URL with QT Creator for QGIS custom forms?

I am creating custom forms for QGIS with QT Creator. I want to know how to make a clickable hyperlink from an URL. It is said that QT Creator can handle them directly in a QLabel if the "...
user avatar
  • 431
3 votes
3 answers
378 views

Manipulating value with toolbar

In my project, I use 3 layers with a line geometry. Every line in the layer is a contour with the same depth "valdco". For operational ease, I color these lines blue, red en orange (as seen in the ...
user avatar
2 votes
0 answers
64 views

QGIS map tile not printing some given extent in one time why?

I made a plugin in QGIS using pyqgis and qt designer to plot OSM tile in which I have one button which connects me to function in which I wrote a program to plot raster layer using param and I am ...
user avatar
3 votes
1 answer
224 views

Create tabs for the QGIS plugin interface using Qt Creator

Is it possible to create tabs for QGIS plugin using Qt Creator? (Something like the image I attached) I am trying to group the functionalities I developed for QGIS plugin and I think using multiple ...
user avatar
  • 143