singlecompareroadwidget.qss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. QLabel
  2. {
  3. font-weight: 400;
  4. font-size: 14px;
  5. color: #3A3F63;
  6. }
  7. /* ==========================================================
  8. * QLineEdit
  9. * ========================================================== */
  10. QLineEdit
  11. {
  12. background: #FFFFFF;
  13. border-radius: 4px;
  14. border: 1px solid #E6E9F4;
  15. font-weight: 400;
  16. font-size: 14px;
  17. color: #3A3F63;
  18. padding-left: 12px;
  19. }
  20. QLineEdit:hover,QLineEdit:focus
  21. {
  22. border: 1px solid #4458FE;
  23. }
  24. QLineEdit:enabled[Warn=true]
  25. {
  26. border: 1px solid #D21F21;
  27. }
  28. QPushButton#btnDel
  29. {
  30. border-image: url(:/icon/del.png);
  31. }
  32. QPushButton#btnDel:hover
  33. {
  34. border-image: url(:/icon/del_hover.png);
  35. }
  36. /* ==========================================================
  37. * QComboBox(这个是在用的)
  38. * ========================================================== */
  39. QComboBox:enabled
  40. {
  41. background-color:#FFFFFF;
  42. border: 1px solid #E6E9F4;
  43. border-radius: 4px;
  44. font-size:14px;
  45. font-weight: 400;
  46. color:#3A3F63;
  47. padding-left: 12px;
  48. }
  49. /* 不能编辑的时候的样式,setEnable(false) */
  50. QComboBox:!enabled
  51. {
  52. background:rgba(0,0,0,0.04);
  53. border: 1px solid #E6E9F4;
  54. border-radius: 4px;
  55. font-size:14px;
  56. font-weight: 400;
  57. color:rgba(58,63,99,0.65);
  58. padding-left: 12px;
  59. }
  60. QComboBox:hover
  61. {
  62. border: 1px solid #4458FE;
  63. border-radius: 4px;
  64. background:transparent;
  65. }
  66. /* 下拉箭头所在的位置方框 */
  67. QComboBox::drop-down
  68. {
  69. width: 24px;
  70. border: none;
  71. }
  72. /* 下拉箭头图标 */
  73. QComboBox::down-arrow
  74. {
  75. image: url(:/icon/down_arrow.png);
  76. height:16px;
  77. width:16px;
  78. }
  79. /* 下拉条样式,就是view,整个下拉窗体的样式 */
  80. QComboBox QAbstractItemView
  81. {
  82. background-color: #FFFFFF;
  83. margin: 12px;
  84. outline:0px;
  85. font-size:14px;
  86. color: #3A3F63;
  87. border-radius: 4px;
  88. }
  89. /* 使下面两句生效,需要加上如下语句 */
  90. /* m_comBoxDev->setView(new QListView()); */
  91. QComboBox QAbstractItemView::item
  92. {
  93. background-color: #FFFFFF;
  94. border-radius:4px;
  95. color: #3A3F63;
  96. padding-left: 12px;
  97. height: 32px;
  98. }
  99. QComboBox QAbstractItemView::item:hover
  100. {
  101. border-radius:4px;
  102. background-color: #EEF2FF;
  103. }
  104. /******** combobox 滚动条 *********/
  105. /*主体部分*/
  106. QComboBox QScrollBar::vertical
  107. {
  108. width:8px;
  109. background:transparent;
  110. border:none;
  111. border-radius:5px;
  112. }
  113. /*滑块主体*/
  114. QComboBox QScrollBar::handle::vertical
  115. {
  116. width: 8px;
  117. background: #E2E2E2;
  118. border-radius: 3px;
  119. min-width: 8px;
  120. }
  121. QComboBox QScrollBar::handle::vertical::hover
  122. {
  123. background:transparent;
  124. }
  125. /*上箭头*/
  126. QComboBox QScrollBar::add-line::vertical
  127. {
  128. border:none;
  129. }
  130. /*下箭头*/
  131. QComboBox QScrollBar::sub-line::vertical
  132. {
  133. border:none;
  134. }
  135. /* ==========================================================
  136. * QCheckBox
  137. * ========================================================== */
  138. QCheckBox
  139. {
  140. font-weight: 400;
  141. font-size: 14px;
  142. color: #3A3F63;
  143. }
  144. QCheckBox::indicator
  145. {
  146. width: 16px;
  147. height: 16px;
  148. }
  149. QCheckBox::indicator:unchecked
  150. {
  151. image: url(:/icon/unchecked.png);
  152. }
  153. QCheckBox::indicator:checked
  154. {
  155. image: url(:/icon/checked.png);
  156. }