123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- QLabel
- {
- font-weight: 400;
- font-size: 14px;
- color: #3A3F63;
- }
- /* ==========================================================
- * QLineEdit
- * ========================================================== */
- QLineEdit
- {
- background: #FFFFFF;
- border-radius: 4px;
- border: 1px solid #E6E9F4;
- font-weight: 400;
- font-size: 14px;
- color: #3A3F63;
- padding-left: 12px;
- }
- QLineEdit:hover,QLineEdit:focus
- {
- border: 1px solid #4458FE;
- }
- QPushButton#btnDel
- {
- border-image: url(:/icon/del.png);
- }
- QPushButton#btnDel:hover
- {
- border-image: url(:/icon/del_hover.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;
- }
- /* ==========================================================
- * 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);
- }
|