Skip to content

QEP 409: Attribute Form QML Widget Editing Capabilities#364

Open
nirvn wants to merge 1 commit intoqgis:masterfrom
nirvn:qml_editing
Open

QEP 409: Attribute Form QML Widget Editing Capabilities#364
nirvn wants to merge 1 commit intoqgis:masterfrom
nirvn:qml_editing

Conversation

@nirvn
Copy link
Contributor

@nirvn nirvn commented Feb 1, 2026

This QEP proposes to add editing capabilities for attributes form QML editor widgets.

Since 2018, users have gained the ability to add QML widgets to enhance their attribute forms. These widgets have so far been read-only and used to display feature attributes through QML scenes utilizing QML items such as graphs.

While this is a great addition when using feature forms to read features, the QML widgets could be even more useful if they would allow for feature attribute editing.

Proposed solution and benefits in attached QEP.

@nyalldawson nyalldawson added In Discussion QEPs currently in discussion stage Project A proposal which concerns a project, eg new functionality labels Feb 17, 2026
{
Q_OBJECT

Q_PROPERTY( QgsAttributeFormContext context READ context NOTIFY contextChanged )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Q_PROPERTY( QgsAttributeFormContext context READ context NOTIFY contextChanged )
Q_PROPERTY( QgsAttributeEditorContext context READ context NOTIFY contextChanged )

It's QgsAttributeEditorContext or am I mixing something up?

The object itself will be able to be expanded in the future to add more
functionalities if need be.

Note that the `QgsAttributeFormContext` class is already a `Q_GADGET`, which
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be able to provide default value and constraint information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

In Discussion QEPs currently in discussion stage Project A proposal which concerns a project, eg new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants