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
22
questions
0
votes
0
answers
37
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-...
0
votes
0
answers
118
views
Can't add custom widget to pyqgis plugin using Qt Designer (ModuleNotFoundError)
I have created a pyqgis plugin using Plugin Builder. I have a UI file (my_dialog.ui) containing the custom widget description (generated with promoted widget in Qt Designer) :
<item row="0&...
8
votes
1
answer
194
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:
...
6
votes
1
answer
380
views
QGIS: How to sort Drop Down Lists in Value Relation Widget
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 ...
0
votes
1
answer
143
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 ...
3
votes
1
answer
104
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 ...
1
vote
1
answer
524
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'...
1
vote
0
answers
97
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.
...
2
votes
1
answer
541
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 ...
3
votes
1
answer
110
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 ...
1
vote
2
answers
912
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 ...
1
vote
0
answers
80
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 ...
5
votes
1
answer
1k
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 ...
2
votes
1
answer
832
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 ...
4
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 ...
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.
1
vote
1
answer
789
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 ...
4
votes
1
answer
761
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, &...
2
votes
2
answers
204
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 ...
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=...
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 ...
2
votes
1
answer
367
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 ...