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
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to