QWidget快速美化-文本浏览器

将代码复制进QTextBrowser的样式表
代码:

QTextBrowser{
	font:14pt "黑体";
	color:black;
}

QTextBrowser::QScrollArea{
	border:0px solid;
	border-right-width:1px;
	border-right-color:#dcdbdc;
	background-color:#f5f5f7;
}

QScrollBar:vertical{
	border:none;
	background:#f5f5f7;
	width:10px;
	margin:0px 0 0px 0;
}

QScrollBar::handle:vertical{
	background:Gainsboro;
	min-height:20px;
	border-radius:5px;
	border:none;
}

QScrollBar::add-line:vertical{
	border:0px solid grey;
	background:#32cc99;
	height:0px;
	subcontrol-position:bottom;
	subcontrol-origin:margin;
}

QScrollBar::sub-line:vertical{
	border:0px solid grey;
	background:#32cc99;
	height:0px;
	subcontrol-position:top;
	subcontrol-origin:margin;
}

QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical{
	background:none;
	width:0px;
	height:0px;
}

你可能感兴趣的:(QT界面,qt,ui)