luebking / virtuality

Qt4/Qt5 widget style
GNU General Public License v2.0
19 stars 6 forks source link

How to make scrollbars huge? #21

Closed ViktorNova closed 9 years ago

ViktorNova commented 9 years ago

One of the things I love the most about Bespin was being able to make the scrollbars ridiculously oversized, which makes using QT4 on a touchscreen very doable. Is there any way to accomplish this for Virtuality, even if it's not in the gui yet?

luebking commented 9 years ago

No, there isn't - it's atm. hardcoded to (dpi aware) 11px

Before I add a key and because of your usecase: have you seen the "hack" to "Allow panning of some viewports"? It's what I use on a touch device (see the info for the item, tl;dr: if you want to perform a "normal" dragging, you got to tap once first, then you can start a selection within the next 333ms.

I'll also promote https://github.com/luebking/piQtureGLide - though it works much better w/ Qt5 (multitouch)

ViktorNova commented 9 years ago

Thank you for your reply - I did not know about that. Is this a hack of yours, or that feature just part of QT4/5? I'm assuming it is something in the code level and not a feature provided by the QT theme, correct?

Resizable scrollbars would be really great, although I should be able to just adjust it in the code and build my own for the time being. Thanks!

luebking commented 9 years ago

"Hack" The mouse movements are intercepted and translated into an adjustment of the current value of the scrollarea.

commit 5257fa3d25b3506c913d2524a441aabcd0a1aa64

virtuality write style Slider.Thickness 22 # default is 11

ViktorNova commented 9 years ago

It works great, thanks a bunch! I now know what you're talking about, it's in the Hacks section in virtuality, I somehow didn't notice it before.. the touch scrolling works very well =D I had no idea this was possible, so thank you again for sharing

I love it!