I'm having a QTableWidget with more than 5000 datas. Now i need to increase the width of verti开发者_运维百科cal scrollbar associated with the QTableWidget. Can somebody help me?
You can do that with a style sheet:
myTableWidget->verticalScrollBar()->setStyleSheet(
"QScrollBar:vertical { width: 100px; }");
See also Customizing QScrollBar
Another option is to add following code in style sheet
QSrcollBar::vertical{width:50px;}
精彩评论