[Qgis-user] Custom attribute form

Müller, Jannik J.Mueller at kreis-olpe.de
Mon Feb 2 03:07:08 PST 2026


Hello everyone,

I'm trying to create a custom attribute form for a project with the Qt-Designer. I'm able to load the .ui-file and load all the required fields. However, the project contains a few 1:N relations which I'm unable to get working with the custom UI. These relations work correctly in the autogenerated form.

I have a relation with the following name and id:

[cid:image003.png at 01DC943B.3E799910]


In the Qt-Designer I created a QgsRelationEditorWidget and set the objectName to the id of the relation:


        [cid:image004.png at 01DC943C.72E4FB30]

Am I missing something, or are there some other points i need to consider when setting up a custom relation like this?

Additionally, it seems the form i created is not "connected" to the dialog. If I change the size of the dialog, the form is not responsive. I would expect it to have like a srcollbar or something. Is there some specific configuration I need to apply to get this working?

Best regards,

Jannik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20260202/f7726f1a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5238 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20260202/f7726f1a/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 6447 bytes
Desc: image003.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20260202/f7726f1a/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 26889 bytes
Desc: image004.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20260202/f7726f1a/attachment-0005.png>


More information about the QGIS-User mailing list