PDA

View Full Version : List widget with dynamic up and down arrow buttons



RolandHughes
16th June 2014, 19:36
Are there any examples of a list widget which has dynamic up and down arrow buttons instead of scroll bar? What I mean by dynamic up and down arrows is an arrow appears at the bottom of the list when there are more items below and goes away when no more remain. Same for the top.

Thanks,
Roland

wysota
17th June 2014, 09:27
It should be quite easy to implement it. Create two arrow widgets as children of the view, position them in the view's resizeEvent and make them appear/disappear based on the scrollbar value. And of course hide the scrollbar itself if you don't want it.