Replies: 1 comment
-
@gitpydev , greetings -- it is not possible ATM to modify (i.e. rename/add/remove) vector layers' fields. We could make relevant QgsVectorLayer functions Q_INOKABLE to achieve that if needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Basically, I want to add a new field in a loaded project's layer and the features in it.
I've found out that in QGIS's QgsFields class, an "append" function is supported, but unfortunately it is not a QML callable function although the QgsFields class is registered as a meta type by qfield in its plugin system.
Is now there in qfield v3.5.0 any way to realize it?
Or if it is not possible now in v3.5.0, will there be a new API in qfield's FeatureUtils singleton for wrapping this QgsFields::append() function to expose this capability for in-plugin usage in the future?
Thanks for any discussion and reply in advance.
Beta Was this translation helpful? Give feedback.
All reactions