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
133 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
  • 123
2 votes
2 answers
873 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 ...
Lorenzo's user avatar
  • 1,085
1 vote
0 answers
446 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 ...
Francisco Camello's user avatar
1 vote
1 answer
244 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 ...
Clutch's user avatar
  • 193
1 vote
0 answers
92 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 ...
Nunkuat's user avatar
  • 485
1 vote
1 answer
4k 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. Can you suggest any other ideas? I am using both ...
Kurinji Nathan Kumar's user avatar
2 votes
1 answer
154 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³?
User0AB's user avatar
  • 111
1 vote
1 answer
117 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. ...
DGIS's user avatar
  • 2,537
3 votes
1 answer
312 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's user avatar
  • 175
1 vote
1 answer
299 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 ...
DGIS's user avatar
  • 2,537
1 vote
0 answers
403 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 "...
M-Rick's user avatar
  • 476
3 votes
3 answers
504 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 ...
CaptainAhab's user avatar
  • 1,002
2 votes
0 answers
79 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 ...
abhinav gaurav's user avatar
3 votes
1 answer
413 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 ...
rui jiang's user avatar
  • 143
3 votes
0 answers
240 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 ...
axel_ande's user avatar
  • 2,024
2 votes
1 answer
165 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() ...
Ayoub Beltarchi's user avatar
2 votes
1 answer
1k 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 ...
Romário Carvalho Neto's user avatar
5 votes
2 answers
1k 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 ...
SYG's user avatar
  • 180
4 votes
1 answer
702 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, ...
ps1's user avatar
  • 607
4 votes
1 answer
668 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 ...
Ivan's user avatar
  • 145
1 vote
0 answers
403 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 ...
Rostranimin's user avatar
  • 2,980
1 vote
0 answers
87 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 ...
user138961's user avatar
1 vote
0 answers
174 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 ...
Rostranimin's user avatar
  • 2,980
2 votes
0 answers
250 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 ...
Egidi's user avatar
  • 3,738
2 votes
1 answer
205 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 ...
qb7's user avatar
  • 61
1 vote
1 answer
3k views

QGIS - QTableView or QTableWidget 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-...
Rexogis's user avatar
  • 125
2 votes
1 answer
747 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 ...
QTcho's user avatar
  • 71
3 votes
1 answer
517 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 ...
Ionut Ungurianu's user avatar
2 votes
1 answer
307 views

QtDesigner shipped with QGIS 3 doesn't show svg files preview 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 ...
Jochen Schwarze's user avatar
9 votes
2 answers
2k 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?
Basile's user avatar
  • 3,543
4 votes
2 answers
3k 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 ...
wotnot's user avatar
  • 419
3 votes
1 answer
5k 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 ...
Mefimefi's user avatar
  • 586
1 vote
0 answers
1k views

Unable to store comboBox value via QLineEdit ('list' object has no attribute 'setText')

