PDA

View Full Version : QListView scrollbar movement on mouse hover at the edges of the listview



tesmai4
11th January 2013, 11:05
I am displaying items in QListView from my model. Scrollbar is visible in my listview.

I want to move my scroll bar left or right when user hovers mouse of left or right edges of the listview.

I have enabled mousetracking for listview.

any help is appreciated.

Santosh Reddy
18th January 2013, 08:05
You need to have a custom QListView and handle the mouse move event, or can also install an event filter on the QListView to track the mouse, and then trigger the required movement on the scroll bar(s).