Qt World Summit: Submit your Presentation

QScrollBar - indicator, arrows

  • 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 ..


  • Lifetime Qt Champion


    -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]

  • 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.

  • Lifetime Qt Champion

    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)

  • 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!

Log in to reply