/* ========================================================== * 通用样式 * ========================================================== */ QWidget { font-family: 思源黑体R; font-weight: 400; font-size: 14px; color: #3A3F63; line-height: 21px; text-align: left; font-style: normal; border-radius: 8px; /* background: transparent; */ } QWidget#widget { background: rgba(0,0,0,0.01); /* background: rgba(255,255,255,1); */ } 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; } QWidget#widget_background { background-color: #FFFFFF; } QLabel#label_title { font-weight: bold; font-size: 18px; color: #3A3F63; line-height: 27px; text-align: left; font-style: normal; text-transform: uppercase; } QPushButton { text-align: center; font-family: 思源黑体M; } QPushButton#pBtn_Close{ image: url(:/ICON/ICON/Dialog_close.png); } QPushButton#pBtn_Close:hover { image: url(:/ICON/ICON/Dialog_close2.png); } /********* 普通方框按钮三种状态效果 *********/ QPushButton#pBtn_cancel:enabled { background: #FFFFFF; border-radius: 16px; border: 1px solid #E6E9F4; color: #3A3F63; } QPushButton#pBtn_cancel:hover { background: #FFFFFF; border-radius: 16px; border: 1px solid #4458FE; color: #4458FE; } /********* 带有底色按钮三种状态效果 *********/ QPushButton#pBtn_ok { color:white; background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF); border-radius: 16px; } QPushButton#pBtn_ok:hover { color:white; background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF); border-radius: 16px; } QLabel#label_devWarn,QLabel#label_timeWarn,QLabel#label_actionWarn { font-weight: 400; font-size: 14px; color: #D21F21; line-height: 21px; text-align: left; font-style: normal; } /* ========================================================== * QComboBox(这个是在用的) * ========================================================== */ QComboBox:enabled { background-color:#FFFFFF; border: 1px solid #E6E9F4; border-radius: 4px; font-size:14px; font-weight: 400; color:#3A3F63; padding-left: 12px; } /* 不能编辑的时候的样式,setEnable(false) */ QComboBox:!enabled { background:rgba(0,0,0,0.04); border: 1px solid #E6E9F4; border-radius: 4px; font-size:14px; font-weight: 400; color:rgba(58,63,99,0.65); padding-left: 12px; } QComboBox:hover { border: 1px solid #4458FE; border-radius: 4px; background:transparent; } /* 下拉箭头所在的位置方框 */ QComboBox::drop-down { width: 24px; border: none; } /* 下拉箭头图标 */ QComboBox::down-arrow { image: url(:/ICON/ICON/DownArrow.png); height:16px; width:16px; } /* 下拉条样式,就是view,整个下拉窗体的样式 */ QComboBox QAbstractItemView { background-color: #FFFFFF; margin: 12px; outline:0px; font-size:14px; color: #3A3F63; border-radius: 4px; } /* 使下面两句生效,需要加上如下语句 */ /* m_comBoxDev->setView(new QListView()); */ QComboBox QAbstractItemView::item { background-color: #FFFFFF; border-radius:4px; color: #3A3F63; padding-left: 12px; height: 32px; } QComboBox QAbstractItemView::item:hover { border-radius:4px; background-color: #EEF2FF; } /* QComboBox QAbstractItemView::item:selected { border-radius:4px; background-color: #EEF2FF; } */ /******** combobox 滚动条 *********/ QComboBox QScrollBar::vertical{ /*主体部分*/ width:8px; background:transparent; border:none; border-radius:5px; } QComboBox QScrollBar::handle::vertical{ /*滑块主体*/ width: 8px; background: #E2E2E2; border-radius: 3px; min-width: 8px; } QComboBox QScrollBar::handle::vertical::hover{ background:transparent; } QComboBox QScrollBar::add-line::vertical{/*上箭头*/ border:none; } QComboBox QScrollBar::sub-line::vertical{/*下箭头*/ border:none; } /* ========================================================== * 时间报警红框 * ========================================================== */ QLabel#label_iconTime { border-image: url(:/ICON/ICON/Time.png); } /* TimeWidget { background: transparent; border-radius: 4px; padding-left:12px; border: 1px solid #E6E9F4; } */ /* TimeWidget[Warn=true] { background: transparent; border-radius: 4px; padding-left:12px; border: 1px solid #D21F21; } */ /* TimeWidget:!enabled { background: rgba(0,0,0,0.04); border: 1px solid #E6E9F4; } */ TimeWidget { /* background: transparent; */ border-radius: 4px; padding-left:12px; border: 1px solid #4458FE; } QPushButton#pBtn_selectTime { background: transparent; border: 1px solid #E6E9F4; border-radius: 4px; font-size: 14px; font-weight: 400; color: #3A3F63; padding-left: 12px; text-align: left; } QPushButton#pBtn_selectTime:hover { background: transparent; border: 1px solid #4458FE; border-radius: 4px; font-size: 14px; font-weight: 400; color: #3A3F63; padding-left: 12px; text-align: left; } /* 报警红框 */ QPushButton#pBtn_selectTime[Warn=true] { background: transparent; border-radius: 4px; padding-left:12px; border: 1px solid #D21F21; } /* TimeWidget QPushButton { border-image: url(:/ICON/ICON/Time.png); } */ QPushButton#btn_tip { border-image: url(:/ICON/ICON/Time.png); }