How can I change the QScrollArea silders thickness?
Hi.
I am having some troubles to change the thickness of the silders in a QScrollArea. The goal is to use it with a touch screen.
I have already tried some things like:
- scrollArea->verticalScrollBar()->setFixedWidth(50);
- scrollArea->verticalScrollBar()->setMinimumWidth(50);
The result is just that the small arrows are not well displayed but the thickness of the slider remains very small.:confused:
Does somebody have an idea to do it?
Thank you very much!
Re: How can I change the QScrollArea silders thickness?
You can either use QApplication::globalStrut or implement your own style (possibly through a style proxy) and change the respective style hint.
Re: How can I change the QScrollArea silders thickness?
QApplication::globalStrut works fine for us. Thank you very much for the fast answer.