滚动条样式

setStyleSheet
 1 "QScrollBar:vertical{"
 2   "background:#FFFFFF;"
 3   "width:6px;"
 4   "padding:0px;}"
 5 "QScrollBar::add-page:vertical,"
 6 "QScrollBar::sub-page:vertical{"
 7   "background:#FFFFFF;}"
 8 "QScrollBar::handle:vertical{"
 9   "background:#D2D2D2;"
10   "border-radius:3px;"
11   "min-height:30px;}"
12 "QScrollBar::handle:vertical:hover{"
13   "background:#B7B7B7;}"

滚动条样式_第1张图片滚动条样式_第2张图片

你可能感兴趣的:(滚动条样式)