Skip to content

Relations always show the "+" button even when the child table is read-only (as defined in the QGIS project properties) or a view #4640

Description

@gioman

Description

I have a project with two 1:n relations.

In the first one the child table is a postgresql view, which is read-only by definition.
In the second the child table is a postgresql table which has been set as read-only in the QGIS project properties.

In MM App no features can be added or edited directly in this tables/views or when passing from the relation widget, as expected, BUT...

when navigating the form for the parent table, when one of this relations is shown, the "+" button is always shown... and indeed by pressing it it will open the form as it would for a table that is editable. This also happens for the view.

I believe this should not show when the child is not editable... also because in QGIS Desktop this works as expected... in the meantime...

Is there a way to hide the "+" button, for example the same way as the "nogallery" trick?

Application (+ app version, build, operating system)
2026.3.2 Android 16.

Steps to reproduce
See above.

Screenshots

Image Image Image Image

"+" button should not be there

Image

by pressing it MM App allows to add a feature to table that is read only (or even a view)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions