Widget.ui.template 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>%1</class>
  4. <widget class="QWidget" name="%1">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>745</width>
  10. <height>559</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>%1</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout">
  17. <property name="leftMargin">
  18. <number>0</number>
  19. </property>
  20. <property name="topMargin">
  21. <number>0</number>
  22. </property>
  23. <property name="rightMargin">
  24. <number>0</number>
  25. </property>
  26. <property name="bottomMargin">
  27. <number>0</number>
  28. </property>
  29. <item>
  30. <widget class="QFrame" name="frame">
  31. <property name="styleSheet">
  32. <string notr="true">
  33. QFrame{
  34. border:1px solid #cccccc;
  35. border-radius: 2px;
  36. background-color: white;
  37. }
  38. QPushButton{
  39. min-width:45px;
  40. min-height:20px;
  41. }
  42. </string>
  43. </property>
  44. <property name="frameShape">
  45. <enum>QFrame::StyledPanel</enum>
  46. </property>
  47. <property name="frameShadow">
  48. <enum>QFrame::Raised</enum>
  49. </property>
  50. <layout class="QHBoxLayout" name="horizontalLayout">
  51. <item>
  52. <widget class="QLineEdit" name="leQName">
  53. <property name="placeholderText">
  54. <string>按名称关键字查询</string>
  55. </property>
  56. </widget>
  57. </item>
  58. <item>
  59. <widget class="QPushButton" name="pbQuery">
  60. <property name="text">
  61. <string>查询</string>
  62. </property>
  63. <property name="shortcut">
  64. <string>Enter</string>
  65. </property>
  66. <property name="default">
  67. <bool>true</bool>
  68. </property>
  69. </widget>
  70. </item>
  71. <item>
  72. <widget class="QPushButton" name="pbSet">
  73. <property name="text">
  74. <string>重置</string>
  75. </property>
  76. </widget>
  77. </item>
  78. <item>
  79. <spacer name="horizontalSpacer_2">
  80. <property name="orientation">
  81. <enum>Qt::Horizontal</enum>
  82. </property>
  83. <property name="sizeHint" stdset="0">
  84. <size>
  85. <width>40</width>
  86. <height>20</height>
  87. </size>
  88. </property>
  89. </spacer>
  90. </item>
  91. </layout>
  92. </widget>
  93. </item>
  94. <item>
  95. <widget class="TableView" name="tvData"/>
  96. </item>
  97. <item>
  98. <widget class="Pagination" name="pagination" native="true"/>
  99. </item>
  100. <item>
  101. <layout class="QHBoxLayout" name="horizontalLayout_2">
  102. <property name="topMargin">
  103. <number>0</number>
  104. </property>
  105. <item>
  106. <widget class="QPushButton" name="pbAdd">
  107. <property name="text">
  108. <string>添加</string>
  109. </property>
  110. </widget>
  111. </item>
  112. <item>
  113. <widget class="QPushButton" name="pbEdit">
  114. <property name="text">
  115. <string>修改</string>
  116. </property>
  117. </widget>
  118. </item>
  119. <item>
  120. <widget class="QPushButton" name="pbRemove">
  121. <property name="text">
  122. <string>删除</string>
  123. </property>
  124. </widget>
  125. </item>
  126. <item>
  127. <spacer name="horizontalSpacer">
  128. <property name="orientation">
  129. <enum>Qt::Horizontal</enum>
  130. </property>
  131. <property name="sizeHint" stdset="0">
  132. <size>
  133. <width>40</width>
  134. <height>20</height>
  135. </size>
  136. </property>
  137. </spacer>
  138. </item>
  139. </layout>
  140. </item>
  141. </layout>
  142. </widget>
  143. <layoutdefault spacing="6" margin="11"/>
  144. <customwidgets>
  145. <customwidget>
  146. <class>Pagination</class>
  147. <extends>QWidget</extends>
  148. <header>Pagination.h</header>
  149. </customwidget>
  150. <customwidget>
  151. <class>TableView</class>
  152. <extends>QTableView</extends>
  153. <header location="global">TableView.h</header>
  154. </customwidget>
  155. </customwidgets>
  156. <resources/>
  157. <connections>
  158. <connection>
  159. <sender>pbQuery</sender>
  160. <signal>clicked()</signal>
  161. <receiver>%1</receiver>
  162. <slot>onQuery()</slot>
  163. <hints>
  164. <hint type="sourcelabel">
  165. <x>338</x>
  166. <y>31</y>
  167. </hint>
  168. <hint type="destinationlabel">
  169. <x>328</x>
  170. <y>-22</y>
  171. </hint>
  172. </hints>
  173. </connection>
  174. <connection>
  175. <sender>pbSet</sender>
  176. <signal>clicked()</signal>
  177. <receiver>%1</receiver>
  178. <slot>onReset()</slot>
  179. <hints>
  180. <hint type="sourcelabel">
  181. <x>409</x>
  182. <y>38</y>
  183. </hint>
  184. <hint type="destinationlabel">
  185. <x>420</x>
  186. <y>-20</y>
  187. </hint>
  188. </hints>
  189. </connection>
  190. <connection>
  191. <sender>pbAdd</sender>
  192. <signal>clicked()</signal>
  193. <receiver>%1</receiver>
  194. <slot>onAdd()</slot>
  195. <hints>
  196. <hint type="sourcelabel">
  197. <x>38</x>
  198. <y>594</y>
  199. </hint>
  200. <hint type="destinationlabel">
  201. <x>4</x>
  202. <y>590</y>
  203. </hint>
  204. </hints>
  205. </connection>
  206. <connection>
  207. <sender>pbEdit</sender>
  208. <signal>clicked()</signal>
  209. <receiver>%1</receiver>
  210. <slot>onEdit()</slot>
  211. <hints>
  212. <hint type="sourcelabel">
  213. <x>123</x>
  214. <y>596</y>
  215. </hint>
  216. <hint type="destinationlabel">
  217. <x>130</x>
  218. <y>608</y>
  219. </hint>
  220. </hints>
  221. </connection>
  222. <connection>
  223. <sender>pbRemove</sender>
  224. <signal>clicked()</signal>
  225. <receiver>%1</receiver>
  226. <slot>onRemove()</slot>
  227. <hints>
  228. <hint type="sourcelabel">
  229. <x>222</x>
  230. <y>590</y>
  231. </hint>
  232. <hint type="destinationlabel">
  233. <x>284</x>
  234. <y>614</y>
  235. </hint>
  236. </hints>
  237. </connection>
  238. </connections>
  239. <slots>
  240. <slot>onQuery()</slot>
  241. <slot>onReset()</slot>
  242. <slot>onAdd()</slot>
  243. <slot>onEdit()</slot>
  244. <slot>onRemove()</slot>
  245. </slots>
  246. </ui>