开发者

How to increase QTableWidget Vertical Scrollbar width?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