[Interest] How to force scroll bars always visible on Mac
Calogero Mauceri
mauceri at actgate.com
Wed Apr 8 09:49:13 CEST 2015
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
Il 4/7/2015 6:03 PM, John Weeks ha scritto:
> Whether you agree with the design or not, that's the way it is. Presumably, if you hover where the scroll bars *should* be, they should show up if they are needed. As a 25-year Macintosh user I hate it!
>
> The behavior is controlled by the user via the General control panel. There are three radio buttons for "Show scroll bars:" Automatically (what I described), When scrolling (I think that's like when you drag with two fingers), and Always. Being an old-time Mac user who believes in the old Mac HIG that said we shouldn't have hidden UI elements, I have mine set to Always.
>
> -John Weeks
>
>
>> On 07 Apr 2015, at 8:01 am, Calogero Mauceri <mauceri at actgate.com> wrote:
>>
>> Hi all,
>>
>> I have a tricky problem on Mac OS X 10.10 related to scrolling content
>> on a QGraphicsView.
>>
>> I have a QGraphicsView where I reimplemented the wheelEvent to zoom
>> in/out the content of the view. The only way I have for scrolling the
>> content is clicking and dragging the scroll bars. Actually on Mac OS X
>> 10.10 scroll bars are hidden by default and shown only when the user
>> scrolls the area through mouse or trackpad. Having reimplemented the
>> default behavior the scrollbars in my QGraphicsView are never shown.
>> Is there any Qt way to force the scroll bars to be always visible? Do
>> you have any other suggestion on how to fix this problem?
>>
>> Thanks,
>> Calogero
>>
>> --
>> Calogero Mauceri
>> Software Engineer
>>
>> Applied Coherent Technology Corporation (ACT)
>> www.actgate.com
>>
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
--
Calogero Mauceri
Software Engineer
Applied Coherent Technology Corporation (ACT)
www.actgate.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150408/1027b7a4/attachment.html>
More information about the Interest
mailing list