I have created/designed an attribute form window in the Layer Properties - Attribute Form using "Drag and drop"-designer for a polygon shapefile.
UPDATE: If I use "Autogenerate", the Attribute form window is resizable.
However, in that case, I can not benefit from several columns leaving me with a lot of scrolling. I have compared the 2 different qml-files (one saved with "Drag and drop" and one saved with "Autogenerate"). But I'm not able to detect where/how/if it is possible to tell QGIS that the window should be resizable within the qml-file.
The number of fields (attributes) will differ for different shapefiles. It may be 10, it may be 50.
I have organized the attributes by collecting the Species into a Group Box called "Arter" with 4 columns. (It looks a little bit strange since the "default" qml-file was made with ALL species, but in most cases, 8-50 species occurs, and the columns are populated from the left and then downwards in QGIS)
Since the number of species present varies, the Attribute form window that appears when digitizing can get quite big, actually too big even if I set to 5 columns in the Group box "Arter". The Cancel and the OK button is not visible on the screen and I'm unable to resize the window.
Is it possible to:
- tell QGIS the attribute window should be resizable
- set the width of the Text Edit widget and the Range widget to reduce the width of the "columns" in the Group Box "Arter"
in the Attribute Form or in the qml-file?
E.g. somewhere near/in the qml-file:
<attributeEditorContainer name="Arter" groupBox="1" visibilityExpressionEnabled="0" visibilityExpression="" showLabel="1" columnCount="5">
Or setting the width for TextEdit and Range?
The range is from 0-7 and the widget could be more narrow: one digit doesn't take much Space.
<field name="nye_arter">
<editWidget type="TextEdit">
<config>
<Option type="Map">
<Option value="false" name="IsMultiline" type="bool"/>
<Option value="false" name="UseHtml" type="bool"/>
</Option>
</config>
</editWidget>
</field>
<field name="Akeleie">
<editWidget type="Range">
<config>
<Option type="Map">
<Option value="true" name="AllowNull" type="bool"/>
<Option value="7" name="Max" type="int"/>
<Option value="1" name="Min" type="int"/>
<Option value="0" name="Precision" type="int"/>
<Option value="1" name="Step" type="int"/>
<Option value="SpinBox" name="Style" type="QString"/>
</Option>
</config>
</editWidget>