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
1answer
41 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
1answer
62 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
1answer
153 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
0answers
40 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
1answer
67 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
1answer
45 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
2answers
371 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
0answers
47 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
1answer
295 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
1answer
576 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 ...
3
votes
2answers
1k 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 ...
2
votes
1answer
898 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
1answer
653 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 ...
2
votes
2answers
160 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 ...
3
votes
1answer
1k 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
2answers
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
1answer
336 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 ...