| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 | QWidget{    border-radius: 8px;    /* font-family: 思源黑体R; */    /* font-weight: 400; */    font-size: 14px;    color: #3A3F63;    line-height: 21px;    text-align: left;    font-style: normal;}QWidget#widget{    background-color: #FFFFFF;}QWidget#widget_Top{    background: #FFFFFF;    border-top-left-radius: 10px;    border-top-right-radius: 10px;    border-bottom-left-radius: 0px;    border-bottom-right-radius: 0px;    border-bottom: 1px solid #E6E9F4;}QLabel#label_title{    /* font-weight: normal; */    font-size: 18px;    color: #3A3F63;    line-height: 27px;    text-align: left;    font-style: normal;    text-transform: uppercase;}QLabel#label_NC2,QLabel#label_NC3,QLabel#label_NC4{    /* font-weight: 400; */    font-size: 14px;    color: #5A607F;    line-height: 21px;    text-align: left;    font-style: normal;}QLabel#label_line2, #label_line3{    background: #E6E9F4;}QLabel#label_warning{    color:red;}QPushButton#pBtn_close{	/* border-image: url(:/ICON/ICON/Dialog_close.png); */    background: transparent;    border-radius: 4px;    qproperty-icon: url(:/ICON/ICON/Close_Light.png);    qproperty-iconSize: 20px 20px;    text-align: center;    border: 0px solid #4458FE;}QPushButton#pBtn_close[Hover = true]{		/* border-image: url(:/ICON/ICON/Dialog_close2.png); */    background: transparent;    border-radius: 4px;    qproperty-icon: url(:/ICON/ICON/Close_pass.png);    qproperty-iconSize: 20px 20px;    text-align: center;    border: 1px solid #4458FE;}/********* 普通椭圆按钮三种状态效果 *********/QPushButton#pBtn_cancel{	border-radius: 16px;	text-align: center;    background: #FFFFFF;    border: 1px solid #E6E9F4;    color: #3A3F63;}QPushButton#pBtn_cancel:hover{	text-align: center;    background: #FFFFFF;    border-radius: 16px;    border: 1px solid #4458FE;    color: #4458FE;}/********* 带有底色按钮三种状态效果 *********/QPushButton#pBtn_ok{	border-radius: 16px;	text-align: center;    color:white;    background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);}QPushButton#pBtn_ok:hover{	border-radius: 16px;	text-align: center;    color:white;    background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);}/* ========================================================== *  QTableWidget * ========================================================== */QTableWidget{    background: transparent;    padding-left: 16px;    border: none;    text-align: left;}/* 设置标题栏,如果不生效,可能是在UI里面设置了样式表,导致冲突了 */QTableWidget QHeaderView{    background: transparent;}QTableWidget QHeaderView::section{    background: transparent;    padding-left: 16px;    font-weight: 500;    font-size: 14px;        border: 0px solid #E6E9F4;    border-top: 1px solid #E6E9F4;    border-bottom: 1px solid #E6E9F4;}QTableWidget::item{    padding-left: 16px;    padding-right: 0px;    padding-top: 0px;    padding-bottom: 0px;    margin: 0px;    text-align: left;    border: 0px solid #E6E9F4;}QTableWidget::item:selected{    color: #FFFFFF;    background: #93a3f2;}/* ========================================================== *  QCheckBox * ========================================================== */QCheckBox{    background: transparent;    font-weight: 400;    font-size: 14px;    text-align: left;    font-style: normal;    text-transform: none;    /* padding-left: 16px; */}QCheckBox::indicator {    width: 20px; /* 勾选框的宽度 */    height: 20px; /* 勾选框的高度 */    border: none; /* 勾选框的边框颜色和宽度 */    background: transparent; /* 勾选框的背景颜色 */    border-radius: 2px; /* 可选:设置圆角 */}QCheckBox::indicator:unchecked {    background: transparent; /* 未选中状态的背景颜色 */    border-image: url(:/ICON/ICON/CheckBox_UnChecked.png); /* 未选中状态的图标 */}/* 半选中 */QCheckBox::indicator:indeterminate{    background: transparent; /* 未选中状态的背景颜色 */    border-image: url(:/ICON/ICON/CheckBox_PartiallyChecked.png); /* 未选中状态的图标 */}QCheckBox::indicator:checked {    background: transparent;            /* 选中状态的背景颜色 */    border: 0px solid #4458FE;      /* 选中状态的边框颜色 */    border-image: url(:/ICON/ICON/CheckBox_Checked.png); /* 选中状态的图标 */}/*=============================================================== * QScrollBar 滚动条 ================================================================*//* 设置 QTableWidget 的水平和垂直滚动条的基础样式。 */QTableWidget QScrollBar:horizontal, QTableWidget QScrollBar:vertical{    border:none;    /* background-color: rgba(255, 255, 255, 0); */    background: transparent;    margin: 0px 0px 0px 0px;}QTableWidget QScrollBar:horizontal{    height: 12px;}QTableWidget QScrollBar:vertical{    width: 6px;}/* 定义滚动条滑块的样式,包括颜色、圆角和最小宽度/高度 */QTableWidget QScrollBar::handle:horizontal,QScrollBar::handle:vertical{    background: #E2E2E2;    /* background: #505357; */    border-radius: 3px;    min-width: 8px;}QTableWidget QScrollBar::handle:horizontal{    min-width: 8px;}QTableWidget QScrollBar::handle:vertical{    min-height: 113px;}/* 定义滚动条的上下箭头的样式,包括背景颜色和边框 */QTableWidget QScrollBar::add-line:horizontal, QTableWidget QScrollBar::sub-line:horizontal,QTableWidget QScrollBar::add-line:vertical, QTableWidget QScrollBar::sub-line:vertical{    background-color: transparent;    border: none;}/* 定义滚动条的上下箭头的样式,包括背景颜色和边框 */QTableWidget QScrollBar::add-page:horizontal, QTableWidget QScrollBar::sub-page:horizontal,QTableWidget QScrollBar::add-page:vertical, QTableWidget QScrollBar::sub-page:vertical{    background-color: transparent;    background: none;}
 |