Qt常用样式表-滚动条QScrollBar

滚动条QScrollBar

QScrollBar:horizontal

{

background:transparent;

border:none;

height:12px;

}

QScrollBar::handle:horizontal

{

background:#C4C4C4;

border:none;

border-radius:4px;

height:8px;

min-width:20px;

margin:2px;

}

QScrollBar::handle:horizontal:hover

{

background:#C4C4C4;

}

QScrollBar:vertical

{

background:transparent;

border:none;

width:12px;

}

QScrollBar::handle:vertical

{

background:#C4C4C4;

border:none;

border-radius:4px;

width:8px;

min-height:20px;

margin:2px;

}

QScrollBar::handle:vertical:hover

{

background:#C4C4C4;

}

QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal

{

background:rgba(255,255,255,10);

}

QScrollBar::add-line:horizontal,QScrollBar::sub-line:horizontal

{

background:transparent;

}

QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical

{

background:rgba(255,255,255,10);

}

QScrollBar::add-line:vertical,QScrollBar::sub-line:vertical

{

background:transparent;

}

你可能感兴趣的:(QT,qss,qt,前端)