Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Custom scroll bar for scroll area

    General and Desktop
    3
    6
    1093
    Loading More Posts
    • 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
      gmahan last edited by

      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 Reply Quote 0
      • G
        gmahan last edited by

        "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 Reply Quote 0
        • G
          gmahan last edited by

          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 Reply Quote 0
          • D
            DeeeZ last edited by

            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 Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • First post
                  Last post