0
auto bar = ui->verticalScrollBar();
bar->setStyleSheet("QScrollBar:vertical { width: 20px; }" 
                   "QScrollBar::up-arrow:vertical, QScrollbar::down-arrow:vertical { width: 15px; height: 15px; }");

Any idea would be appreciated.

frogatto
  • 28,539
  • 11
  • 83
  • 129
Daniel Lee
  • 205
  • 3
  • 7
  • Possible duplicate of [How to change the size of a QScrollBar's arrows?](https://stackoverflow.com/questions/29258487/how-to-change-the-size-of-a-qscrollbars-arrows) – jpo38 Oct 15 '17 at 07:26

1 Answers1

0

Try to use min-width, max-width (the same value), min-height, max-height (the same value) instead of width and height.

frogatto
  • 28,539
  • 11
  • 83
  • 129