Results 1 to 2 of 2

Thread: QScrollBar background image

Threaded View

Previous Post Previous Post   Next Post Next Post
  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 QScrollBar background image

    Hi all,
    I try to have a scrollbar like this post :
    http://www.qtcentre.org/threads/2790...-of-QScrollBar
    but on this post, the solution posted was not the good way.
    Is it possible to achieve it correctly ? Can you say me a good way ?
    I tried background-image on the stylesheet but I don't see the image on the scrollbar.
    Qt Code:
    1. QScrollBar:vertical
    2. {
    3. background-image: url(Line.png);
    4. width: 15px;
    5. margin: 0px;
    6. border: none;
    7. }
    To copy to clipboard, switch view to plain text mode 
    Thanks for the help
    Last edited by Alundra; 11th March 2014 at 19:20.

Similar Threads

  1. Replies: 1
    Last Post: 20th July 2011, 09:02
  2. Replies: 2
    Last Post: 16th June 2011, 10:56
  3. Replies: 0
    Last Post: 11th December 2010, 00:01
  4. Styling background of QScrollBar
    By martinn in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2010, 11:06
  5. qss + QScrollBar background issue
    By Lykurg in forum Qt Programming
    Replies: 0
    Last Post: 25th July 2007, 16:17

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.