savetotemplate.ui 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>SaveToTemplate</class>
  4. <widget class="QDialog" name="SaveToTemplate">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>416</width>
  10. <height>217</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Dialog</string>
  15. </property>
  16. <property name="styleSheet">
  17. <string notr="true">QDialog#SaveToTemplate{
  18. background:transparent;
  19. };</string>
  20. </property>
  21. <widget class="QWidget" name="widget" native="true">
  22. <property name="geometry">
  23. <rect>
  24. <x>0</x>
  25. <y>0</y>
  26. <width>416</width>
  27. <height>217</height>
  28. </rect>
  29. </property>
  30. <property name="styleSheet">
  31. <string notr="true">QWidget{
  32. background: #FFFFFF;
  33. border-radius: 8px;
  34. font-family: 思源黑体R;
  35. font-weight: 400;
  36. font-size: 14px;
  37. color: #3A3F63;
  38. line-height: 21px;
  39. text-align: left;
  40. font-style: normal;
  41. }
  42. QLabel#label_NC1
  43. {
  44. font-family: 思源黑体M;
  45. font-weight: bold;
  46. font-size: 18px;
  47. color: #3A3F63;
  48. line-height: 27px;
  49. text-transform: uppercase;
  50. }
  51. QLabel#label_line
  52. {
  53. background: #E6E9F4;
  54. }
  55. QLabel#label_warn
  56. {
  57. color:red;
  58. }
  59. QPushButton#pBtn_close{
  60. border-image: url(:/ESM-8C_ICON/Dialog_close.png);
  61. }
  62. QPushButton#pBtn_close:hover{
  63. border-image: url(:/ESM-8C_ICON/Dialog_close2.png);
  64. }
  65. /********* 普通方框按钮三种状态效果 *********/
  66. QPushButton#pBtn_cancel
  67. {
  68. border-radius: 16px;
  69. text-align: center;
  70. background: #FFFFFF;
  71. border-radius: 16px;
  72. border: 1px solid #E6E9F4;
  73. color: #3A3F63;
  74. }
  75. QPushButton#pBtn_cancel:hover
  76. {
  77. border-radius: 16px;
  78. text-align: center;
  79. background: #FFFFFF;
  80. border-radius: 16px;
  81. border: 1px solid #4458FE;
  82. color: #4458FE;
  83. }
  84. /********* 带有底色按钮三种状态效果 *********/
  85. QPushButton#pBtn_ok
  86. {
  87. border-radius: 16px;
  88. text-align: center;
  89. color:white;
  90. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  91. border-radius: 16px;
  92. }
  93. QPushButton#pBtn_ok:hover
  94. {
  95. border-radius: 16px;
  96. text-align: center;
  97. color:white;
  98. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  99. border-radius: 16px;
  100. }
  101. /**************** 报警红框 ****************/
  102. QLineEdit
  103. {
  104. background: #FFFFFF;
  105. border-radius: 4px;
  106. padding-left:12px;
  107. border: 1px solid #E6E9F4;
  108. }
  109. QLineEdit[Warn=true]
  110. {
  111. border: 1px solid #D21F21;
  112. }
  113. QLineEdit:!enabled/* 或者disable */
  114. {
  115. background: rgba(0,0,0,0.04);
  116. border: 1px solid #E6E9F4;
  117. }
  118. </string>
  119. </property>
  120. <widget class="QLabel" name="label_NC1">
  121. <property name="geometry">
  122. <rect>
  123. <x>32</x>
  124. <y>18</y>
  125. <width>110</width>
  126. <height>18</height>
  127. </rect>
  128. </property>
  129. <property name="text">
  130. <string>保存为模版</string>
  131. </property>
  132. </widget>
  133. <widget class="QLabel" name="label_line">
  134. <property name="geometry">
  135. <rect>
  136. <x>0</x>
  137. <y>56</y>
  138. <width>416</width>
  139. <height>1</height>
  140. </rect>
  141. </property>
  142. <property name="text">
  143. <string/>
  144. </property>
  145. </widget>
  146. <widget class="QPushButton" name="pBtn_close">
  147. <property name="geometry">
  148. <rect>
  149. <x>368</x>
  150. <y>12</y>
  151. <width>32</width>
  152. <height>32</height>
  153. </rect>
  154. </property>
  155. <property name="text">
  156. <string/>
  157. </property>
  158. </widget>
  159. <widget class="QLabel" name="label_NC3_x">
  160. <property name="geometry">
  161. <rect>
  162. <x>32</x>
  163. <y>98</y>
  164. <width>7</width>
  165. <height>14</height>
  166. </rect>
  167. </property>
  168. <property name="text">
  169. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt;*&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  170. </property>
  171. </widget>
  172. <widget class="QLabel" name="label_NC4">
  173. <property name="geometry">
  174. <rect>
  175. <x>40</x>
  176. <y>98</y>
  177. <width>70</width>
  178. <height>14</height>
  179. </rect>
  180. </property>
  181. <property name="text">
  182. <string>模板名称:</string>
  183. </property>
  184. </widget>
  185. <widget class="QLineEdit" name="lineEdit">
  186. <property name="geometry">
  187. <rect>
  188. <x>110</x>
  189. <y>89</y>
  190. <width>274</width>
  191. <height>32</height>
  192. </rect>
  193. </property>
  194. <property name="font">
  195. <font>
  196. <family>思源黑体R</family>
  197. <pointsize>-1</pointsize>
  198. <weight>50</weight>
  199. <italic>false</italic>
  200. <bold>false</bold>
  201. </font>
  202. </property>
  203. <property name="placeholderText">
  204. <string>请输入</string>
  205. </property>
  206. </widget>
  207. <widget class="QPushButton" name="pBtn_cancel">
  208. <property name="geometry">
  209. <rect>
  210. <x>248</x>
  211. <y>153</y>
  212. <width>60</width>
  213. <height>32</height>
  214. </rect>
  215. </property>
  216. <property name="text">
  217. <string>取消</string>
  218. </property>
  219. </widget>
  220. <widget class="QPushButton" name="pBtn_ok">
  221. <property name="geometry">
  222. <rect>
  223. <x>324</x>
  224. <y>153</y>
  225. <width>60</width>
  226. <height>32</height>
  227. </rect>
  228. </property>
  229. <property name="text">
  230. <string>保存</string>
  231. </property>
  232. </widget>
  233. <widget class="QLabel" name="label_warn">
  234. <property name="geometry">
  235. <rect>
  236. <x>116</x>
  237. <y>126</y>
  238. <width>261</width>
  239. <height>20</height>
  240. </rect>
  241. </property>
  242. <property name="text">
  243. <string/>
  244. </property>
  245. </widget>
  246. </widget>
  247. </widget>
  248. <resources/>
  249. <connections/>
  250. </ui>