QWidget#widget_top, #widget_detectPlan, #widget_noDetectPlan { background-color: #FFFFFF; } QWidget#widget_detectPlan, #widget_noDetectPlan, #widge_asOthrer { border-bottom: 1px solid #E9E9E9; } QWidget#widget_bottom { border-top: none; } /* ========================================================== * QLabel * ========================================================== */ QLabel { font-weight: 400; font-size: 14px; color: #3A3F63; } QLabel#label_tipIcon1 ,#label_tipIcon2 { image: url(:/icon/tip.png); } QLabel#label_tip1, #label_tip2 { color: rgba(58,63,99,0.8); } QLabel#label_detectPlan, #label_noDetectPlan { font-weight: 500; font-size: 16px; } QLabel#label_tip { font-weight: 400; font-size: 14px; color: rgba(58,63,99,0.8); line-height: 21px; text-align: left; font-style: normal; } /* ========================================================== * QPushButton * ========================================================== */ QPushButton { font-weight: 500; font-size: 14px; text-align: center; } /* QPushButton#pBtn_close { background: transparent; border-radius: 4px; qproperty-icon: url(:/ICON/ICON/Close_Light.png); qproperty-iconSize: 20px 20px; } QPushButton#pBtn_close[Hover = true] { background: transparent; border-radius: 4px; qproperty-icon: url(:/ICON/ICON/Close_pass.png); qproperty-iconSize: 20px 20px; border: 1px solid #4458FE; } */ /********* 普通椭圆按钮三种状态效果 *********/ /* QPushButton#pBtn_cancel, #pBtn_saveTotemplate { background: transparent; color: #3A3F63; border: 1px solid #E6E9F4; border-radius: 16px; } QPushButton#pBtn_cancel:hover, #pBtn_saveTotemplate:hover { background: transparent; color: #4458FE; border: 1px solid #4458FE; border-radius: 16px; } */ /********* 带有底色椭圆按钮三种状态效果 *********/ /* 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; } */ /********* 普通方框按钮三种状态效果 *********/ QPushButton#pBtn_restore { background: transparent; color: #3A3F63; border: 1px solid #E6E9F4; border-radius: 4px; } QPushButton#pBtn_restore:hover { background: transparent; color: #4458FE; border: 1px solid #4458FE; border-radius: 4px; } /********* 带有底色方框按钮三种状态效果 *********/ QPushButton#pBtn_addDetectPlan, #pBtn_addNoDetectPlan { color:white; background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF); border-radius: 4px; } QPushButton#pBtn_addDetectPlan:hover, #pBtn_addNoDetectPlan:hover { color:white; background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF); border-radius: 4px; } /* ========================================================== * QCheckBox * ========================================================== */ QCheckBox { font-weight: 400; font-size: 14px; color: #3A3F63; } QCheckBox::indicator { width: 16px; height: 16px; } QCheckBox::indicator:unchecked { image: url(:/icon/unchecked.png); } QCheckBox::indicator:checked { image: url(:/icon/checked.png); } /* ========================================================== * 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/down_arrow.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; } /******** 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; } /* ========================================================== * QListWidget * ========================================================== */ QListWidget { background: transparent; border: none; padding: 0px; outline: none; } QListWidget::item { background: transparent; border: none; padding: 0px; } QListWidget::item:hover { background: #EEF2FF; } QListWidget::item:selected { background: #EEF2FF; color: #4458FE; } /******** QListWidget 滚动条 *********/ /*主体部分*/ QListWidget QScrollBar::vertical { width:8px; background:transparent; border:none; border-radius:5px; } /*滑块主体*/ QListWidget QScrollBar::handle::vertical { width: 8px; background: #E2E2E2; border-radius: 3px; min-width: 8px; } QListWidget QScrollBar::handle::vertical::hover { background:transparent; } /*上箭头*/ QListWidget QScrollBar::add-line::vertical { border:none; } /*下箭头*/ QListWidget QScrollBar::sub-line::vertical { border:none; } /* ========================================================== * QScrollArea * ========================================================== */ QScrollArea, QWidget#scrollArea_detectPlans { background: #FFFFFF !important; border: none; } QScrollBar:vertical { width: 6px; border:none; background: transparent; margin-right: 0px; } QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { background: transparent; border: none; } QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background: transparent; } QScrollBar::handle:vertical { background: #E2E2E2; border-radius: 1px; margin-right: 1px; margin-left: 1px; } QScrollBar::handle:vertical:hover { background: rgb(234, 234, 234); margin-right: 0px; margin-left: 0px; border-radius: 2px; } QScrollBar::handle:vertical:pressed { background: rgb(234, 234, 234); margin-right: 0px; margin-left: 0px; border-radius: 2px; }