Provide a property to make a ListView header "sticky"

Bug #1228922 reported by Andrew Starr-Bochicchio
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

BlackBerry Cascades (their Qml toolkit) provides a "ListHeaderMode.Sticky" property that would be very welcome in the Ubuntu Toolkit. I'll let their docs describe it:

"We also use the headerMode property to customize the behavior of the header items in the list. By using ListHeaderMode.Sticky, when the list scrolls and a header reaches the top of the visible area, the header stays there (or "sticks") as the list continues to scroll, until a new header reaches the top."

http://developer.blackberry.com/native/documentation/cascades/ui/lists/lists_create_main_ui.html

The Unity8 Dash seems to have an internal component that works in a similar fashion. Maybe it could be generalized:

http://bazaar.launchpad.net/~unity-team/unity8/trunk/files/head:/plugins/ListViewWithPageHeader/

Tags: devexp
Revision history for this message
Tim Peeters (tpeeters) wrote :

is this the same as positioning the section label at start? see http://qt-project.org/doc/qt-5/qml-qtquick-listview.html#section.labelPositioning-prop

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Undecided → Medium
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Hey Tim, Zoltan.

I don't think that what was requested was section label at start, as it seems to me only the last seen label is stick at start. I guess the request (at least, the one we can find on other platforms) is this one: https://github.com/emilsjolander/StickyListHeaders/blob/master/demo.gif

tags: added: devexp
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

didrocks is correct. That's what I envisioned when originally making the request. It seems like a pretty common design pattern.

Revision history for this message
Kugi Eusebio (kugi-igi) wrote :

I think this is a great feature to add on listviews. When can we get this?

Revision history for this message
Adnane Belmadiaf (daker) wrote :

This is already possible with ListView, you can even do more complex stuff with it, attaching a full demo that explain the usage.

Can someone mark this as invalid ?

Revision history for this message
Adnane Belmadiaf (daker) wrote :

It was part of Qt Quick 2.4

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.