You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1147 lines
39 KiB

2 years ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>1448</width>
  10. <height>1040</height>
  11. </rect>
  12. </property>
  13. <property name="sizePolicy">
  14. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  15. <horstretch>0</horstretch>
  16. <verstretch>8</verstretch>
  17. </sizepolicy>
  18. </property>
  19. <property name="windowTitle">
  20. <string>心电单(三)导上位机</string>
  21. </property>
  22. <property name="styleSheet">
  23. <string notr="true">/*
  24. Aqua Style Sheet for QT Applications
  25. Author: Jaime A. Quiroga P.
  26. Company: GTRONICK
  27. Last updated: 22/01/2019, 07:55.
  28. Available at: https://github.com/GTRONICK/QSS/blob/master/Aqua.qss
  29. */
  30. QMainWindow {
  31. background-color:#ececec;
  32. }
  33. QTextEdit {
  34. border-width: 1px;
  35. border-style: solid;
  36. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  37. }
  38. QPlainTextEdit {
  39. border-width: 1px;
  40. border-style: solid;
  41. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  42. }
  43. QToolButton {
  44. border-style: solid;
  45. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  46. border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227));
  47. border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217));
  48. border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  49. border-width: 1px;
  50. border-radius: 5px;
  51. color: rgb(0,0,0);
  52. padding: 2px;
  53. background-color: rgb(255,255,255);
  54. }
  55. QToolButton:hover{
  56. border-style: solid;
  57. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(195, 195, 195), stop:1 rgb(222, 222, 222));
  58. border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(197, 197, 197), stop:1 rgb(227, 227, 227));
  59. border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(197, 197, 197));
  60. border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(195, 195, 195), stop:1 rgb(222, 222, 222));
  61. border-width: 1px;
  62. border-radius: 5px;
  63. color: rgb(0,0,0);
  64. padding: 2px;
  65. background-color: rgb(255,255,255);
  66. }
  67. QToolButton:pressed{
  68. border-style: solid;
  69. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  70. border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227));
  71. border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217));
  72. border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  73. border-width: 1px;
  74. border-radius: 5px;
  75. color: rgb(0,0,0);
  76. padding: 2px;
  77. background-color: rgb(142,142,142);
  78. }
  79. QPushButton{
  80. border-style: solid;
  81. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  82. border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227));
  83. border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217));
  84. border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  85. border-width: 1px;
  86. border-radius: 5px;
  87. color: rgb(0,0,0);
  88. padding: 2px;
  89. background-color: rgb(255,255,255);
  90. }
  91. QPushButton::default{
  92. border-style: solid;
  93. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  94. border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227));
  95. border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217));
  96. border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  97. border-width: 1px;
  98. border-radius: 5px;
  99. color: rgb(0,0,0);
  100. padding: 2px;
  101. background-color: rgb(255,255,255);
  102. }
  103. QPushButton:hover{
  104. border-style: solid;
  105. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(195, 195, 195), stop:1 rgb(222, 222, 222));
  106. border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(197, 197, 197), stop:1 rgb(227, 227, 227));
  107. border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(197, 197, 197));
  108. border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(195, 195, 195), stop:1 rgb(222, 222, 222));
  109. border-width: 1px;
  110. border-radius: 5px;
  111. color: rgb(0,0,0);
  112. padding: 2px;
  113. background-color: rgb(255,255,255);
  114. }
  115. QPushButton:pressed{
  116. border-style: solid;
  117. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  118. border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227));
  119. border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217));
  120. border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  121. border-width: 1px;
  122. border-radius: 5px;
  123. color: rgb(0,0,0);
  124. padding: 2px;
  125. background-color: rgb(142,142,142);
  126. }
  127. QPushButton:disabled{
  128. border-style: solid;
  129. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  130. border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227));
  131. border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217));
  132. border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222));
  133. border-width: 1px;
  134. border-radius: 5px;
  135. color: #808086;
  136. padding: 2px;
  137. background-color: rgb(142,142,142);
  138. }
  139. QLineEdit {
  140. border-width: 1px; border-radius: 4px;
  141. border-style: solid;
  142. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  143. }
  144. QLabel {
  145. color: #000000;
  146. }
  147. QLCDNumber {
  148. color: rgb(0, 113, 255, 255);
  149. }
  150. QProgressBar {
  151. text-align: center;
  152. color: rgb(240, 240, 240);
  153. border-width: 1px;
  154. border-radius: 10px;
  155. border-color: rgb(230, 230, 230);
  156. border-style: solid;
  157. background-color:rgb(207,207,207);
  158. }
  159. QProgressBar::chunk {
  160. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255));
  161. border-radius: 10px;
  162. }
  163. QMenuBar {
  164. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(207, 209, 207, 255), stop:1 rgba(230, 229, 230, 255));
  165. }
  166. QMenuBar::item {
  167. color: #000000;
  168. spacing: 3px;
  169. padding: 1px 4px;
  170. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(207, 209, 207, 255), stop:1 rgba(230, 229, 230, 255));
  171. }
  172. QMenuBar::item:selected {
  173. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  174. color: #FFFFFF;
  175. }
  176. QMenu::item:selected {
  177. border-style: solid;
  178. border-top-color: transparent;
  179. border-right-color: transparent;
  180. border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  181. border-bottom-color: transparent;
  182. border-left-width: 2px;
  183. color: #000000;
  184. padding-left:15px;
  185. padding-top:4px;
  186. padding-bottom:4px;
  187. padding-right:7px;
  188. }
  189. QMenu::item {
  190. border-style: solid;
  191. border-top-color: transparent;
  192. border-right-color: transparent;
  193. border-left-color: transparent;
  194. border-bottom-color: transparent;
  195. border-bottom-width: 1px;
  196. color: #000000;
  197. padding-left:17px;
  198. padding-top:4px;
  199. padding-bottom:4px;
  200. padding-right:7px;
  201. }
  202. QTabWidget {
  203. color:rgb(0,0,0);
  204. background-color:#000000;
  205. }
  206. QTabWidget::pane {
  207. border-color: rgb(223,223,223);
  208. background-color:rgb(226,226,226);
  209. border-style: solid;
  210. border-width: 2px;
  211. border-radius: 6px;
  212. }
  213. QTabBar::tab:first {
  214. border-style: solid;
  215. border-left-width:1px;
  216. border-right-width:0px;
  217. border-top-width:1px;
  218. border-bottom-width:1px;
  219. border-top-color: rgb(209,209,209);
  220. border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229));
  221. border-bottom-color: rgb(229,229,229);
  222. border-top-left-radius: 4px;
  223. border-bottom-left-radius: 4px;
  224. color: #000000;
  225. padding: 3px;
  226. margin-left:0px;
  227. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(255, 255, 255, 255));
  228. }
  229. QTabBar::tab:last {
  230. border-style: solid;
  231. border-width:1px;
  232. border-top-color: rgb(209,209,209);
  233. border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229));
  234. border-right-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229));
  235. border-bottom-color: rgb(229,229,229);
  236. border-top-right-radius: 4px;
  237. border-bottom-right-radius: 4px;
  238. color: #000000;
  239. padding: 3px;
  240. margin-left:0px;
  241. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(255, 255, 255, 255));
  242. }
  243. QTabBar::tab {
  244. border-style: solid;
  245. border-top-width:1px;
  246. border-bottom-width:1px;
  247. border-left-width:1px;
  248. border-top-color: rgb(209,209,209);
  249. border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229));
  250. border-bottom-color: rgb(229,229,229);
  251. color: #000000;
  252. padding: 3px;
  253. margin-left:0px;
  254. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(255, 255, 255, 255));
  255. }
  256. QTabBar::tab:selected, QTabBar::tab:last:selected, QTabBar::tab:hover {
  257. border-style: solid;
  258. border-left-width:1px;
  259. border-right-color: transparent;
  260. border-top-color: rgb(209,209,209);
  261. border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229));
  262. border-bottom-color: rgb(229,229,229);
  263. color: #FFFFFF;
  264. padding: 3px;
  265. margin-left:0px;
  266. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  267. }
  268. QTabBar::tab:selected, QTabBar::tab:first:selected, QTabBar::tab:hover {
  269. border-style: solid;
  270. border-left-width:1px;
  271. border-bottom-width:1px;
  272. border-top-width:1px;
  273. border-right-color: transparent;
  274. border-top-color: rgb(209,209,209);
  275. border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229));
  276. border-bottom-color: rgb(229,229,229);
  277. color: #FFFFFF;
  278. padding: 3px;
  279. margin-left:0px;
  280. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  281. }
  282. QCheckBox {
  283. color: #000000;
  284. padding: 2px;
  285. }
  286. QCheckBox:disabled {
  287. color: #808086;
  288. padding: 2px;
  289. }
  290. QCheckBox:hover {
  291. border-radius:4px;
  292. border-style:solid;
  293. padding-left: 1px;
  294. padding-right: 1px;
  295. padding-bottom: 1px;
  296. padding-top: 1px;
  297. border-width:1px;
  298. border-color: transparent;
  299. }
  300. QCheckBox::indicator:checked {
  301. height: 10px;
  302. width: 10px;
  303. border-style:solid;
  304. border-width: 1px;
  305. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  306. color: #000000;
  307. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  308. }
  309. QCheckBox::indicator:unchecked {
  310. height: 10px;
  311. width: 10px;
  312. border-style:solid;
  313. border-width: 1px;
  314. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  315. color: #000000;
  316. }
  317. QRadioButton {
  318. color: 000000;
  319. padding: 1px;
  320. }
  321. QRadioButton::indicator:checked {
  322. height: 10px;
  323. width: 10px;
  324. border-style:solid;
  325. border-radius:5px;
  326. border-width: 1px;
  327. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  328. color: #a9b7c6;
  329. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  330. }
  331. QRadioButton::indicator:!checked {
  332. height: 10px;
  333. width: 10px;
  334. border-style:solid;
  335. border-radius:5px;
  336. border-width: 1px;
  337. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  338. color: #a9b7c6;
  339. background-color: transparent;
  340. }
  341. QStatusBar {
  342. color:#027f7f;
  343. }
  344. QSpinBox {
  345. border-style: solid;
  346. border-width: 1px;
  347. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  348. }
  349. QDoubleSpinBox {
  350. border-style: solid;
  351. border-width: 1px;
  352. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  353. }
  354. QTimeEdit {
  355. border-style: solid;
  356. border-width: 1px;
  357. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  358. }
  359. QDateTimeEdit {
  360. border-style: solid;
  361. border-width: 1px;
  362. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  363. }
  364. QDateEdit {
  365. border-style: solid;
  366. border-width: 1px;
  367. border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255));
  368. }
  369. QToolBox {
  370. color: #a9b7c6;
  371. background-color:#000000;
  372. }
  373. QToolBox::tab {
  374. color: #a9b7c6;
  375. background-color:#000000;
  376. }
  377. QToolBox::tab:selected {
  378. color: #FFFFFF;
  379. background-color:#000000;
  380. }
  381. QScrollArea {
  382. color: #FFFFFF;
  383. background-color:#000000;
  384. }
  385. QSlider::groove:horizontal {
  386. height: 5px;
  387. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255));
  388. }
  389. QSlider::groove:vertical {
  390. width: 5px;
  391. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255));
  392. }
  393. QSlider::handle:horizontal {
  394. background: rgb(253,253,253);
  395. border-style: solid;
  396. border-width: 1px;
  397. border-color: rgb(207,207,207);
  398. width: 12px;
  399. margin: -5px 0;
  400. border-radius: 7px;
  401. }
  402. QSlider::handle:vertical {
  403. background: rgb(253,253,253);
  404. border-style: solid;
  405. border-width: 1px;
  406. border-color: rgb(207,207,207);
  407. height: 12px;
  408. margin: 0 -5px;
  409. border-radius: 7px;
  410. }
  411. QSlider::add-page:horizontal {
  412. background: rgb(181,181,181);
  413. }
  414. QSlider::add-page:vertical {
  415. background: rgb(181,181,181);
  416. }
  417. QSlider::sub-page:horizontal {
  418. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255));
  419. }
  420. QSlider::sub-page:vertical {
  421. background-color: qlineargradient(spread:pad, y1:0.5, x1:1, y2:0.5, x2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255));
  422. }
  423. QScrollBar:horizontal {
  424. max-height: 20px;
  425. border: 1px transparent grey;
  426. margin: 0px 20px 0px 20px;
  427. }
  428. QScrollBar:vertical {
  429. max-width: 20px;
  430. border: 1px transparent grey;
  431. margin: 20px 0px 20px 0px;
  432. }
  433. QScrollBar::handle:horizontal {
  434. background: rgb(253,253,253);
  435. border-style: solid;
  436. border-width: 1px;
  437. border-color: rgb(207,207,207);
  438. border-radius: 7px;
  439. min-width: 25px;
  440. }
  441. QScrollBar::handle:horizontal:hover {
  442. background: rgb(253,253,253);
  443. border-style: solid;
  444. border-width: 1px;
  445. border-color: rgb(147, 200, 200);
  446. border-radius: 7px;
  447. min-width: 25px;
  448. }
  449. QScrollBar::handle:vertical {
  450. background: rgb(253,253,253);
  451. border-style: solid;
  452. border-width: 1px;
  453. border-color: rgb(207,207,207);
  454. border-radius: 7px;
  455. min-height: 25px;
  456. }
  457. QScrollBar::handle:vertical:hover {
  458. background: rgb(253,253,253);
  459. border-style: solid;
  460. border-width: 1px;
  461. border-color: rgb(147, 200, 200);
  462. border-radius: 7px;
  463. min-height: 25px;
  464. }
  465. QScrollBar::add-line:horizontal {
  466. border: 2px transparent grey;
  467. border-top-right-radius: 7px;
  468. border-bottom-right-radius: 7px;
  469. background: rgba(34, 142, 255, 255);
  470. width: 20px;
  471. subcontrol-position: right;
  472. subcontrol-origin: margin;
  473. }
  474. QScrollBar::add-line:horizontal:pressed {
  475. border: 2px transparent grey;
  476. border-top-right-radius: 7px;
  477. border-bottom-right-radius: 7px;
  478. background: rgb(181,181,181);
  479. width: 20px;
  480. subcontrol-position: right;
  481. subcontrol-origin: margin;
  482. }
  483. QScrollBar::add-line:vertical {
  484. border: 2px transparent grey;
  485. border-bottom-left-radius: 7px;
  486. border-bottom-right-radius: 7px;
  487. background: rgba(34, 142, 255, 255);
  488. height: 20px;
  489. subcontrol-position: bottom;
  490. subcontrol-origin: margin;
  491. }
  492. QScrollBar::add-line:vertical:pressed {
  493. border: 2px transparent grey;
  494. border-bottom-left-radius: 7px;
  495. border-bottom-right-radius: 7px;
  496. background: rgb(181,181,181);
  497. height: 20px;
  498. subcontrol-position: bottom;
  499. subcontrol-origin: margin;
  500. }
  501. QScrollBar::sub-line:horizontal {
  502. border: 2px transparent grey;
  503. border-top-left-radius: 7px;
  504. border-bottom-left-radius: 7px;
  505. background: rgba(34, 142, 255, 255);
  506. width: 20px;
  507. subcontrol-position: left;
  508. subcontrol-origin: margin;
  509. }
  510. QScrollBar::sub-line:horizontal:pressed {
  511. border: 2px transparent grey;
  512. border-top-left-radius: 7px;
  513. border-bottom-left-radius: 7px;
  514. background: rgb(181,181,181);
  515. width: 20px;
  516. subcontrol-position: left;
  517. subcontrol-origin: margin;
  518. }
  519. QScrollBar::sub-line:vertical {
  520. border: 2px transparent grey;
  521. border-top-left-radius: 7px;
  522. border-top-right-radius: 7px;
  523. background: rgba(34, 142, 255, 255);
  524. height: 20px;
  525. subcontrol-position: top;
  526. subcontrol-origin: margin;
  527. }
  528. QScrollBar::sub-line:vertical:pressed {
  529. border: 2px transparent grey;
  530. border-top-left-radius: 7px;
  531. border-top-right-radius: 7px;
  532. background: rgb(181,181,181);
  533. height: 20px;
  534. subcontrol-position: top;
  535. subcontrol-origin: margin;
  536. }
  537. QScrollBar::left-arrow:horizontal {
  538. border: 1px transparent grey;
  539. border-top-left-radius: 3px;
  540. border-bottom-left-radius: 3px;
  541. width: 6px;
  542. height: 6px;
  543. background: white;
  544. }
  545. QScrollBar::right-arrow:horizontal {
  546. border: 1px transparent grey;
  547. border-top-right-radius: 3px;
  548. border-bottom-right-radius: 3px;
  549. width: 6px;
  550. height: 6px;
  551. background: white;
  552. }
  553. QScrollBar::up-arrow:vertical {
  554. border: 1px transparent grey;
  555. border-top-left-radius: 3px;
  556. border-top-right-radius: 3px;
  557. width: 6px;
  558. height: 6px;
  559. background: white;
  560. }
  561. QScrollBar::down-arrow:vertical {
  562. border: 1px transparent grey;
  563. border-bottom-left-radius: 3px;
  564. border-bottom-right-radius: 3px;
  565. width: 6px;
  566. height: 6px;
  567. background: white;
  568. }
  569. QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
  570. background: none;
  571. }
  572. QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
  573. background: none;
  574. }</string>
  575. </property>
  576. <widget class="QWidget" name="top">
  577. <property name="styleSheet">
  578. <string notr="true"/>
  579. </property>
  580. <layout class="QVBoxLayout" name="verticalLayout">
  581. <item>
  582. <widget class="QWidget" name="top2" native="true">
  583. <property name="sizePolicy">
  584. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  585. <horstretch>0</horstretch>
  586. <verstretch>0</verstretch>
  587. </sizepolicy>
  588. </property>
  589. <layout class="QHBoxLayout" name="horizontalLayout">
  590. <item>
  591. <widget class="QWidget" name="sidebar" native="true">
  592. <property name="minimumSize">
  593. <size>
  594. <width>200</width>
  595. <height>0</height>
  596. </size>
  597. </property>
  598. <property name="maximumSize">
  599. <size>
  600. <width>200</width>
  601. <height>16777215</height>
  602. </size>
  603. </property>
  604. <layout class="QVBoxLayout" name="verticalLayout_2">
  605. <item>
  606. <widget class="QGroupBox" name="serialSettingGB">
  607. <property name="maximumSize">
  608. <size>
  609. <width>16777215</width>
  610. <height>16777215</height>
  611. </size>
  612. </property>
  613. <property name="title">
  614. <string>串口设置</string>
  615. </property>
  616. <layout class="QGridLayout" name="gridLayout">
  617. <item row="0" column="1">
  618. <widget class="QComboBox" name="serialPortCB"/>
  619. </item>
  620. <item row="3" column="0" colspan="2">
  621. <widget class="QPushButton" name="serialOpenKey">
  622. <property name="text">
  623. <string>打开</string>
  624. </property>
  625. </widget>
  626. </item>
  627. <item row="1" column="1">
  628. <widget class="QComboBox" name="serialBaudrateCB"/>
  629. </item>
  630. <item row="1" column="0">
  631. <widget class="QLabel" name="serialBaudrateLable">
  632. <property name="text">
  633. <string>波特率</string>
  634. </property>
  635. </widget>
  636. </item>
  637. <item row="0" column="0">
  638. <widget class="QLabel" name="serialPortLable">
  639. <property name="text">
  640. <string>串口</string>
  641. </property>
  642. </widget>
  643. </item>
  644. <item row="2" column="0" colspan="2">
  645. <widget class="QPushButton" name="serialPortRefreshKey">
  646. <property name="text">
  647. <string>刷新</string>
  648. </property>
  649. </widget>
  650. </item>
  651. </layout>
  652. </widget>
  653. </item>
  654. <item>
  655. <widget class="QGroupBox" name="PublicStateBox">
  656. <property name="sizePolicy">
  657. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  658. <horstretch>0</horstretch>
  659. <verstretch>0</verstretch>
  660. </sizepolicy>
  661. </property>
  662. <property name="minimumSize">
  663. <size>
  664. <width>0</width>
  665. <height>0</height>
  666. </size>
  667. </property>
  668. <property name="maximumSize">
  669. <size>
  670. <width>16777215</width>
  671. <height>16777215</height>
  672. </size>
  673. </property>
  674. <property name="autoFillBackground">
  675. <bool>false</bool>
  676. </property>
  677. <property name="title">
  678. <string>通用参数</string>
  679. </property>
  680. <layout class="QFormLayout" name="formLayout_3">
  681. <item row="0" column="0">
  682. <widget class="QLabel" name="PublicState_DeviceID_Lable">
  683. <property name="sizePolicy">
  684. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  685. <horstretch>1</horstretch>
  686. <verstretch>0</verstretch>
  687. </sizepolicy>
  688. </property>
  689. <property name="minimumSize">
  690. <size>
  691. <width>0</width>
  692. <height>25</height>
  693. </size>
  694. </property>
  695. <property name="maximumSize">
  696. <size>
  697. <width>16777215</width>
  698. <height>25</height>
  699. </size>
  700. </property>
  701. <property name="text">
  702. <string>设备ID </string>
  703. </property>
  704. </widget>
  705. </item>
  706. <item row="0" column="1">
  707. <widget class="QTextEdit" name="PublicState_DeviceID">
  708. <property name="sizePolicy">
  709. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  710. <horstretch>1</horstretch>
  711. <verstretch>0</verstretch>
  712. </sizepolicy>
  713. </property>
  714. <property name="minimumSize">
  715. <size>
  716. <width>0</width>
  717. <height>25</height>
  718. </size>
  719. </property>
  720. <property name="maximumSize">
  721. <size>
  722. <width>16777215</width>
  723. <height>25</height>
  724. </size>
  725. </property>
  726. <property name="lineWrapColumnOrWidth">
  727. <number>2</number>
  728. </property>
  729. </widget>
  730. </item>
  731. </layout>
  732. </widget>
  733. </item>
  734. <item>
  735. <widget class="QGroupBox" name="StateGB">
  736. <property name="sizePolicy">
  737. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  738. <horstretch>0</horstretch>
  739. <verstretch>0</verstretch>
  740. </sizepolicy>
  741. </property>
  742. <property name="minimumSize">
  743. <size>
  744. <width>0</width>
  745. <height>0</height>
  746. </size>
  747. </property>
  748. <property name="maximumSize">
  749. <size>
  750. <width>16777215</width>
  751. <height>16777215</height>
  752. </size>
  753. </property>
  754. <property name="autoFillBackground">
  755. <bool>false</bool>
  756. </property>
  757. <property name="title">
  758. <string>状态</string>
  759. </property>
  760. <layout class="QFormLayout" name="formLayout_2">
  761. <item row="0" column="0">
  762. <widget class="QLabel" name="DeviceConnectStateLable">
  763. <property name="sizePolicy">
  764. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  765. <horstretch>0</horstretch>
  766. <verstretch>0</verstretch>
  767. </sizepolicy>
  768. </property>
  769. <property name="minimumSize">
  770. <size>
  771. <width>0</width>
  772. <height>25</height>
  773. </size>
  774. </property>
  775. <property name="maximumSize">
  776. <size>
  777. <width>16777215</width>
  778. <height>25</height>
  779. </size>
  780. </property>
  781. <property name="text">
  782. <string>设备连接状态</string>
  783. </property>
  784. </widget>
  785. </item>
  786. <item row="0" column="1">
  787. <widget class="QTextBrowser" name="DeviceConnectStateTB">
  788. <property name="sizePolicy">
  789. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  790. <horstretch>0</horstretch>
  791. <verstretch>0</verstretch>
  792. </sizepolicy>
  793. </property>
  794. <property name="minimumSize">
  795. <size>
  796. <width>0</width>
  797. <height>25</height>
  798. </size>
  799. </property>
  800. <property name="maximumSize">
  801. <size>
  802. <width>16777215</width>
  803. <height>25</height>
  804. </size>
  805. </property>
  806. <property name="lineWrapColumnOrWidth">
  807. <number>2</number>
  808. </property>
  809. </widget>
  810. </item>
  811. </layout>
  812. </widget>
  813. </item>
  814. <item>
  815. <widget class="QGroupBox" name="FunctionKeyGB">
  816. <property name="minimumSize">
  817. <size>
  818. <width>0</width>
  819. <height>0</height>
  820. </size>
  821. </property>
  822. <property name="title">
  823. <string>功能按键</string>
  824. </property>
  825. <layout class="QVBoxLayout" name="verticalLayout_3">
  826. <item>
  827. <widget class="QPushButton" name="clearPreview">
  828. <property name="sizePolicy">
  829. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  830. <horstretch>1</horstretch>
  831. <verstretch>0</verstretch>
  832. </sizepolicy>
  833. </property>
  834. <property name="minimumSize">
  835. <size>
  836. <width>0</width>
  837. <height>30</height>
  838. </size>
  839. </property>
  840. <property name="text">
  841. <string>清空显示</string>
  842. </property>
  843. </widget>
  844. </item>
  845. </layout>
  846. </widget>
  847. </item>
  848. <item>
  849. <widget class="QTextBrowser" name="textBrowser">
  850. <property name="html">
  851. <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
  852. &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
  853. p, li { white-space: pre-wrap; }
  854. &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'SimSun'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
  855. &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  856. </property>
  857. </widget>
  858. </item>
  859. <item>
  860. <spacer name="verticalSpacer">
  861. <property name="orientation">
  862. <enum>Qt::Vertical</enum>
  863. </property>
  864. <property name="sizeHint" stdset="0">
  865. <size>
  866. <width>20</width>
  867. <height>40</height>
  868. </size>
  869. </property>
  870. </spacer>
  871. </item>
  872. </layout>
  873. </widget>
  874. </item>
  875. <item>
  876. <widget class="QWidget" name="content" native="true">
  877. <property name="sizePolicy">
  878. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  879. <horstretch>0</horstretch>
  880. <verstretch>0</verstretch>
  881. </sizepolicy>
  882. </property>
  883. <layout class="QHBoxLayout" name="horizontalLayout_2">
  884. <item>
  885. <widget class="QTabWidget" name="buttonTabWidget">
  886. <property name="sizePolicy">
  887. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  888. <horstretch>0</horstretch>
  889. <verstretch>0</verstretch>
  890. </sizepolicy>
  891. </property>
  892. <property name="minimumSize">
  893. <size>
  894. <width>0</width>
  895. <height>0</height>
  896. </size>
  897. </property>
  898. <property name="maximumSize">
  899. <size>
  900. <width>16777215</width>
  901. <height>16777215</height>
  902. </size>
  903. </property>
  904. <property name="contextMenuPolicy">
  905. <enum>Qt::DefaultContextMenu</enum>
  906. </property>
  907. <property name="currentIndex">
  908. <number>0</number>
  909. </property>
  910. <widget class="QWidget" name="tab">
  911. <attribute name="title">
  912. <string>波形显示器</string>
  913. </attribute>
  914. <widget class="QGroupBox" name="serialSettingGB_2">
  915. <property name="geometry">
  916. <rect>
  917. <x>20</x>
  918. <y>20</y>
  919. <width>182</width>
  920. <height>126</height>
  921. </rect>
  922. </property>
  923. <property name="maximumSize">
  924. <size>
  925. <width>16777215</width>
  926. <height>16777215</height>
  927. </size>
  928. </property>
  929. <property name="title">
  930. <string>波形串口设置</string>
  931. </property>
  932. <layout class="QGridLayout" name="gridLayout_6">
  933. <item row="3" column="0" colspan="2">
  934. <widget class="QPushButton" name="waveSerialOpenKey">
  935. <property name="text">
  936. <string>打开</string>
  937. </property>
  938. </widget>
  939. </item>
  940. <item row="1" column="0">
  941. <widget class="QLabel" name="serialBaudrateLable_2">
  942. <property name="text">
  943. <string>波特率</string>
  944. </property>
  945. </widget>
  946. </item>
  947. <item row="0" column="1">
  948. <widget class="QComboBox" name="waveSerialPortCB"/>
  949. </item>
  950. <item row="0" column="0">
  951. <widget class="QLabel" name="serialPortLable_2">
  952. <property name="text">
  953. <string>串口</string>
  954. </property>
  955. </widget>
  956. </item>
  957. <item row="1" column="1">
  958. <widget class="QComboBox" name="waveSerialBaudrateCB"/>
  959. </item>
  960. <item row="2" column="0" colspan="2">
  961. <widget class="QPushButton" name="waveSerialPortRefreshKey">
  962. <property name="text">
  963. <string>刷新</string>
  964. </property>
  965. </widget>
  966. </item>
  967. <item row="4" column="0">
  968. <spacer name="verticalSpacer_2">
  969. <property name="orientation">
  970. <enum>Qt::Vertical</enum>
  971. </property>
  972. <property name="sizeHint" stdset="0">
  973. <size>
  974. <width>20</width>
  975. <height>40</height>
  976. </size>
  977. </property>
  978. </spacer>
  979. </item>
  980. </layout>
  981. </widget>
  982. </widget>
  983. </widget>
  984. </item>
  985. <item>
  986. <widget class="QGroupBox" name="displayGroupBox">
  987. <property name="sizePolicy">
  988. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  989. <horstretch>0</horstretch>
  990. <verstretch>0</verstretch>
  991. </sizepolicy>
  992. </property>
  993. <property name="minimumSize">
  994. <size>
  995. <width>600</width>
  996. <height>0</height>
  997. </size>
  998. </property>
  999. <property name="maximumSize">
  1000. <size>
  1001. <width>600</width>
  1002. <height>16777215</height>
  1003. </size>
  1004. </property>
  1005. <property name="title">
  1006. <string>DisplayBox</string>
  1007. </property>
  1008. <layout class="QVBoxLayout" name="verticalLayout_4">
  1009. <item>
  1010. <widget class="QGroupBox" name="instructionPreviewBox">
  1011. <property name="title">
  1012. <string>指令回执显示</string>
  1013. </property>
  1014. <layout class="QVBoxLayout" name="verticalLayout_6">
  1015. <item>
  1016. <widget class="QTextBrowser" name="instructionPreview">
  1017. <property name="sizePolicy">
  1018. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  1019. <horstretch>0</horstretch>
  1020. <verstretch>0</verstretch>
  1021. </sizepolicy>
  1022. </property>
  1023. <property name="minimumSize">
  1024. <size>
  1025. <width>0</width>
  1026. <height>0</height>
  1027. </size>
  1028. </property>
  1029. </widget>
  1030. </item>
  1031. </layout>
  1032. </widget>
  1033. </item>
  1034. <item>
  1035. <widget class="QGroupBox" name="reportPreviewBox">
  1036. <property name="title">
  1037. <string>上报回执显示</string>
  1038. </property>
  1039. <layout class="QVBoxLayout" name="verticalLayout_7">
  1040. <item>
  1041. <widget class="QTextBrowser" name="reportPreview">
  1042. <property name="sizePolicy">
  1043. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  1044. <horstretch>0</horstretch>
  1045. <verstretch>0</verstretch>
  1046. </sizepolicy>
  1047. </property>
  1048. <property name="minimumSize">
  1049. <size>
  1050. <width>0</width>
  1051. <height>0</height>
  1052. </size>
  1053. </property>
  1054. </widget>
  1055. </item>
  1056. </layout>
  1057. </widget>
  1058. </item>
  1059. <item>
  1060. <widget class="QGroupBox" name="uploadDataPreviewBox">
  1061. <property name="title">
  1062. <string>上传数据显示</string>
  1063. </property>
  1064. <layout class="QVBoxLayout" name="verticalLayout_5">
  1065. <item>
  1066. <widget class="QTextBrowser" name="uploadDataPreview">
  1067. <property name="sizePolicy">
  1068. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  1069. <horstretch>0</horstretch>
  1070. <verstretch>0</verstretch>
  1071. </sizepolicy>
  1072. </property>
  1073. <property name="minimumSize">
  1074. <size>
  1075. <width>0</width>
  1076. <height>0</height>
  1077. </size>
  1078. </property>
  1079. </widget>
  1080. </item>
  1081. </layout>
  1082. </widget>
  1083. </item>
  1084. <item>
  1085. <widget class="QGroupBox" name="uploadDataPreviewBox_2">
  1086. <property name="title">
  1087. <string>二进制</string>
  1088. </property>
  1089. <layout class="QVBoxLayout" name="verticalLayout_8">
  1090. <item>
  1091. <widget class="QTextBrowser" name="rawDataPreview">
  1092. <property name="sizePolicy">
  1093. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  1094. <horstretch>0</horstretch>
  1095. <verstretch>0</verstretch>
  1096. </sizepolicy>
  1097. </property>
  1098. <property name="minimumSize">
  1099. <size>
  1100. <width>0</width>
  1101. <height>0</height>
  1102. </size>
  1103. </property>
  1104. </widget>
  1105. </item>
  1106. </layout>
  1107. </widget>
  1108. </item>
  1109. </layout>
  1110. </widget>
  1111. </item>
  1112. </layout>
  1113. </widget>
  1114. </item>
  1115. </layout>
  1116. </widget>
  1117. </item>
  1118. </layout>
  1119. </widget>
  1120. <widget class="QMenuBar" name="menubar">
  1121. <property name="geometry">
  1122. <rect>
  1123. <x>0</x>
  1124. <y>0</y>
  1125. <width>1448</width>
  1126. <height>20</height>
  1127. </rect>
  1128. </property>
  1129. <widget class="QMenu" name="menu123">
  1130. <property name="title">
  1131. <string>iflytop</string>
  1132. </property>
  1133. </widget>
  1134. <addaction name="menu123"/>
  1135. </widget>
  1136. <widget class="QStatusBar" name="statusbar"/>
  1137. </widget>
  1138. <resources/>
  1139. <connections/>
  1140. </ui>