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. Custom scroll bar for scroll area
QtWS25 Last Chance

Custom scroll bar for scroll area

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.4k 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.
  • G Offline
    G Offline
    gmahan
    wrote on last edited by
    #1

    Hi,

    I am trying to create a custom scroll bar for QScrollArea using stylesheets. The minimum width of the scroll bar needs to be 48px, it's getting created correctly, but its pushed all the way to the corner of the scroll area widget, displaying only part of the scroll bar. Any way to move the scroll bar inwards?

    Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gmahan
      wrote on last edited by
      #2

      "Image link":https://drive.google.com/file/d/0B1h024CZOovrNU5XS0ZkZkdKTFk/view?usp=sharing https://drive.google.com/file/d/0B1h024CZOovrVXJJNFBZRUloejA/view?usp=sharing

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gmahan
        wrote on last edited by
        #3

        Any idea what is the subcontrol for the scroll bar in scroll area. I am wondering if there is a way to change the position of the scroll bar using the stylesheet.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DeeeZ
          wrote on last edited by
          #4

          QSCrollArea is a QWidget isn't it ?
          You are in the Qt Quick forum ... so perhaps you should ask in the correct forum to have more answers ?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            No need to duplicate posts

            I've moved it

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              By the way, can you share your style sheet ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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