Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

428 řádky
8.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>Widget</class>
  4. <widget class="QWidget" name="Widget">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>787</width>
  10. <height>543</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Widget</string>
  15. </property>
  16. <widget class="QLabel" name="label">
  17. <property name="geometry">
  18. <rect>
  19. <x>31</x>
  20. <y>31</y>
  21. <width>30</width>
  22. <height>16</height>
  23. </rect>
  24. </property>
  25. <property name="text">
  26. <string>串口</string>
  27. </property>
  28. </widget>
  29. <widget class="QComboBox" name="comboBox_serialNum">
  30. <property name="geometry">
  31. <rect>
  32. <x>68</x>
  33. <y>31</y>
  34. <width>87</width>
  35. <height>21</height>
  36. </rect>
  37. </property>
  38. </widget>
  39. <widget class="QLabel" name="label_2">
  40. <property name="geometry">
  41. <rect>
  42. <x>162</x>
  43. <y>31</y>
  44. <width>45</width>
  45. <height>16</height>
  46. </rect>
  47. </property>
  48. <property name="text">
  49. <string>波特率</string>
  50. </property>
  51. </widget>
  52. <widget class="QLabel" name="label_3">
  53. <property name="geometry">
  54. <rect>
  55. <x>308</x>
  56. <y>31</y>
  57. <width>45</width>
  58. <height>16</height>
  59. </rect>
  60. </property>
  61. <property name="text">
  62. <string>数据位</string>
  63. </property>
  64. </widget>
  65. <widget class="QComboBox" name="comboBox_baudRate">
  66. <property name="geometry">
  67. <rect>
  68. <x>214</x>
  69. <y>31</y>
  70. <width>87</width>
  71. <height>21</height>
  72. </rect>
  73. </property>
  74. <item>
  75. <property name="text">
  76. <string>1200</string>
  77. </property>
  78. </item>
  79. <item>
  80. <property name="text">
  81. <string>2400</string>
  82. </property>
  83. </item>
  84. <item>
  85. <property name="text">
  86. <string>4800</string>
  87. </property>
  88. </item>
  89. <item>
  90. <property name="text">
  91. <string>9600</string>
  92. </property>
  93. </item>
  94. <item>
  95. <property name="text">
  96. <string>19200</string>
  97. </property>
  98. </item>
  99. <item>
  100. <property name="text">
  101. <string>38400</string>
  102. </property>
  103. </item>
  104. </widget>
  105. <widget class="QComboBox" name="comboBox_dataBit">
  106. <property name="geometry">
  107. <rect>
  108. <x>360</x>
  109. <y>31</y>
  110. <width>61</width>
  111. <height>21</height>
  112. </rect>
  113. </property>
  114. <item>
  115. <property name="text">
  116. <string>5</string>
  117. </property>
  118. </item>
  119. <item>
  120. <property name="text">
  121. <string>6</string>
  122. </property>
  123. </item>
  124. <item>
  125. <property name="text">
  126. <string>7</string>
  127. </property>
  128. </item>
  129. <item>
  130. <property name="text">
  131. <string>8</string>
  132. </property>
  133. </item>
  134. <item>
  135. <property name="text">
  136. <string>NONE</string>
  137. </property>
  138. </item>
  139. </widget>
  140. <widget class="QPushButton" name="btnConnect">
  141. <property name="geometry">
  142. <rect>
  143. <x>480</x>
  144. <y>30</y>
  145. <width>93</width>
  146. <height>28</height>
  147. </rect>
  148. </property>
  149. <property name="text">
  150. <string>连接</string>
  151. </property>
  152. </widget>
  153. <widget class="QComboBox" name="comboBox_xiaoyan">
  154. <property name="geometry">
  155. <rect>
  156. <x>80</x>
  157. <y>70</y>
  158. <width>91</width>
  159. <height>21</height>
  160. </rect>
  161. </property>
  162. <item>
  163. <property name="text">
  164. <string>无校验(N)</string>
  165. </property>
  166. </item>
  167. <item>
  168. <property name="text">
  169. <string>奇校验(O)</string>
  170. </property>
  171. </item>
  172. <item>
  173. <property name="text">
  174. <string>偶校验(E)</string>
  175. </property>
  176. </item>
  177. </widget>
  178. <widget class="QLabel" name="label_7">
  179. <property name="geometry">
  180. <rect>
  181. <x>30</x>
  182. <y>70</y>
  183. <width>51</width>
  184. <height>21</height>
  185. </rect>
  186. </property>
  187. <property name="text">
  188. <string>校验位</string>
  189. </property>
  190. </widget>
  191. <widget class="QLabel" name="label_8">
  192. <property name="geometry">
  193. <rect>
  194. <x>198</x>
  195. <y>70</y>
  196. <width>45</width>
  197. <height>16</height>
  198. </rect>
  199. </property>
  200. <property name="text">
  201. <string>停止位</string>
  202. </property>
  203. </widget>
  204. <widget class="QComboBox" name="comboBox_stopBit">
  205. <property name="geometry">
  206. <rect>
  207. <x>250</x>
  208. <y>70</y>
  209. <width>61</width>
  210. <height>21</height>
  211. </rect>
  212. </property>
  213. <item>
  214. <property name="text">
  215. <string>1</string>
  216. </property>
  217. </item>
  218. <item>
  219. <property name="text">
  220. <string>2</string>
  221. </property>
  222. </item>
  223. </widget>
  224. <widget class="QLineEdit" name="lineEdit">
  225. <property name="geometry">
  226. <rect>
  227. <x>420</x>
  228. <y>70</y>
  229. <width>231</width>
  230. <height>21</height>
  231. </rect>
  232. </property>
  233. </widget>
  234. <widget class="QPushButton" name="pushWrite">
  235. <property name="geometry">
  236. <rect>
  237. <x>660</x>
  238. <y>60</y>
  239. <width>93</width>
  240. <height>28</height>
  241. </rect>
  242. </property>
  243. <property name="text">
  244. <string>发送</string>
  245. </property>
  246. </widget>
  247. <widget class="QTextEdit" name="textEdit">
  248. <property name="geometry">
  249. <rect>
  250. <x>420</x>
  251. <y>100</y>
  252. <width>251</width>
  253. <height>151</height>
  254. </rect>
  255. </property>
  256. </widget>
  257. <widget class="QLabel" name="label_10">
  258. <property name="geometry">
  259. <rect>
  260. <x>70</x>
  261. <y>150</y>
  262. <width>21</width>
  263. <height>16</height>
  264. </rect>
  265. </property>
  266. <property name="text">
  267. <string>读</string>
  268. </property>
  269. </widget>
  270. <widget class="QComboBox" name="comboBox_stationAddress">
  271. <property name="geometry">
  272. <rect>
  273. <x>92</x>
  274. <y>120</y>
  275. <width>61</width>
  276. <height>21</height>
  277. </rect>
  278. </property>
  279. <item>
  280. <property name="text">
  281. <string>1</string>
  282. </property>
  283. </item>
  284. <item>
  285. <property name="text">
  286. <string>2</string>
  287. </property>
  288. </item>
  289. <item>
  290. <property name="text">
  291. <string>3</string>
  292. </property>
  293. </item>
  294. <item>
  295. <property name="text">
  296. <string>4</string>
  297. </property>
  298. </item>
  299. <item>
  300. <property name="text">
  301. <string>5</string>
  302. </property>
  303. </item>
  304. <item>
  305. <property name="text">
  306. <string>6</string>
  307. </property>
  308. </item>
  309. <item>
  310. <property name="text">
  311. <string>7</string>
  312. </property>
  313. </item>
  314. <item>
  315. <property name="text">
  316. <string>8</string>
  317. </property>
  318. </item>
  319. <item>
  320. <property name="text">
  321. <string>9</string>
  322. </property>
  323. </item>
  324. </widget>
  325. <widget class="QLabel" name="label_9">
  326. <property name="geometry">
  327. <rect>
  328. <x>40</x>
  329. <y>120</y>
  330. <width>45</width>
  331. <height>16</height>
  332. </rect>
  333. </property>
  334. <property name="text">
  335. <string>站地址</string>
  336. </property>
  337. </widget>
  338. <widget class="QLineEdit" name="lineEdit_length">
  339. <property name="geometry">
  340. <rect>
  341. <x>90</x>
  342. <y>210</y>
  343. <width>51</width>
  344. <height>21</height>
  345. </rect>
  346. </property>
  347. <property name="text">
  348. <string>00</string>
  349. </property>
  350. </widget>
  351. <widget class="QLineEdit" name="lineEdit_stratAddress">
  352. <property name="geometry">
  353. <rect>
  354. <x>100</x>
  355. <y>180</y>
  356. <width>51</width>
  357. <height>21</height>
  358. </rect>
  359. </property>
  360. <property name="text">
  361. <string>00</string>
  362. </property>
  363. </widget>
  364. <widget class="QLabel" name="label_12">
  365. <property name="geometry">
  366. <rect>
  367. <x>40</x>
  368. <y>210</y>
  369. <width>41</width>
  370. <height>16</height>
  371. </rect>
  372. </property>
  373. <property name="text">
  374. <string>长度</string>
  375. </property>
  376. </widget>
  377. <widget class="QLabel" name="label_11">
  378. <property name="geometry">
  379. <rect>
  380. <x>30</x>
  381. <y>180</y>
  382. <width>71</width>
  383. <height>16</height>
  384. </rect>
  385. </property>
  386. <property name="text">
  387. <string>起始地址</string>
  388. </property>
  389. </widget>
  390. <widget class="QComboBox" name="comboBox_gongnengma">
  391. <property name="geometry">
  392. <rect>
  393. <x>90</x>
  394. <y>150</y>
  395. <width>61</width>
  396. <height>21</height>
  397. </rect>
  398. </property>
  399. <item>
  400. <property name="text">
  401. <string>线圈</string>
  402. </property>
  403. </item>
  404. <item>
  405. <property name="text">
  406. <string>寄存器</string>
  407. </property>
  408. </item>
  409. </widget>
  410. <widget class="QPushButton" name="btn_read">
  411. <property name="geometry">
  412. <rect>
  413. <x>40</x>
  414. <y>260</y>
  415. <width>93</width>
  416. <height>28</height>
  417. </rect>
  418. </property>
  419. <property name="text">
  420. <string>读</string>
  421. </property>
  422. </widget>
  423. </widget>
  424. <layoutdefault spacing="6" margin="11"/>
  425. <resources/>
  426. <connections/>
  427. </ui>