New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy/paste style category "Form" is missing some settings #45146
Comments
The source of the issue is that the information about default values is stored in the "Fields" category even if in the properties dialog it is editable in the "Forms" tab, I'll check how this can be fixed but I'm afraid it could potentially break existing code (e.g. from plugins). |
The categories of the copy/paste do not exactly match the tab I guess. It might make sense to group the two categories into a single one? |
Probably a good idea. From a user perspective i think it is expected that the categories match the tabs (same name, same icon etc.). There isn't much information stored in the "Fields" tab right now, it's just the flags IIRC. |
yes, exactly. I have no strong opinion. I think this can be reduce to the question: would there be a case where it makes sense to copy only fields or only forms. |
@elpaso @3nids thanks for looking into this and the workaround (= copy/paste All Style Categories).
Would be great, here's an attempt to map the current situation (not entirely sure about everything, also might be that Custom Properties, Geometry Options and Relations are also having an equivalent): |
I just had the experience to break my project, due to the confusing bug, that the constraint & default values are not stored in the Forms subcategory. So I copied half of the information and later on, the data, which was collected in the field was complete rubbish.. I would appreciate a lot, if I copy the Forms-style information from one layer to another, that everything I configured is copied. |
Note: |
What is the bug or the crash?
Copy/paste style category
Form
is missing some settings, e.g. the Default value for Text Edit Widget type.Steps to reproduce the issue
Form
settings for layer testdata with form in layer properties: The field GN has a Default valueForm
settings from layer testdata with form using the layer contextmenu: Styles -> Copy Style -> FormForm
settings to layer testdata using the layer contextmenu: Style -> Paste Style -> FormForm
settings for layer testdata in layer properties: The Default value for field GN is missing.Versions
Supported QGIS version
New profile
Additional context
Some other form settings are also missing, e.g. the
Constraints
.The text was updated successfully, but these errors were encountered: