singlecompareroadwidget.qss 3.0 KB

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