PDA

View Full Version : Custom ScrollBar



Alundra
10th November 2014, 22:49
Hi,
I have a scrollbar with stylesheet which removes the arrow but I would have the same scrollbar like that one :
https://answers.unrealengine.com/storage/temp/18586-gizmo2.png
You can see the scrollbar on the bottom right.
Since that needs 2 image : background + handle, stylesheet can't be used since background-image is not supported on the scrollbar.
Is it possible to bypass the scrollbar of the stylesheet to have a custom scrollbar everywhere ?
I have read QStyle should be used in case like that, is it true ? What is the best way to have the good result ?
Thanks for the help

anda_skoa
11th November 2014, 08:53
A QStyle can certainly do a lot more things than style sheets can do.

Just put a scrollbar in a designer form an preview it with the available styles or look into the widget gallery.

Cheers,
_