singlecompareroadwidget.qss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. /* 下拉箭头所在的位置方框 */
  72. QComboBox::drop-down
  73. {
  74. width: 24px;
  75. border: none;
  76. }
  77. /* 下拉箭头图标 */
  78. QComboBox::down-arrow
  79. {
  80. image: url(:/icon/down_arrow.png);
  81. height:16px;
  82. width:16px;
  83. }
  84. /* 下拉条样式,就是view,整个下拉窗体的样式 */
  85. QComboBox QAbstractItemView
  86. {
  87. background-color: #FFFFFF;
  88. margin: 12px;
  89. outline:0px;
  90. font-size:14px;
  91. color: #3A3F63;
  92. border-radius: 4px;
  93. }
  94. /* 使下面两句生效,需要加上如下语句 */
  95. /* m_comBoxDev->setView(new QListView()); */
  96. QComboBox QAbstractItemView::item
  97. {
  98. background-color: #FFFFFF;
  99. border-radius:4px;
  100. color: #3A3F63;
  101. padding-left: 12px;
  102. height: 32px;
  103. }
  104. QComboBox QAbstractItemView::item:hover
  105. {
  106. border-radius:4px;
  107. background-color: #EEF2FF;
  108. }
  109. /******** combobox 滚动条 *********/
  110. /*主体部分*/
  111. QComboBox QScrollBar::vertical
  112. {
  113. width:8px;
  114. background:transparent;
  115. border:none;
  116. border-radius:5px;
  117. }
  118. /*滑块主体*/
  119. QComboBox QScrollBar::handle::vertical
  120. {
  121. width: 8px;
  122. background: #E2E2E2;
  123. border-radius: 3px;
  124. min-width: 8px;
  125. }
  126. QComboBox QScrollBar::handle::vertical::hover
  127. {
  128. background:transparent;
  129. }
  130. /*上箭头*/
  131. QComboBox QScrollBar::add-line::vertical
  132. {
  133. border:none;
  134. }
  135. /*下箭头*/
  136. QComboBox QScrollBar::sub-line::vertical
  137. {
  138. border:none;
  139. }
  140. /* ==========================================================
  141. * QCheckBox
  142. * ========================================================== */
  143. QCheckBox
  144. {
  145. font-weight: 400;
  146. font-size: 14px;
  147. color: #3A3F63;
  148. }
  149. QCheckBox::indicator
  150. {
  151. width: 16px;
  152. height: 16px;
  153. }
  154. QCheckBox::indicator:unchecked
  155. {
  156. image: url(:/icon/unchecked.png);
  157. }
  158. QCheckBox::indicator:checked
  159. {
  160. image: url(:/icon/checked.png);
  161. }