Results 1 to 2 of 2

Thread: Custom ScrollBar

  1. #1
    Join Date
    May 2013
    Thanked 7 Times in 7 Posts
    Qt products
    MacOS X Unix/X11 Windows

    Default Custom ScrollBar

    I have a scrollbar with stylesheet which removes the arrow but I would have the same scrollbar like that one :
    You can see the scrollbar on the bottom right.
    Since that needs 2 image : background + handle, stylesheet can't be used since background-image is not supported on the scrollbar.
    Is it possible to bypass the scrollbar of the stylesheet to have a custom scrollbar everywhere ?
    I have read QStyle should be used in case like that, is it true ? What is the best way to have the good result ?
    Thanks for the help

  2. #2
    Join Date
    Jan 2006
    Graz, Austria
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Unix/X11 Windows

    Default Re: Custom ScrollBar

    A QStyle can certainly do a lot more things than style sheets can do.

    Just put a scrollbar in a designer form an preview it with the available styles or look into the widget gallery.


Similar Threads

  1. ScrollBar
    By A9am in forum Newbie
    Replies: 5
    Last Post: 8th November 2011, 07:23
  2. How to make QtreeWidget's custom check, uncheck and Scrollbar
    By santosh.kumar in forum Qt Programming
    Replies: 0
    Last Post: 17th August 2010, 12:23
  3. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 21:23
  4. ScrollBar
    By damodharan in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2010, 15:50
  5. Scrollbar
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2007, 08:33


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.