port_dialog.ui 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>Dialog_port</class>
  4. <widget class="QDialog" name="Dialog_port">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>400</width>
  10. <height>300</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>连接设备</string>
  15. </property>
  16. <widget class="QComboBox" name="comboBox_2">
  17. <property name="geometry">
  18. <rect>
  19. <x>160</x>
  20. <y>50</y>
  21. <width>101</width>
  22. <height>22</height>
  23. </rect>
  24. </property>
  25. <property name="currentIndex">
  26. <number>3</number>
  27. </property>
  28. <item>
  29. <property name="text">
  30. <string>1200</string>
  31. </property>
  32. </item>
  33. <item>
  34. <property name="text">
  35. <string>2400</string>
  36. </property>
  37. </item>
  38. <item>
  39. <property name="text">
  40. <string>4800</string>
  41. </property>
  42. </item>
  43. <item>
  44. <property name="text">
  45. <string>9600</string>
  46. </property>
  47. </item>
  48. <item>
  49. <property name="text">
  50. <string>19200</string>
  51. </property>
  52. </item>
  53. <item>
  54. <property name="text">
  55. <string>38400</string>
  56. </property>
  57. </item>
  58. <item>
  59. <property name="text">
  60. <string>57600</string>
  61. </property>
  62. </item>
  63. <item>
  64. <property name="text">
  65. <string>115200</string>
  66. </property>
  67. </item>
  68. </widget>
  69. <widget class="QLabel" name="label_4">
  70. <property name="geometry">
  71. <rect>
  72. <x>100</x>
  73. <y>120</y>
  74. <width>54</width>
  75. <height>12</height>
  76. </rect>
  77. </property>
  78. <property name="text">
  79. <string>停止位:</string>
  80. </property>
  81. </widget>
  82. <widget class="QPushButton" name="pushButton_2">
  83. <property name="geometry">
  84. <rect>
  85. <x>210</x>
  86. <y>190</y>
  87. <width>75</width>
  88. <height>23</height>
  89. </rect>
  90. </property>
  91. <property name="text">
  92. <string>取消</string>
  93. </property>
  94. </widget>
  95. <widget class="QLabel" name="label_5">
  96. <property name="geometry">
  97. <rect>
  98. <x>100</x>
  99. <y>150</y>
  100. <width>54</width>
  101. <height>12</height>
  102. </rect>
  103. </property>
  104. <property name="text">
  105. <string>校验位:</string>
  106. </property>
  107. </widget>
  108. <widget class="QComboBox" name="comboBox_4">
  109. <property name="geometry">
  110. <rect>
  111. <x>160</x>
  112. <y>110</y>
  113. <width>101</width>
  114. <height>22</height>
  115. </rect>
  116. </property>
  117. <item>
  118. <property name="text">
  119. <string>1</string>
  120. </property>
  121. </item>
  122. <item>
  123. <property name="text">
  124. <string>2</string>
  125. </property>
  126. </item>
  127. </widget>
  128. <widget class="QLabel" name="label_3">
  129. <property name="geometry">
  130. <rect>
  131. <x>100</x>
  132. <y>90</y>
  133. <width>54</width>
  134. <height>12</height>
  135. </rect>
  136. </property>
  137. <property name="text">
  138. <string>数据位:</string>
  139. </property>
  140. </widget>
  141. <widget class="QLabel" name="label">
  142. <property name="geometry">
  143. <rect>
  144. <x>100</x>
  145. <y>30</y>
  146. <width>54</width>
  147. <height>12</height>
  148. </rect>
  149. </property>
  150. <property name="text">
  151. <string>串口号:</string>
  152. </property>
  153. </widget>
  154. <widget class="QPushButton" name="pushButton">
  155. <property name="geometry">
  156. <rect>
  157. <x>100</x>
  158. <y>190</y>
  159. <width>75</width>
  160. <height>23</height>
  161. </rect>
  162. </property>
  163. <property name="text">
  164. <string>确定</string>
  165. </property>
  166. </widget>
  167. <widget class="QComboBox" name="comboBox">
  168. <property name="geometry">
  169. <rect>
  170. <x>160</x>
  171. <y>20</y>
  172. <width>101</width>
  173. <height>22</height>
  174. </rect>
  175. </property>
  176. </widget>
  177. <widget class="QComboBox" name="comboBox_5">
  178. <property name="geometry">
  179. <rect>
  180. <x>160</x>
  181. <y>140</y>
  182. <width>101</width>
  183. <height>22</height>
  184. </rect>
  185. </property>
  186. <property name="currentIndex">
  187. <number>0</number>
  188. </property>
  189. <item>
  190. <property name="text">
  191. <string>无校验</string>
  192. </property>
  193. </item>
  194. <item>
  195. <property name="text">
  196. <string>奇校验</string>
  197. </property>
  198. </item>
  199. <item>
  200. <property name="text">
  201. <string>偶校验</string>
  202. </property>
  203. </item>
  204. </widget>
  205. <widget class="QLabel" name="label_2">
  206. <property name="geometry">
  207. <rect>
  208. <x>100</x>
  209. <y>60</y>
  210. <width>54</width>
  211. <height>12</height>
  212. </rect>
  213. </property>
  214. <property name="text">
  215. <string>波特率:</string>
  216. </property>
  217. </widget>
  218. <widget class="QComboBox" name="comboBox_3">
  219. <property name="geometry">
  220. <rect>
  221. <x>160</x>
  222. <y>80</y>
  223. <width>101</width>
  224. <height>22</height>
  225. </rect>
  226. </property>
  227. <property name="currentIndex">
  228. <number>1</number>
  229. </property>
  230. <item>
  231. <property name="text">
  232. <string>7</string>
  233. </property>
  234. </item>
  235. <item>
  236. <property name="text">
  237. <string>8</string>
  238. </property>
  239. </item>
  240. <item>
  241. <property name="text">
  242. <string>9</string>
  243. </property>
  244. </item>
  245. </widget>
  246. </widget>
  247. <resources/>
  248. <connections>
  249. <connection>
  250. <sender>pushButton</sender>
  251. <signal>clicked()</signal>
  252. <receiver>Dialog_port</receiver>
  253. <slot>close()</slot>
  254. <hints>
  255. <hint type="sourcelabel">
  256. <x>137</x>
  257. <y>201</y>
  258. </hint>
  259. <hint type="destinationlabel">
  260. <x>199</x>
  261. <y>149</y>
  262. </hint>
  263. </hints>
  264. </connection>
  265. <connection>
  266. <sender>pushButton_2</sender>
  267. <signal>clicked()</signal>
  268. <receiver>Dialog_port</receiver>
  269. <slot>close()</slot>
  270. <hints>
  271. <hint type="sourcelabel">
  272. <x>247</x>
  273. <y>201</y>
  274. </hint>
  275. <hint type="destinationlabel">
  276. <x>199</x>
  277. <y>149</y>
  278. </hint>
  279. </hints>
  280. </connection>
  281. </connections>
  282. </ui>