qwdialogpen.ui 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>QWDialogPen</class>
  4. <widget class="QDialog" name="QWDialogPen">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>319</width>
  10. <height>139</height>
  11. </rect>
  12. </property>
  13. <property name="font">
  14. <font>
  15. <family>宋体</family>
  16. <pointsize>10</pointsize>
  17. </font>
  18. </property>
  19. <property name="windowTitle">
  20. <string>QPen属性设置对话框</string>
  21. </property>
  22. <layout class="QHBoxLayout" name="horizontalLayout">
  23. <item>
  24. <widget class="QGroupBox" name="groupBox">
  25. <property name="title">
  26. <string>Pen属性设置</string>
  27. </property>
  28. <layout class="QGridLayout" name="gridLayout">
  29. <item row="0" column="0">
  30. <widget class="QLabel" name="label">
  31. <property name="text">
  32. <string>线 型</string>
  33. </property>
  34. </widget>
  35. </item>
  36. <item row="4" column="2">
  37. <spacer name="horizontalSpacer_2">
  38. <property name="orientation">
  39. <enum>Qt::Horizontal</enum>
  40. </property>
  41. <property name="sizeHint" stdset="0">
  42. <size>
  43. <width>98</width>
  44. <height>20</height>
  45. </size>
  46. </property>
  47. </spacer>
  48. </item>
  49. <item row="2" column="2">
  50. <spacer name="horizontalSpacer">
  51. <property name="orientation">
  52. <enum>Qt::Horizontal</enum>
  53. </property>
  54. <property name="sizeHint" stdset="0">
  55. <size>
  56. <width>98</width>
  57. <height>20</height>
  58. </size>
  59. </property>
  60. </spacer>
  61. </item>
  62. <item row="2" column="1">
  63. <widget class="QSpinBox" name="spinWidth">
  64. <property name="minimumSize">
  65. <size>
  66. <width>100</width>
  67. <height>0</height>
  68. </size>
  69. </property>
  70. <property name="minimum">
  71. <number>1</number>
  72. </property>
  73. <property name="maximum">
  74. <number>100</number>
  75. </property>
  76. </widget>
  77. </item>
  78. <item row="4" column="0">
  79. <widget class="QLabel" name="label_3">
  80. <property name="text">
  81. <string>颜 色</string>
  82. </property>
  83. </widget>
  84. </item>
  85. <item row="2" column="0">
  86. <widget class="QLabel" name="label_2">
  87. <property name="text">
  88. <string>线 宽</string>
  89. </property>
  90. </widget>
  91. </item>
  92. <item row="0" column="1" colspan="2">
  93. <widget class="QComboBox" name="comboPenStyle"/>
  94. </item>
  95. <item row="1" column="1">
  96. <spacer name="verticalSpacer">
  97. <property name="orientation">
  98. <enum>Qt::Vertical</enum>
  99. </property>
  100. <property name="sizeHint" stdset="0">
  101. <size>
  102. <width>20</width>
  103. <height>40</height>
  104. </size>
  105. </property>
  106. </spacer>
  107. </item>
  108. <item row="3" column="1">
  109. <spacer name="verticalSpacer_2">
  110. <property name="orientation">
  111. <enum>Qt::Vertical</enum>
  112. </property>
  113. <property name="sizeHint" stdset="0">
  114. <size>
  115. <width>20</width>
  116. <height>40</height>
  117. </size>
  118. </property>
  119. </spacer>
  120. </item>
  121. <item row="4" column="1">
  122. <widget class="QPushButton" name="btnColor">
  123. <property name="autoFillBackground">
  124. <bool>false</bool>
  125. </property>
  126. <property name="styleSheet">
  127. <string notr="true">background-color: rgb(255, 0, 255);</string>
  128. </property>
  129. <property name="text">
  130. <string/>
  131. </property>
  132. <property name="flat">
  133. <bool>false</bool>
  134. </property>
  135. </widget>
  136. </item>
  137. </layout>
  138. </widget>
  139. </item>
  140. <item>
  141. <layout class="QVBoxLayout" name="verticalLayout">
  142. <item>
  143. <spacer name="verticalSpacer_5">
  144. <property name="orientation">
  145. <enum>Qt::Vertical</enum>
  146. </property>
  147. <property name="sizeHint" stdset="0">
  148. <size>
  149. <width>20</width>
  150. <height>40</height>
  151. </size>
  152. </property>
  153. </spacer>
  154. </item>
  155. <item>
  156. <widget class="QPushButton" name="btnOK">
  157. <property name="text">
  158. <string>确 定</string>
  159. </property>
  160. </widget>
  161. </item>
  162. <item>
  163. <spacer name="verticalSpacer_4">
  164. <property name="orientation">
  165. <enum>Qt::Vertical</enum>
  166. </property>
  167. <property name="sizeHint" stdset="0">
  168. <size>
  169. <width>20</width>
  170. <height>40</height>
  171. </size>
  172. </property>
  173. </spacer>
  174. </item>
  175. <item>
  176. <widget class="QPushButton" name="btnCancel">
  177. <property name="text">
  178. <string>取 消</string>
  179. </property>
  180. </widget>
  181. </item>
  182. <item>
  183. <spacer name="verticalSpacer_3">
  184. <property name="orientation">
  185. <enum>Qt::Vertical</enum>
  186. </property>
  187. <property name="sizeHint" stdset="0">
  188. <size>
  189. <width>20</width>
  190. <height>40</height>
  191. </size>
  192. </property>
  193. </spacer>
  194. </item>
  195. </layout>
  196. </item>
  197. </layout>
  198. </widget>
  199. <resources/>
  200. <connections>
  201. <connection>
  202. <sender>btnOK</sender>
  203. <signal>clicked()</signal>
  204. <receiver>QWDialogPen</receiver>
  205. <slot>accept()</slot>
  206. <hints>
  207. <hint type="sourcelabel">
  208. <x>337</x>
  209. <y>51</y>
  210. </hint>
  211. <hint type="destinationlabel">
  212. <x>191</x>
  213. <y>79</y>
  214. </hint>
  215. </hints>
  216. </connection>
  217. <connection>
  218. <sender>btnCancel</sender>
  219. <signal>clicked()</signal>
  220. <receiver>QWDialogPen</receiver>
  221. <slot>reject()</slot>
  222. <hints>
  223. <hint type="sourcelabel">
  224. <x>337</x>
  225. <y>111</y>
  226. </hint>
  227. <hint type="destinationlabel">
  228. <x>191</x>
  229. <y>79</y>
  230. </hint>
  231. </hints>
  232. </connection>
  233. </connections>
  234. </ui>