[Qt-interest] How to get width and height of QScrollbars arrow widgets

Anders Bakken anders.bakken at myriadgroup.com
Mon Jul 26 20:09:39 CEST 2010


On Fri, Jul 23, 2010 at 12:10:40PM +0100, Liebe Markus (RtP2/TEF72)
wrote:
> Hi there,
>
> is it possible to get the height (for vertical scrollbars) and  the
> width (for horizontal scrollbars) of the arrow widgets of a
> QScrollbar?
>
> +-+ |^|  arrow widget top +-+ | | | |  scrollbar | | +-+ |v|  arrow
> widget bottom +-+
>
>
> In the example above I am interested in the height of "arrow widget
> bottom" and "arrow widget top".
>
> In the docs for QScrollBar I did not find anything like that.
>
> Regards, Markus

You can probably use QStyle and subControlRect with
SC_ScrollBarAddPage/SC_ScrollBarSubPage

(Haven't tried)

regards
--
Anders Bakken

This message, including attachments, is intended solely for the addressee indicated in this message and is strictly confidential or otherwise privileged. If you are not the intended recipient (or responsible for delivery of the message to such person) : - (1) please immediately (i) notify the sender by reply email and (ii) delete this message and attachments, - (2) any use, copy or dissemination of this transmission is strictly prohibited. If you or your employer does not consent to Internet email messages of this kind, please advise Myriad Group AG by reply e-mail immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by Myriad Group AG unless otherwise indicated by an authorized representative independent of this message.




More information about the Qt-interest-old mailing list