How to increase QTableWidget scrollbar width?

I have a QTableWidget with over 5000 data. Now I need to increase the width of the vertical scrollbar associated with the QTableWidget. Can someone help me?

+4
source share
2 answers

You can do this with a list of styles:

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

See also Configuring QScrollBar

+5
source

Another option is to add the following code to the stylesheet

 QSrcollBar::vertical{width:50px;} 
+1
source

All Articles