Results 1 to 8 of 8

Thread: how to hide slider bar on the QScrollBar

  1. #1
    Join Date
    May 2008
    Posts
    58
    Thanks
    2

    Default how to hide slider bar on the QScrollBar

    Hi all,

    Could you give me some thoughts how to hide the slider on the QScrollbar?

    Thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: how to hide slider bar on the QScrollBar

    Why would you do so? How about disabling the scroll bar?
    J-P Nurmi

  3. #3
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to hide slider bar on the QScrollBar

    Quote Originally Posted by yxmaomao View Post
    Hi all,

    Could you give me some thoughts how to hide the slider on the QScrollbar?

    Thanks
    QScrollBar has setVisible(bool) method...

  4. #4
    Join Date
    May 2008
    Posts
    58
    Thanks
    2

    Default Re: how to hide slider bar on the QScrollBar

    setVisisble means hide all QScroll bar, but for me I just want to hide the slider bar on the QScroll Bar

  5. #5
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to hide slider bar on the QScrollBar

    ans then how will u catch the changes in the scrollbar ?

  6. #6
    Join Date
    May 2008
    Posts
    58
    Thanks
    2

    Default Re: how to hide slider bar on the QScrollBar

    yes, I can catch changes
    but my problem is how to hide the slider on the scroll bar

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: how to hide slider bar on the QScrollBar

    What is the use case? Why would you like to have a scroll bar with no handle?
    J-P Nurmi

  8. #8
    Join Date
    May 2008
    Posts
    58
    Thanks
    2

    Default Re: how to hide slider bar on the QScrollBar

    that is my special usercase
    Now I have done this, my method is to make the scroll bar's handle image with the same backgound
    just a trick, looks like handle disappeared -

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.