-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
ListView / GridItem (QQuickItemView) header and footer properties have a Component type. This is not consistent with classes from Qt Quick Controls (ApplicationWindow, Page, Dialog) and it's confusing.
There's not much sense for it to be a Component, since it is always instantiated anyway and you have a single one, unlike delegates.
Could we make it so that the footerItem property is writable to avoid having to use a Component?
typical usage: have a TextField as the header for filtering a ListView
If I want to retrieve the TextField text I have to do like so:
pattern: listView.footerItem.text
I would like this to be more explicit (and type safe? footerItem is of type Item, it's not supposed to have a text property), like so:
pattern: mySearchTextFieldId.text
That is currently not possible with a Component.
Maybe for Qt 7: make header and footer Item and not Component
For Gerrit Dashboard: QTBUG-117607 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
513195,4 | QQuickItemView: Make headerItem and footerItem writable | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |