[Interest] How to force scroll bars always visible on Mac

Calogero Mauceri mauceri at actgate.com
Wed Apr 8 17:30:36 CEST 2015


Bill thank you very much!
You made my day ;).
Calogero


Il 4/8/2015 3:22 PM, Bill Jones ha scritto:
> Calogero,
>
> There is a way to do this, you need to set a QProxyStyle on the scrollbar’s whose behavior you want to change and over-ride  the QStyle::SH_ScrollBar_Transient setting.
>
> Bill
>
>
>
> On Apr 8, 2015, at 3:49 AM, Calogero Mauceri <mauceri at actgate.com> wrote:
>
>> Hi John,
>>
>> Unfortunately even if I hover where the scroll bars *should* be, they never show up, neither on other mac applications.
>> I know I can change that behavior from the machine settings, but that will solve the problem on my machine, my application users will still have the problem.
>>
>> I was just wondering if Qt exposes some functionalities for forcing the scroll bars to be always visible. I tried to change the ScrollBarPolicy for vertical and horizontal scrollbars to be Qt::ScrollBarAlwaysOn, but that did not change anything, the scroll bars all always hidden.
>>
>> Calogero

-- 
Calogero Mauceri
Software Engineer

Applied Coherent Technology Corporation (ACT)
www.actgate.com





More information about the Interest mailing list