Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

calculator.ui Example File
script/calculator/calculator.ui

 <ui version="4.0" >
  <class>Calculator</class>
  <widget class="QWidget" name="Calculator" >
   <property name="geometry" >
    <rect>
     <x>0</x>
     <y>0</y>
     <width>314</width>
     <height>301</height>
    </rect>
   </property>
   <property name="sizePolicy" >
    <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
     <horstretch>0</horstretch>
     <verstretch>0</verstretch>
    </sizepolicy>
   </property>
   <property name="minimumSize" >
    <size>
     <width>314</width>
     <height>301</height>
    </size>
   </property>
   <property name="maximumSize" >
    <size>
     <width>314</width>
     <height>301</height>
    </size>
   </property>
   <property name="windowTitle" >
    <string>Calculator</string>
   </property>
   <widget class="QToolButton" name="backspaceButton" >
    <property name="geometry" >
     <rect>
      <x>10</x>
      <y>50</y>
      <width>91</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>Backspace</string>
    </property>
   </widget>
   <widget class="QToolButton" name="clearButton" >
    <property name="geometry" >
     <rect>
      <x>110</x>
      <y>50</y>
      <width>91</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>Clear</string>
    </property>
   </widget>
   <widget class="QToolButton" name="clearAllButton" >
    <property name="geometry" >
     <rect>
      <x>210</x>
      <y>50</y>
      <width>91</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>Clear All</string>
    </property>
   </widget>
   <widget class="QToolButton" name="clearMemoryButton" >
    <property name="geometry" >
     <rect>
      <x>10</x>
      <y>100</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>MC</string>
    </property>
   </widget>
   <widget class="QToolButton" name="readMemoryButton" >
    <property name="geometry" >
     <rect>
      <x>10</x>
      <y>150</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>MR</string>
    </property>
   </widget>
   <widget class="QToolButton" name="setMemoryButton" >
    <property name="geometry" >
     <rect>
      <x>10</x>
      <y>200</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>MS</string>
    </property>
   </widget>
   <widget class="QToolButton" name="addToMemoryButton" >
    <property name="geometry" >
     <rect>
      <x>10</x>
      <y>250</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>M+</string>
    </property>
   </widget>
   <widget class="QToolButton" name="sevenButton" >
    <property name="geometry" >
     <rect>
      <x>60</x>
      <y>100</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>7</string>
    </property>
   </widget>
   <widget class="QToolButton" name="eightButton" >
    <property name="geometry" >
     <rect>
      <x>110</x>
      <y>100</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>8</string>
    </property>
   </widget>
   <widget class="QToolButton" name="nineButton" >
    <property name="geometry" >
     <rect>
      <x>160</x>
      <y>100</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>9</string>
    </property>
   </widget>
   <widget class="QToolButton" name="fourButton" >
    <property name="geometry" >
     <rect>
      <x>60</x>
      <y>150</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>4</string>
    </property>
   </widget>
   <widget class="QToolButton" name="fiveButton" >
    <property name="geometry" >
     <rect>
      <x>110</x>
      <y>150</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>5</string>
    </property>
   </widget>
   <widget class="QToolButton" name="sixButton" >
    <property name="geometry" >
     <rect>
      <x>160</x>
      <y>150</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>6</string>
    </property>
   </widget>
   <widget class="QToolButton" name="oneButton" >
    <property name="geometry" >
     <rect>
      <x>60</x>
      <y>200</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>1</string>
    </property>
   </widget>
   <widget class="QToolButton" name="twoButton" >
    <property name="geometry" >
     <rect>
      <x>110</x>
      <y>200</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>2</string>
    </property>
   </widget>
   <widget class="QToolButton" name="threeButton" >
    <property name="geometry" >
     <rect>
      <x>160</x>
      <y>200</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>3</string>
    </property>
   </widget>
   <widget class="QToolButton" name="zeroButton" >
    <property name="geometry" >
     <rect>
      <x>60</x>
      <y>250</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>0</string>
    </property>
   </widget>
   <widget class="QToolButton" name="pointButton" >
    <property name="geometry" >
     <rect>
      <x>110</x>
      <y>250</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>.</string>
    </property>
   </widget>
   <widget class="QToolButton" name="changeSignButton" >
    <property name="geometry" >
     <rect>
      <x>160</x>
      <y>250</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>+-</string>
    </property>
   </widget>
   <widget class="QToolButton" name="plusButton" >
    <property name="geometry" >
     <rect>
      <x>210</x>
      <y>250</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>+</string>
    </property>
   </widget>
   <widget class="QToolButton" name="divisionButton" >
    <property name="geometry" >
     <rect>
      <x>210</x>
      <y>100</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>/</string>
    </property>
   </widget>
   <widget class="QToolButton" name="timesButton" >
    <property name="geometry" >
     <rect>
      <x>210</x>
      <y>150</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>*</string>
    </property>
   </widget>
   <widget class="QToolButton" name="minusButton" >
    <property name="geometry" >
     <rect>
      <x>210</x>
      <y>200</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>-</string>
    </property>
   </widget>
   <widget class="QToolButton" name="squareRootButton" >
    <property name="geometry" >
     <rect>
      <x>260</x>
      <y>100</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>Sqrt</string>
    </property>
   </widget>
   <widget class="QToolButton" name="powerButton" >
    <property name="geometry" >
     <rect>
      <x>260</x>
      <y>150</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>x^2</string>
    </property>
   </widget>
   <widget class="QToolButton" name="reciprocalButton" >
    <property name="geometry" >
     <rect>
      <x>260</x>
      <y>200</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>1/x</string>
    </property>
   </widget>
   <widget class="QToolButton" name="equalButton" >
    <property name="geometry" >
     <rect>
      <x>260</x>
      <y>250</y>
      <width>41</width>
      <height>41</height>
     </rect>
    </property>
    <property name="text" >
     <string>=</string>
    </property>
   </widget>
   <widget class="QLineEdit" name="display" >
    <property name="geometry" >
     <rect>
      <x>10</x>
      <y>10</y>
      <width>291</width>
      <height>31</height>
     </rect>
    </property>
    <property name="maxLength" >
     <number>15</number>
    </property>
    <property name="alignment" >
     <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
    </property>
    <property name="readOnly" >
     <bool>true</bool>
    </property>
   </widget>
  </widget>
  <resources/>
  <connections/>
 </ui>


Copyright © 2008 Nokia Trademarks
Qt 4.4.3