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. QScrollBar - indicator, arrows
Qt 6.11 is out! See what's new in the release blog

QScrollBar - indicator, arrows

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.2k 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.
  • P Offline
    P Offline
    petomosy
    wrote on last edited by
    #1

    Hi Guys,

    Is there a way, i could get the components of a scrollbar, like widgets?
    I mean, like query the arrow buttons, and slider ..

    Thanks!

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

      Hi,

      -AFAIK, the only widget inside a QScrollBar is the QSlider,- QScrollBar is a QAbstractSlider and the arrows are painted but not actual widgets.

      What would you need them for ?

      [edit: Corrected QScrollBar info]

      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
      • P Offline
        P Offline
        petomosy
        wrote on last edited by
        #3

        Hi,

        Thank you for your answer!
        How is it possible to get QSlider? I didn't find anything about that in the references.

        I need it for UI Test automation .. I have a workaround, but if i could get the UI element (widget) itself (if any), that would be the best for me.

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

          Sorry, I just realized I've miswrote my original answer.

          You can use it like a QSlider (at this point the differences is essentially esthetic)

          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
          • P Offline
            P Offline
            petomosy
            wrote on last edited by
            #5

            Oh, well, never mind.

            Unfortunately that doesn't help me, but I'll solve my problem on an other way then.. thanks for the answers anyway!

            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