View Full Version : QScrollBar - how to find out particular parts of the scrollbar

27th June 2013, 16:19

Is there a possibility to find out what is a QRect that covers scrollbar area marked on following drawing as red (1)? The same question about blue (2) marked area.


Of course I mean QRect that belongs to QScrollBar only, I just used wider rectangle markers to make the picture more readable.
Essentially I want to learn what is scrollbar area excluding "up" and "down" arrows (red marker). Then I would also like to know what part of area is covered by "slider" and what part is not (blue marker).