Feature request #15733

improve qml API to allow filtering different layer definition sections

Added by Regis Haubourg over 1 year ago. Updated 2 months ago.

Status:Open
Priority:Normal
Assignee:-
Category:Symbology
Pull Request or Patch supplied:No Resolution:
Easy fix?:No

Description

QML API currently saves the whole layer definition which leads to caveats in project handling.
One is that saving multiple styles in a layer will save form definition inside one style.
When it is nice to be able to save whole layer definition for backup purposes, form section should be unique for a layer, no matter how much styles are stored.

See [[http://osgeo-org.1560.x6.nabble.com/Changing-layer-style-also-changes-edit-forms-is-that-on-purpose-td5291726.html]] for reference

History

#1 Updated by Giovanni Manghi 9 months ago

  • Easy fix? set to No

#2 Updated by Regis Haubourg 2 months ago

  • Description updated (diff)

After some brainstorming with Matthias and QWAT's folk, this would help a lot to easily customize and get projects in sync.

What is expected :

- add subentries in the "style" to save only forms / labels / styles / metadata etc..
- display the style title outside of the style widget, so that users know permanently what style is being used.
- store a name in exported QML and give feeback when loading a new style (a qgs messagebar for instance) + rules for ensuring unique style naming

Also available in: Atom PDF