4

I'm having a QTableWidget with more than 5000 datas. Now i need to increase the width of vertical scrollbar associated with the QTableWidget. Can somebody help me?

Shyam
  • 871
  • 6
  • 15
  • 30

2 Answers2

8

You can do that with a style sheet:

myTableWidget->verticalScrollBar()->setStyleSheet(
    "QScrollBar:vertical { width: 100px; }");

See also Customizing QScrollBar

alexisdm
  • 29,448
  • 6
  • 64
  • 99
1

Another option is to add following code in style sheet

QSrcollBar::vertical{width:50px;}
zx485
  • 28,498
  • 28
  • 50
  • 59
Noufal
  • 11
  • 1