Feature request #15733

improve qml API to allow filtering different layer definition sections

Added by Regis Haubourg almost 7 years ago. Updated almost 6 years ago.

Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:23655


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


#1 Updated by Giovanni Manghi over 6 years ago

  • Easy fix? set to No

#2 Updated by Regis Haubourg almost 6 years 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