开发者

How to increase QTableWidget Vertical Scrollbar width?

开发者 https://www.devze.com 2023-04-04 13:15 出处:网络
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

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;}
0

精彩评论

暂无评论...
验证码 换一张
取 消