2
0
mirror of https://github.com/pyqt/examples.git synced 2025-08-22 17:47:10 +00:00
examples/pyuic/demo.ui
Michael Herrmann 54f8b69baa Restore broken links by reverting to revision a52c47bf
The commits since then moved many files into the src/ subdirectory.
This would have broken existing links on the internet. To solve this,
we leave the master branch as-is and make such breaking changes on a
different branch.
2019-06-28 16:21:19 +02:00

147 lines
3.2 KiB
XML

<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>DemoDialog</class>
<widget class="QDialog" name="DemoDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>PyQt5.uic Demo Dialog</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item rowspan="3" row="0" column="1" >
<widget class="QListWidget" name="list" />
</item>
<item row="1" column="0" >
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="button1" >
<property name="text" >
<string>Add items</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button2" >
<property name="text" >
<string>Clear list</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="0" colspan="2" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>131</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton" >
<property name="text" >
<string>OK</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>okButton</sender>
<signal>clicked()</signal>
<receiver>DemoDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>369</x>
<y>256</y>
</hint>
<hint type="destinationlabel" >
<x>96</x>
<y>254</y>
</hint>
</hints>
</connection>
<connection>
<sender>button2</sender>
<signal>clicked()</signal>
<receiver>list</receiver>
<slot>clear()</slot>
<hints>
<hint type="sourcelabel" >
<x>92</x>
<y>112</y>
</hint>
<hint type="destinationlabel" >
<x>279</x>
<y>123</y>
</hint>
</hints>
</connection>
</connections>
</ui>