PDA

View Full Version : Resize a vertical an horizontal scrollbar.



IRON_MAN
19th April 2010, 13:01
Hey,

I'm working with a widget where I have inserted a QScrollArea. In this scroll I use the vertical and horizontal scrollbar as needed. However I want to change the size of them.
To achive my goal I have used these two sentences without seing any chage:

ui.scrollArea->verticalScrollBar()->setMinimumWidth (70);
ui.scrollArea->horizontalScrollBar()->setMinimumHeight(70);

Can anyone help me?

squidge
19th April 2010, 13:13
Do you have a layout?

IRON_MAN
19th April 2010, 13:14
no I have not.

borisbn
19th April 2010, 15:45
maybe you want to customize the view of scrolls. If yes, there is a styling for you (http://qt.nokia.com/doc/4.6/stylesheet-examples.html#customizing-qscrollbar)