I am trying to create a QGIS custom form which allows users to select a value (name) among others in a comboBox, and saves said value with its corresponding code (taken from another table in the ...
Mefimefi's user avatar
  • 586
2 votes
2 answers
358 views

Debugging Global name ''QgsMapLayerComboBox' is not defined?

I try to develop little plugin for Qgis. I used custom widgets in QT that comes with QGIS 2.18 and loaded QgisMapLayerComboBox. But when I reload my plugin in QGis it gives me an error: 2018-01-...
muszynov's user avatar
  • 647
3 votes
2 answers
447 views

PyQGIS/QGIS2.18 : Store checkbox state as boolean in database (PostGreSQL 9.3)

I would like to store the information about whether a checkbox is checked or not in a boolean column in my database (running on PostGreSQL 9.3). I'm using a custom form, and the corresponding checkbox ...
Mefimefi's user avatar
  • 586
2 votes
2 answers
1k views

PyQt - merge selected features function

VERSION QGIS 2.1x i realize plugins to do this actions without use toolbar: copy features / paste to layer / merge selected features => define attribute to use in merge. So, all is okay but i don't ...
Gaet's user avatar
  • 309
4 votes
1 answer
618 views

QGIS 2.18 : Choosing path of file for Python init function

I'm using a custom feature form for QGIS 2.18 (custom .ui file + custom Form.py file containing the Python init function used by the form). I would like to be able to put the .ui file and the Form.py ...
Mefimefi's user avatar
  • 586
10 votes
2 answers
8k views

How to compile QtDesigner user interface (.ui) and resource (.qrc) files with QGIS 3 on Windows?

I tried to transpose the QGIS 2 process with no success. I first had to edit C:\Program Files\QGIS 2.99\etc\ini\python-core.bat which contains references to Python27 instead of Python36. I run C:\...
sigeal's user avatar
  • 879
8 votes
1 answer
396 views

Fixing headings for QGIS custom widgets in Qt Designer

I use custom Qt widgets like QgsMapLayerComboBox for my QGIS plugin, laying the whole thing out in Qt Designer. Using those requires fixing headings in .ui file as described here. Unfortunately I have ...
Basile's user avatar
  • 3,543
9 votes
1 answer
961 views

Colouring attribute/field on QGIS data form based on value?

Using QGIS (2.14) is it possible on the data form for an attribute to have a colour (or other formatting) based on its value? For example if my data has a field 'quality' which has a value 'good' or ...
Rostranimin's user avatar
  • 2,980
1 vote
0 answers
342 views

How to fill multi combo box in pyqgis?

I want to select raster layers by a GUI, so I designed a form by Qt designer that can add raster layers in 5 combo boxes. I want when a user select first raster layer in first combo box, and then user ...
HMadadi's user avatar
  • 1,046
1 vote
0 answers
234 views

Keep dialog displayed while processing

I'm working on a plug-in for QGIS and I'm a bit stuck on a problem with my dialog (realized on Qt Designer). Indeed, I added a progression bar wich seems to work, but I can't really check this ...
Thomas's user avatar
  • 11
2 votes
1 answer
370 views

Python traceback at QGIS startup with QgsMapLayerComboBox in Plugin

I created a QGIS (2.14.8 LTR) plugin gui with QtDesigner and I would like to use a QgsMapLayerComboBox, cp. screenshot below (selected widget, settings at the right). At QGIS startup, when loading ...
Jochen Schwarze's user avatar
2 votes
1 answer
592 views

How do I make a file dialog for a custom forms that does the same thing as the autogenerated URL selector?

I used QT Designer to build a custom form for attribute entry. One of the attributes is for storing a file path of a permit document as a string. With the auto-generated forms, there was a URL ...
J. DeJesus's user avatar
1 vote
1 answer
359 views

Python GUI for QGIS plugin ; how to reference form controls in code? [closed]

I've been going around in circles with this for a few hours so hopefully someone can help. I am familiar with VB, C# but not Python - and struggling to do something fairly simple. I have created a ...
wotnot's user avatar
  • 419
0 votes
1 answer
62 views

Edited Plugin not Loading new version

I have edited a GUI in QT of a plugin and made changes to the code. Have exported the correct ui.py files and files paths within the python elements of the plugin, look to be correct. However, I ...
Thomas's user avatar
  • 127
3 votes
1 answer
2k views

Creating "multiple layer selection" with Qt Designer

I want to create a multiple selection box (like you can see when you click on the processing saga tool "Merge vector layers") with the Qt Designer.
Pimpel's user avatar
  • 2,353
1 vote
1 answer
102 views

Plugin Builder Load data [duplicate]

I am trying to re design a plugin to run multiple iterations of data loaded from a file. I am using QT creator to develop the GUI. How would I design a load data input box so users can select a data ...
Thomas's user avatar
  • 127
2 votes
1 answer
2k views

import Map from QGIS into QT Designer

I am looking for a way to get a map from QGIS into QT Designer. I have the QT Designer version that comes with QGIS, meaning i have all the standard QGIS Widget. I don´t see a map widget, but many ...
Lucas-H's user avatar
  • 21
1 vote
0 answers
992 views

decimals and commas in QGIS - how to display in Qt designer form

I use Qt designer, create a new form, add several line edit (qLineEdit) widgets, rename them the same as the fields in a QGIS attribute table, and save. In QGIS I associate the new .ui file in Layer ...
rjlabs's user avatar
  • 329