3

In QGIS 3.8 I would like to export the code/structure of my data-forms.

I have created them via the "drag-and-drop"-surface.

enter image description here

Does anybody knows a solution to export it (as an xml- or ui-file)?

2
  • 2
    You can save any costumization of your data as .qml-file - this is true for the data-forms, too. Would this suite your needs?
    – Erik
    Commented Dec 19, 2019 at 12:32
  • Thank you very much :-) Commented Jan 3, 2020 at 11:09

1 Answer 1

3

At the bottom of the layer properties window there's a small dropdown menu called style. When choosing save style you may save symbology, labelling, and e.g. data forms - short, any customization you did - to a .qml file. This file may also be used to add the customization to any other layer of the same feature type, though some things like data forms only make sense, if the attribute table of that layer has the same columns.

Pro tip: If you're lazy, you may use set as default in order to save all your customizations of the layer to its current storage location with one click, without having to navigate there or typing in names. Downside: This doesn't let you choose which parts of the customization are to be saved and which are to be left out.

enter image description here

3
  • Can Qt Designer use the qml files? it seems to only allow UI files. I want to take the form designed using the drag and drop designer in QGIS, into Qt Designer to modify it further and then bring it back into QGIS. Is this possible?
    – GeorgeC
    Commented Mar 9, 2022 at 9:40
  • 1
    @GeorgeC this is a whole new question, I suggest you ask it separately.
    – Erik
    Commented Mar 9, 2022 at 9:54
  • done, see gis.stackexchange.com/questions/425638/…
    – GeorgeC
    Commented Mar 9, 2022 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.