DigitUI1.ui 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>Digit</class>
  4. <widget class="QDialog" name="Digit">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>653</width>
  10. <height>166</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>手写数字识别程序</string>
  15. </property>
  16. <property name="styleSheet">
  17. <string notr="true">QPushButton{
  18. border-style:solid;
  19. border-width:1px;
  20. border-radius:8px;
  21. border-top-color:#FFFFFF;
  22. border-bottom-color:#888888;
  23. border-left-color:#FFFFFF;
  24. border-right-color:#888888;
  25. }
  26. QLabel#lbl_top1,#lbl_top2{
  27. color:red;
  28. font-size:24px;
  29. }
  30. QLabel#lbl_prob1,#lbl_prob2{
  31. color:blue;
  32. }</string>
  33. </property>
  34. <widget class="QPushButton" name="btn_recognize">
  35. <property name="geometry">
  36. <rect>
  37. <x>300</x>
  38. <y>200</y>
  39. <width>92</width>
  40. <height>28</height>
  41. </rect>
  42. </property>
  43. <property name="text">
  44. <string>数组识别</string>
  45. </property>
  46. </widget>
  47. <widget class="QLabel" name="label">
  48. <property name="geometry">
  49. <rect>
  50. <x>220</x>
  51. <y>10</y>
  52. <width>81</width>
  53. <height>41</height>
  54. </rect>
  55. </property>
  56. <property name="text">
  57. <string>用户名:</string>
  58. </property>
  59. </widget>
  60. <widget class="QTextEdit" name="lbl_user">
  61. <property name="geometry">
  62. <rect>
  63. <x>300</x>
  64. <y>20</y>
  65. <width>111</width>
  66. <height>31</height>
  67. </rect>
  68. </property>
  69. </widget>
  70. <widget class="QLabel" name="label_2">
  71. <property name="geometry">
  72. <rect>
  73. <x>230</x>
  74. <y>70</y>
  75. <width>60</width>
  76. <height>16</height>
  77. </rect>
  78. </property>
  79. <property name="text">
  80. <string>密 码:</string>
  81. </property>
  82. </widget>
  83. <widget class="QTextEdit" name="lbl_pwd">
  84. <property name="geometry">
  85. <rect>
  86. <x>300</x>
  87. <y>60</y>
  88. <width>111</width>
  89. <height>31</height>
  90. </rect>
  91. </property>
  92. </widget>
  93. <widget class="QPushButton" name="btn_login">
  94. <property name="geometry">
  95. <rect>
  96. <x>270</x>
  97. <y>110</y>
  98. <width>113</width>
  99. <height>32</height>
  100. </rect>
  101. </property>
  102. <property name="text">
  103. <string>登录</string>
  104. </property>
  105. </widget>
  106. <widget class="QLabel" name="lbl_result">
  107. <property name="geometry">
  108. <rect>
  109. <x>500</x>
  110. <y>50</y>
  111. <width>111</width>
  112. <height>41</height>
  113. </rect>
  114. </property>
  115. <property name="text">
  116. <string/>
  117. </property>
  118. </widget>
  119. </widget>
  120. <resources/>
  121. <connections>
  122. <connection>
  123. <sender>btn_login</sender>
  124. <signal>clicked()</signal>
  125. <receiver>Digit</receiver>
  126. <slot>capture_image()</slot>
  127. <hints>
  128. <hint type="sourcelabel">
  129. <x>326</x>
  130. <y>125</y>
  131. </hint>
  132. <hint type="destinationlabel">
  133. <x>326</x>
  134. <y>82</y>
  135. </hint>
  136. </hints>
  137. </connection>
  138. </connections>
  139. <slots>
  140. <slot>capture_image()</slot>
  141. <slot>digit_recognize()</slot>
  142. </slots>
  143. </ui>