QField
QField copied to clipboard
Option to set max number of lines shown for Widget Type Relation Editor
When using a Relation Editor type widget with a many to one relation, the maximum number of entries shown before scrolling become needed is of 4 (see image below). We would like to see this limit increased to 15 or 20.
If it's a hardcoded limit, where should I look in the code to edit this value? I suppose it has more to do with the maximum heigh of box before it becomes scrollable than with the number of entries. We might then try finding a way to fund a feature request for having the ability to change this value per widget. Thanks for any hints.
The height is defined in the widget, see here: https://github.com/opengisch/QField/blob/master/src/qml/editorwidgets/relationeditors/relation_editor.qml#L16 The tricky bit will be where to make it configurable.
@jfbourdon , you'll be happy to know this is now a project configuration that you can tweak using qfieldsync. Closing as implemented. Cheers
Documented here: https://docs.qfield.org/get-started/tutorials/get-started-qfs/#configuring-maximum-items-visibility-for-qfield