PDA

View Full Version : How can I change the QScrollArea silders thickness?



Cédric Syllebranque
31st August 2009, 13:51
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!

wysota
31st August 2009, 14:12
You can either use QApplication::globalStrut or implement your own style (possibly through a style proxy) and change the respective style hint.

Cédric Syllebranque
31st August 2009, 14:45
QApplication::globalStrut works fine for us. Thank you very much for the fast answer.