Results 1 to 2 of 2

Thread: Custom ScrollBar

  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Custom ScrollBar

    Hi,
    I have a scrollbar with stylesheet which removes the arrow but I would have the same scrollbar like that one :
    https://answers.unrealengine.com/sto...586-gizmo2.png
    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
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    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.

    Cheers,
    _

Similar Threads

  1. ScrollBar
    By A9am in forum Newbie
    Replies: 5
    Last Post: 8th November 2011, 06: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, 11:23
  3. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  4. ScrollBar
    By damodharan in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2010, 14:50
  5. Scrollbar
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2007, 07:33

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.