QWidget快速美化-蓝边白字下拉框

将代码复制进QComboBox的样式表
效果:
请添加图片描述

代码:

QComboBox{
	color:#ffffff;
	border:1px solid #52DCFE;
	border-radius:3px;
	background:transparent;
}
QComboBox:disabled{
	border:1px solid gray;
	color:gray;
}
QComboBox::drop-down{
	background:transparent;
}
QComboBox::down-arrow{
	image: url(:/new/prefix1/Imgs/add_bottom.png);
}
QComboBox::down-arrow:enabled{
	color:#52DCFE;
}
QComboBox QAbstractItemView{
	outline:0px solid gray;
	border:1px solid #52DCFE;
	color:#ffffff;
	background-color:#000000;
	selection-background-color:#52DCFE;
}

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