singlecompareroadwidget.qss 3.4 KB

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