Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase QTableWidget Vertical Scrollbar width?

Tags:

qt

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?

like image 350
Shyam Avatar asked Jan 18 '23 18:01

Shyam


1 Answers

You can do that with a style sheet:

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

See also Customizing QScrollBar

like image 157
alexisdm Avatar answered Jan 28 '23 09:01

alexisdm