Results 1 to 1 of 1

Thread: QScrollArea - scrollbar arrows stylesheet, single step

  1. #1
    Join Date
    Jul 2010
    Location
    Poland
    Posts
    184
    Thanks
    70
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QScrollArea - scrollbar arrows stylesheet, single step

    Hello!

    I've got some problem with styling scrollbar of QScrollArea. I've set stylesheet for QScrollArea:

    Qt Code:
    1. QScrollBar:vertical {min-width: 40px; margin-right: 25px;}
    To copy to clipboard, switch view to plain text mode 

    But after that I can't see any arrows. I'm trying to change stylesheet of an arrows with:

    Qt Code:
    1. QScrollBar::down-arrow:vertical, QScrollBar::up-arrow:vertical {background: white; width: 35px; height: 30px;}
    To copy to clipboard, switch view to plain text mode 

    But still can't see them. Any suggestions?

    [SOLVED!]
    -------------------------------------------
    Solved the problem using stylesheet example.

    One more. QScrollBar is part of QScrollArea. QScrollBar inherits setSingleStep() from QAbstractSlider - so, can I use It somehow for my QScrollArea to change single step?

    thanks in advance
    best regards
    Tomasz
    Last edited by Tomasz; 3rd January 2011 at 14:56.

Similar Threads

  1. QScrollarea events transferring to scrollbar
    By babu198649 in forum Qt Programming
    Replies: 15
    Last Post: 6th September 2013, 22:33
  2. ScrollBar position for QScrollArea
    By Dendy in forum Qt Programming
    Replies: 7
    Last Post: 28th March 2011, 11:34
  3. QListView's scrollbar stylesheet
    By luochen601 in forum Qt Programming
    Replies: 4
    Last Post: 9th September 2010, 06:34
  4. Replies: 1
    Last Post: 9th February 2010, 15:04
  5. Replies: 1
    Last Post: 27th August 2007, 13:13

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.