Questions tagged [qgis-custom-widgets]

qgis custom widgets are a set of widgets used in qt environments esp. in the qgis context e.g. for selecting layers, crs'es etc. available in qgis

Filter by
Sorted by
Tagged with
0 votes
1 answer
73 views

Adding custom panel to QGIS

How can I add a custom panel to QGIS using Python? For example, I want to add a panel that has a button that opens a dialogue box to choose a folder and a list in which all the tif files in the folder ...
user172775's user avatar
0 votes
0 answers
22 views

QgsMessageBar in Qt Creator

By default Qt Creator does show the list of QGIS Custom Widgets - but not the QgsMessageBar. I can make it work inserting it directly in the Code View using something like but really would like to ...
geraldo's user avatar
  • 960
0 votes
1 answer
137 views

Correct way to specify Inputs and Outputs for QGIS processing scripts that use custom widgets?

Processing scripts do not allow parameter inputs to be changed by other parameter inputs. This can be overcome by defining a custom widget which does have the desired interactions, then using a '...
Alexei Y's user avatar
0 votes
0 answers
44 views

QGIS - Working in the attribut formular with Widgets

I want to transform my attribut formular for biotopes to add automatically their value depending on two former columns. I have an excel table like this: Code rating1 rating 2 value A dry species-...
Geographika's user avatar
8 votes
1 answer
301 views

Sorting values in Unique Values widget in QGIS

In QGIS 3.24.3 I have a GeoPackage table containing a text field "box_id". Within its Layer Properties > Attributes Form page I have assigned it a Unique Values widget type as shown here: ...
Stu Smith's user avatar
  • 8,192
6 votes
1 answer
600 views

Sorting drop down lists in value relation widget in QGIS

I have some attributes in my data and want to enable the user to pick values from drop-down lists. The values of the drop-down list change depending on the chosen value of the previous field(s). The ...
Nil's user avatar
  • 1,492
0 votes
1 answer
201 views

Open a new map view with PyQGIS [closed]

I'd like to use PyQGIS to open a new map view with its own map canvas & coordinate system. This seems like a very basic questions but I can't find any information about it! I suppose I can somehow ...
corvus's user avatar
  • 526
3 votes
1 answer
125 views

Is it possible to access embedded layer QWidget from QGIS Console?

My goal is to get access/control to QWidget state from QGIS Console. For example, to be able to trigger QPushButton.click() event. Is there a method to get reference to QWidget (in particular ...
Basile's user avatar
  • 3,543
1 vote
1 answer
674 views

QGIS - QML/HTML-Widget access Data from other layer

Is it possible to access data with a qml/html-widget of a other layer? I want to show specific fields, which are stored in a second layer in some kind of table. I'm unsure where or how to begin. If it'...
basto's user avatar
  • 152
1 vote
0 answers
121 views

Is there any possibility to make a drop down list of a table in PostGIS using QGIS

I am trying to create a droplist table filter by id class in PostGIS so that when I start editing in QGIS it will appear as a droplist table with the values or descriptions as I put them in the table. ...
Rizah Murseli's user avatar
2 votes
1 answer
911 views

Show ValueMap values based on value of another field in QGIS widgets

I'm applying a Value Map widget to two text fields in my layer. The two fields are as follows: I have a hierarchy consisting of Landcover, and under that Landuse, where the color is code for the ...
HDunn's user avatar
  • 8,616
3 votes
1 answer
131 views

Automatically uncheck Boolean field depending on current year

I'm preparing QGIS for field work. We want to check on street lamp posts. I have three columns: "Checked" (type Boolean) "last checked" (type string, contains only the year of the ...
sn1ks's user avatar
  • 2,962
1 vote
2 answers
1k views

Opening hyperlinks (URLs) from QGIS HTML widget

I recently got aware that you can now create a custom HTML widget by which you can replace the regular attribute form when you click the Identify features button in QGIS. As far as I can see it is a ...
kwiwe's user avatar
  • 409
1 vote
0 answers
88 views

Customize color pallets widget

I use some color palettes (1) that I added through QGIS settings and I would like to know if it is possible to customize how these palettes are displayed in the Layers Properties or any popup widget ...
geofausto's user avatar
  • 723
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
2 votes
1 answer
951 views

Build Radio Button in QGIS Edit Widget Properties

My question is similar to Choosing multiple options from QGIS Check Box or Value Map for feature attribute? I have 3 categories in a row, I want to make this selection in form of radio button so that ...
Khadijah Nas's user avatar
5 votes
2 answers
2k views

How to use QGSFileWidget to save file?

I am writing a QGis 2.18 plugin. I am designing the plugin with QT, using QGis widgets. I can use QgsFileWidget to open file, but I did not find how to use it to save file. If I try to define an ...
Bruno von Paris's user avatar
3 votes
1 answer
1k views

How to use QT QGis custom widget in a plugin?

I am writing a new plugin for QGIS 2.18. I can't find what are the libraries to import in my main code to access widgets such as QgsSpinBox or QgsFileWidget.
Bruno von Paris's user avatar
1 vote
1 answer
903 views

QGIS custom forms using python logic

I use QGIS and I want to work with custom forms using python logic and I try to follow this manual. In my custom qu I add one new pushButton and I want for example for educations rules to open some ...
Mar's user avatar
  • 1,129
4 votes
1 answer
815 views

Hiding column using PyQGIS

How can I hide a column in QGIS 3 using PyQGIS: In QGIS 2 it was quite simple: editFormConf = layer.editFormConfig() idx = layer.fields().indexFromName(columnName) editFormConf.setWidgetType(idx, &...
Alfredo Garcia's user avatar
2 votes
2 answers
229 views

QgsRelationEditorWidget in Custom form

I have made a custom form with a QgsRelationEditorWidget and with a QToolButton. I want to select a feature in this QgsRelationEditorWidget and press the button to open another form with this selected ...
Montse's user avatar
  • 71
4 votes
1 answer
2k views

QGIS: add a widget to a toolbar other than the Plugins toolbar

I have a QToolButton that I want to add to an existing toolbar. Using the Python Console in QGIS 2.14.12 to debug, here's the code fragment that I'm having a problems with: iface.toolButton=...
Rudy Stricklan's user avatar
4 votes
2 answers
1k views

How do I customize QGIS' Add Feature Widget?

I have a plugin that validates some of the data a user provides when adding a new feature by the build in Add Feature UI. I want to disable some of the input fields or provide some default values to ...
LarsVegas's user avatar
  • 2,526
2 votes
1 answer
368 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