Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Get Geometry of Inserted Point [duplicate]

Description I have a project that must create default values in fields when he is trying to insert a new feature. As shown in the figure beneath. I'm using PyQGIS 3.28 Problem In the image below, ...
Diogo Barros's user avatar
0 votes
1 answer
76 views

Geometry of recently created point

Description I am currently working on a project that requires the creation of default values in certain fields when attempting to insert a new feature. This operation is illustrated in the figure ...
Diogo Barros's user avatar
3 votes
1 answer
218 views

Set default value attributes form PyQGIS

I'm trying to change an field to a default string everytime an polygon is created in attributes form. For now I have seen Alexandro code and based on that I have something like this: layername = "...
Diogo Barros's user avatar
5 votes
1 answer
560 views

Preselecting value in relation value widget using PyQGIS

I am redesigning my years old form for collecting data in ornithologic field surveys because I finally want to update my tablet for field work from QGIS 2.8 to QGIS 3.10. One attribute contains a ...
oekoplaner's user avatar
7 votes
3 answers
2k views

Import own modules in custom forms in PyQGIS

I want to create my own custom forms using Python for QGIS, and since some of the forms will share some definitions and objects I would like to have my own classes for all of them. For that, when I ...
Luismi's user avatar
  • 1,005
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