Advertisement
Marrin

Simple adder UI

Sep 2nd, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.12 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3.  <class>MainDialog</class>
  4.  <widget class="QDialog" name="MainDialog">
  5.   <property name="geometry">
  6.    <rect>
  7.     <x>0</x>
  8.     <y>0</y>
  9.     <width>275</width>
  10.     <height>105</height>
  11.    </rect>
  12.   </property>
  13.   <property name="windowTitle">
  14.    <string>Calculator</string>
  15.   </property>
  16.   <layout class="QHBoxLayout" name="horizontalLayout">
  17.    <item>
  18.     <widget class="QWidget" name="widget" native="true">
  19.      <layout class="QFormLayout" name="formLayout">
  20.       <property name="fieldGrowthPolicy">
  21.        <enum>QFormLayout::ExpandingFieldsGrow</enum>
  22.       </property>
  23.       <item row="0" column="0">
  24.        <widget class="QLabel" name="aLabel">
  25.         <property name="text">
  26.          <string>A</string>
  27.         </property>
  28.        </widget>
  29.       </item>
  30.       <item row="0" column="1">
  31.        <widget class="QLineEdit" name="aLineEdit"/>
  32.       </item>
  33.       <item row="1" column="0">
  34.        <widget class="QLabel" name="bLabel">
  35.         <property name="text">
  36.          <string>B</string>
  37.         </property>
  38.        </widget>
  39.       </item>
  40.       <item row="1" column="1">
  41.        <widget class="QLineEdit" name="bLineEdit"/>
  42.       </item>
  43.       <item row="2" column="0">
  44.        <widget class="QLabel" name="resultLabel">
  45.         <property name="text">
  46.          <string>Result</string>
  47.         </property>
  48.        </widget>
  49.       </item>
  50.       <item row="2" column="1">
  51.        <widget class="QLineEdit" name="resultLineEdit"/>
  52.       </item>
  53.      </layout>
  54.     </widget>
  55.    </item>
  56.    <item>
  57.     <widget class="QWidget" name="widget_2" native="true">
  58.      <layout class="QVBoxLayout" name="verticalLayout">
  59.       <item>
  60.        <widget class="QPushButton" name="calculateButton">
  61.         <property name="text">
  62.          <string>Calculate</string>
  63.         </property>
  64.         <property name="default">
  65.          <bool>true</bool>
  66.         </property>
  67.        </widget>
  68.       </item>
  69.       <item>
  70.        <widget class="QPushButton" name="clearButton">
  71.         <property name="text">
  72.          <string>Clear</string>
  73.         </property>
  74.        </widget>
  75.       </item>
  76.       <item>
  77.        <spacer name="closeButtonSpacer">
  78.         <property name="orientation">
  79.          <enum>Qt::Vertical</enum>
  80.         </property>
  81.         <property name="sizeHint" stdset="0">
  82.          <size>
  83.           <width>20</width>
  84.           <height>5</height>
  85.          </size>
  86.         </property>
  87.        </spacer>
  88.       </item>
  89.       <item>
  90.        <widget class="QPushButton" name="closeButton">
  91.         <property name="text">
  92.          <string>Close</string>
  93.         </property>
  94.        </widget>
  95.       </item>
  96.      </layout>
  97.     </widget>
  98.    </item>
  99.   </layout>
  100.  </widget>
  101.  <resources/>
  102.  <connections>
  103.   <connection>
  104.    <sender>closeButton</sender>
  105.    <signal>clicked()</signal>
  106.    <receiver>MainDialog</receiver>
  107.    <slot>close()</slot>
  108.    <hints>
  109.     <hint type="sourcelabel">
  110.      <x>227</x>
  111.      <y>84</y>
  112.     </hint>
  113.     <hint type="destinationlabel">
  114.      <x>137</x>
  115.      <y>52</y>
  116.     </hint>
  117.    </hints>
  118.   </connection>
  119.   <connection>
  120.    <sender>clearButton</sender>
  121.    <signal>clicked()</signal>
  122.    <receiver>aLineEdit</receiver>
  123.    <slot>clear()</slot>
  124.    <hints>
  125.     <hint type="sourcelabel">
  126.      <x>227</x>
  127.      <y>47</y>
  128.     </hint>
  129.     <hint type="destinationlabel">
  130.      <x>112</x>
  131.      <y>19</y>
  132.     </hint>
  133.    </hints>
  134.   </connection>
  135.   <connection>
  136.    <sender>clearButton</sender>
  137.    <signal>clicked()</signal>
  138.    <receiver>bLineEdit</receiver>
  139.    <slot>clear()</slot>
  140.    <hints>
  141.     <hint type="sourcelabel">
  142.      <x>227</x>
  143.      <y>47</y>
  144.     </hint>
  145.     <hint type="destinationlabel">
  146.      <x>112</x>
  147.      <y>46</y>
  148.     </hint>
  149.    </hints>
  150.   </connection>
  151.   <connection>
  152.    <sender>clearButton</sender>
  153.    <signal>clicked()</signal>
  154.    <receiver>resultLineEdit</receiver>
  155.    <slot>clear()</slot>
  156.    <hints>
  157.     <hint type="sourcelabel">
  158.      <x>227</x>
  159.      <y>47</y>
  160.     </hint>
  161.     <hint type="destinationlabel">
  162.      <x>112</x>
  163.      <y>73</y>
  164.     </hint>
  165.    </hints>
  166.   </connection>
  167.  </connections>
  168. </ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement