[Qgis-user] Custom forms with subform
Andreas Neumann
a.neumann at carto.net
Mon Oct 15 08:02:08 PDT 2018
Hi Carlos,
Subforms are possible. But only in "Drag and Drop Designer" mode. Not so
easy with your custom UI file from Designer - maybe it would work, but
then most likely it would require python coding.
First, you have to establish table relations in your project:
Menü Project --> Project Properties --> Relations.
Then you go to your layer properties --> Attribute form tab. Instead of
choosing your custom UI file, switch to Drag and Drop form mode.
After switching to drag and drop designer mode, there are now three
columns:
- The available widgets --> in the lower parts you can see the relations
you defined in the step above
- The Form layout: Tabs/Sections/Groups
- The selected widgets properties
Hope this helps.
Andreas
On 2018-10-15 16:21, Carlos Dávila wrote:
> I have created a custom form using Qt Designer for one layer, which works like a charm. Now I want to add a subform to display features of another layer linked by a relation, but I can't find the way to do it. Is it possible to accomplish this?
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181015/658eb808/attachment.html>
More information about the Qgis-user
mailing list