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. Changing the scrollbar's icons
Forum Updated to NodeBB v4.3 + New Features

Changing the scrollbar's icons

Scheduled Pinned Locked Moved Unsolved General and Desktop
qscrollbarqwidgetgui
2 Posts 2 Posters 3.1k Views 1 Watching
  • 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.
  • SolaVitaeS Offline
    SolaVitaeS Offline
    SolaVitae
    wrote on last edited by SolaVitae
    #1

    Is there a way to change the arrow button icons on a Scroll bar? I've tried looking it up but all I've found seems to point to links that are no longer available. Im simply trying to change the up and down arrows to a custom icon i made.

    Ive tried changing them via style sheet, but when i change it with border-image in the style sheet, my icon gets incredibly small in the center of the arrow. It doesn't hide the rest of the arrow button, it simply puts my icon in the center of it. I cant seem to find a way to make the border image icon scale to the total size of the button, so im curious if there is a way to change the icons easily that i am missing.

    or, if it cant be done via style sheet / light coding, if there is a guide/tutorial/example of creating your own QStylebar and changing it that way

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You did read ?
      http://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qscrollbar

      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