Results 1 to 2 of 2

Thread: Scrollbar -- how to differentiate arrows from slider itself

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Scrollbar -- how to differentiate arrows from slider itself

    It is not possible to do that directly.
    You could connect to the sliderPressed signal and set a flag in your class. Then, when you get the valueChanged signal you will now it was the result of a slider move. Otherwise the buttons were pressed.

    You should take care with user keyboard actions, since they could emit the same signals( without sliderPressed).

    Regards

  2. The following user says thank you to marcel for this useful post:

    macias (27th August 2007)

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
  •  
Qt is a trademark of The Qt Company.