Setting slider width in QScrollBar
Unsolved
General and Desktop
-
Hello,
i am using Qt Creator 4.5.2 (Qt 5.9.5) and want to change the width of the slider in a vertical QScrollBar (QScrollArea), because of the narrow design (5 px). So, i played around with parameters verticalScrollBar()->setFixedWidth(40) / verticalScrollBar()->setMinimum(40) / verticalScrollBar()->setMaximum(40) / verticalScrollBar()->setStyleSheet("QScrollBar::vertical{width:40px;}") but nothing worked.
I can change the slider length, but not the width. What am i doing wrong?