QWidget { } /* ========================================================== * QPushButton * ========================================================== */ QPushButton { font-weight: 500; font-size: 14px; text-align: center; } /* QPushButton#pBtn_Close { background: transparent; border-radius: 4px; qproperty-icon: url(:/icon/close.png); qproperty-iconSize: 32px 32px; } QPushButton#pBtn_Close[Hover = true] { background: transparent; border-radius: 4px; qproperty-icon: url(:/icon/close_hover.png); qproperty-iconSize: 32px 32px; border: 1px solid #4458FE; } */ /********* 普通椭圆按钮三种状态效果 *********/ QPushButton#pBtn_close { background: transparent; color: #3A3F63; border: 1px solid #E6E9F4; border-radius: 16px; } QPushButton#pBtn_close: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_delete, #pBtn_modify, #pBtn_enableCPItem, #pBtn_disableCPItem { background: transparent; color: #3A3F63; border: 1px solid #E6E9F4; border-radius: 4px; } QPushButton#pBtn_delete:hover, #pBtn_modify:hover, #pBtn_enableCPItem:hover, #pBtn_disableCPItem:hover { background: transparent; color: #4458FE; border: 1px solid #4458FE; border-radius: 4px; } /********* 带有底色方框按钮三种状态效果 *********/ QPushButton#pBtn_add { color:white; background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF); border-radius: 4px; } QPushButton#pBtn_add:hover { color:white; background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF); border-radius: 4px; } /* ========================================================== * QTableView * ========================================================== */ /* QTableView设置 */ QTableView { border: none; background-color: white; selection-background-color: black; font-weight: 400; font-size: 14px; color: #3A3F63; line-height: 22px; text-align: left; font-style: normal; text-transform: none; outline: none; } /* 标题头整个区域 */ QHeaderView { background:transparent; border-bottom: 1px solid #E6E9F4; border-top: 1px solid #E6E9F4; border-left: none; border-right: none; } /*表头设置*/ QHeaderView::section { background: #FFFFFF; color: #3A3F63; font-weight: 400; font-size: 14px; padding-left: 8px; border: none; } QTableView::item { font-weight: 400; font-size: 14px; /* color: #3A3F63; */ background: transparent; border: none; padding-left: 8px; outline: none; } QTableView::item:selected { color: #FFFFFF; background: #bdbbf5; border-radius: 0px 0px 0px 0px; outline: none; }