firstgui.ui 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>myfirstgui</class>
  4. <widget class="QDialog" name="myfirstgui">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>411</width>
  10. <height>247</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>My First Gui!</string>
  15. </property>
  16. <widget class="QDialogButtonBox" name="buttonBox">
  17. <property name="geometry">
  18. <rect>
  19. <x>20</x>
  20. <y>210</y>
  21. <width>381</width>
  22. <height>32</height>
  23. </rect>
  24. </property>
  25. <property name="orientation">
  26. <enum>Qt::Horizontal</enum>
  27. </property>
  28. <property name="standardButtons">
  29. <set>QDialogButtonBox::Close</set>
  30. </property>
  31. </widget>
  32. <widget class="QLineEdit" name="myTextInput">
  33. <property name="geometry">
  34. <rect>
  35. <x>10</x>
  36. <y>10</y>
  37. <width>101</width>
  38. <height>21</height>
  39. </rect>
  40. </property>
  41. </widget>
  42. <widget class="QListWidget" name="listWidget">
  43. <property name="geometry">
  44. <rect>
  45. <x>120</x>
  46. <y>10</y>
  47. <width>281</width>
  48. <height>192</height>
  49. </rect>
  50. </property>
  51. </widget>
  52. <widget class="QPushButton" name="clearBtn">
  53. <property name="geometry">
  54. <rect>
  55. <x>10</x>
  56. <y>180</y>
  57. <width>101</width>
  58. <height>23</height>
  59. </rect>
  60. </property>
  61. <property name="text">
  62. <string>clear</string>
  63. </property>
  64. </widget>
  65. <widget class="QPushButton" name="addBtn">
  66. <property name="geometry">
  67. <rect>
  68. <x>10</x>
  69. <y>40</y>
  70. <width>101</width>
  71. <height>23</height>
  72. </rect>
  73. </property>
  74. <property name="text">
  75. <string>add</string>
  76. </property>
  77. </widget>
  78. </widget>
  79. <resources/>
  80. <connections>
  81. <connection>
  82. <sender>buttonBox</sender>
  83. <signal>accepted()</signal>
  84. <receiver>myfirstgui</receiver>
  85. <slot>accept()</slot>
  86. <hints>
  87. <hint type="sourcelabel">
  88. <x>258</x>
  89. <y>274</y>
  90. </hint>
  91. <hint type="destinationlabel">
  92. <x>157</x>
  93. <y>274</y>
  94. </hint>
  95. </hints>
  96. </connection>
  97. <connection>
  98. <sender>buttonBox</sender>
  99. <signal>rejected()</signal>
  100. <receiver>myfirstgui</receiver>
  101. <slot>reject()</slot>
  102. <hints>
  103. <hint type="sourcelabel">
  104. <x>316</x>
  105. <y>260</y>
  106. </hint>
  107. <hint type="destinationlabel">
  108. <x>286</x>
  109. <y>274</y>
  110. </hint>
  111. </hints>
  112. </connection>
  113. <connection>
  114. <sender>clearBtn</sender>
  115. <signal>clicked()</signal>
  116. <receiver>listWidget</receiver>
  117. <slot>clear()</slot>
  118. <hints>
  119. <hint type="sourcelabel">
  120. <x>177</x>
  121. <y>253</y>
  122. </hint>
  123. <hint type="destinationlabel">
  124. <x>177</x>
  125. <y>174</y>
  126. </hint>
  127. </hints>
  128. </connection>
  129. </connections>
  130. </ui>