Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <ui version="4.0">
- <class>MainDialog</class>
- <widget class="QDialog" name="MainDialog">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>275</width>
- <height>105</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>Calculator</string>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QWidget" name="widget" native="true">
- <layout class="QFormLayout" name="formLayout">
- <property name="fieldGrowthPolicy">
- <enum>QFormLayout::ExpandingFieldsGrow</enum>
- </property>
- <item row="0" column="0">
- <widget class="QLabel" name="aLabel">
- <property name="text">
- <string>A</string>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLineEdit" name="aLineEdit"/>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="bLabel">
- <property name="text">
- <string>B</string>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QLineEdit" name="bLineEdit"/>
- </item>
- <item row="2" column="0">
- <widget class="QLabel" name="resultLabel">
- <property name="text">
- <string>Result</string>
- </property>
- </widget>
- </item>
- <item row="2" column="1">
- <widget class="QLineEdit" name="resultLineEdit"/>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <widget class="QWidget" name="widget_2" native="true">
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QPushButton" name="calculateButton">
- <property name="text">
- <string>Calculate</string>
- </property>
- <property name="default">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="clearButton">
- <property name="text">
- <string>Clear</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="closeButtonSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>5</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="closeButton">
- <property name="text">
- <string>Close</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </widget>
- <resources/>
- <connections>
- <connection>
- <sender>closeButton</sender>
- <signal>clicked()</signal>
- <receiver>MainDialog</receiver>
- <slot>close()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>227</x>
- <y>84</y>
- </hint>
- <hint type="destinationlabel">
- <x>137</x>
- <y>52</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>clearButton</sender>
- <signal>clicked()</signal>
- <receiver>aLineEdit</receiver>
- <slot>clear()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>227</x>
- <y>47</y>
- </hint>
- <hint type="destinationlabel">
- <x>112</x>
- <y>19</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>clearButton</sender>
- <signal>clicked()</signal>
- <receiver>bLineEdit</receiver>
- <slot>clear()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>227</x>
- <y>47</y>
- </hint>
- <hint type="destinationlabel">
- <x>112</x>
- <y>46</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>clearButton</sender>
- <signal>clicked()</signal>
- <receiver>resultLineEdit</receiver>
- <slot>clear()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>227</x>
- <y>47</y>
- </hint>
- <hint type="destinationlabel">
- <x>112</x>
- <y>73</y>
- </hint>
- </hints>
- </connection>
- </connections>
- </ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement