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
4
votes
1answer
93 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
1answer
77 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 ...
0
votes
0answers
15 views

QGIS Plugin to show data from Postgres Database using PyQGIS , QT Table Widget

I'm trying to build a plugin in QGIS 3.0 which will load a table from Postgres DB and show the data in QtableWidget using PyQT and PyQGIS. I have created the form in QT designer : In my main plugin ...
4
votes
0answers
47 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 ...
0
votes
1answer
78 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 ...
1
vote
0answers
48 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 ...
2
votes
0answers
131 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
0answers
50 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 ...
1
vote
0answers
49 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 ...
2
votes
1answer
223 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
0answers
47 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?
1
vote
1answer
133 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 ...
5
votes
2answers
174 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
0answers
96 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
1answer
1k 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 ...
0
votes
0answers
55 views

QT Designer widget add gis data

Is there some way for QT Designer to browse for only GIS data, much like the QGsFileWidget. I need the user to be able to select only .shp, .sqlite, and features in .gdb or .gpkg files. There used ...
1
vote
0answers
16 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
0answers
67 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 ...
0
votes
0answers
51 views

QT Designer SIGSEGV on Debian 10 and VirtualBox

Recently I updated my development virtual machine (VirtualBox) from Debian 9 to Debian 10. Except for a few minor bumps along the road, everything went smooth. But when I try to run QT Designer I got ...
2
votes
2answers
126 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
0answers
161 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 ...
0
votes
1answer
36 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
0answers
39 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 ...
2
votes
1answer
417 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 ...
2
votes
1answer
58 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³?
1
vote
1answer
44 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. ...
2
votes
1answer
64 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 ...
1
vote
1answer
62 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 ...
0
votes
0answers
138 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 "...
3
votes
3answers
276 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 ...
2
votes
0answers
45 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 ...
2
votes
1answer
122 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 ...
3
votes
0answers
91 views

Plugins that works with high resolution screens

I've written a plugin for QGIS (GeoDataFarm) and I've been using QT creator for all ui files of the plugin, which have worked fine for me. However, I just got an email from someone that tested my ...
2
votes
1answer
69 views

Select layer by attribute using expression qtcreator/pyqgis

I'm trying to make a function like ArcGIS's select using Python 3.6 , QGIS 2.8.6 and QtDesigner, so this is my code: def execute(self): layers = self.iface.legendInterface().layers() ...
2
votes
1answer
377 views

How do I call the objects created with QtDesigner (or QtCreator) in my code in python? Where is this information in python? PyQt4 please

Where can I find a good documentation on how to refer (to call) to the Dialog created with QtDesigner? For example, a buttomBox (or any other) just created. I’m trying to make a plugin, but the ...
4
votes
2answers
506 views

QGIS 3.6 picture in ui form (Qt5 Designer)

I'm facing trouble with display a picture in a ui form based on a field (path). With the autogenerate form it works but when I try with a personalized form I cannot see the picture. I tried with a ...
4
votes
1answer
240 views

Making Upload button for shapefile in QGIS plugin?

I am new to Plugin Builder and creating my first plugin called NearestNeighbour. The below is GUI of my plugin made using Qt Creator I read in this link that it is important to rename Dialog Box, ...
1
vote
1answer
141 views

How to get QGIS canvas in plugin window? [closed]

I'm working on project where I need insert QGIS canvas as a widget in QGIS plugin. When user click on button it should be loaded into widget. Something like this, this is example where satellite map ...
1
vote
0answers
125 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
25 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
71 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
162 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
124 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
1k 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
354 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
289 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 ...
1
vote
0answers
103 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 ...
8
votes
2answers
1k 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
1k 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 ...
3
votes
1answer
2k 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 ...