Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change colour of QScrollBar handle, but not "tray", without rewriting the whole style sheet.

Change colour of QScrollBar handle, but not "tray", without rewriting the whole style sheet.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 123 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    samfrances
    wrote on last edited by
    #1

    Is there a QPalette setting that will let me change the colour of a QScrollBar handle without simultaneously changing the colour of the "groove" or "tray" within which it moves?

    I'm trying to achieve greater contrast between the tray and the handle.

    The only solution I can find seems to involve rewriting the entire style sheet for QScrollBars, which seems to end up removing the arrows on the up/down buttons.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved