I've made a custom ui form for entering data in a GIS database built with PostgreSQL and QGIS. This is a relational database and I use the Relations properties in QGIS to implement this relations (one-to-many or many-to-many relations).
Currently, my many to many relations are shown in the custom form via a
QWidget with a dynamic property set to
qgisRelation. This display the form of the child table in my parent table.
However, I would like to have, for certain relations, a much simpler way of displaying the child table, i.e. without the sidebar and the standard buttons (add/delete child, link/unlink child feature etc.) that comes from QGIS. I'd rather have a simple table that shows just one field (the ID) of my child table with the possibility to populate the table.
Is it possible to this with
QTableWidget? Do I have to set dynamic properties and maybe add some Python code in
init function to make it work?