Results 1 to 2 of 2

Thread: QListView scrollbar movement on mouse hover at the edges of the listview

  1. #1
    Join Date
    Jan 2013
    Posts
    25
    Thanks
    2
    Platforms
    Windows

    Default QListView scrollbar movement on mouse hover at the edges of the listview

    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.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QListView scrollbar movement on mouse hover at the edges of the listview

    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).
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. about the mouse movement on the touchsceen LCD
    By huzl in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 9th March 2012, 13:45
  2. Creating a Tooltip-like widget for mouse-hover of QListView items
    By TropicalPenguin in forum Qt Programming
    Replies: 4
    Last Post: 26th November 2011, 05:14
  3. Replies: 10
    Last Post: 11th July 2011, 09:06
  4. free movement in QListView
    By Algos in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2010, 04:08
  5. Game mouse movement
    By chaosgeorge in forum Qt Programming
    Replies: 1
    Last Post: 2nd December 2006, 23:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.