MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

device.ui Example File

btscanner/device.ui
 <?xml version="1.0" encoding="UTF-8"?>
 <ui version="4.0">
  <class>DeviceDiscovery</class>
  <widget class="QDialog" name="DeviceDiscovery">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>400</width>
     <height>411</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>Bluetooth Scanner</string>
   </property>
   <layout class="QVBoxLayout" name="verticalLayout">
    <item>
     <widget class="QListWidget" name="list"/>
    </item>
    <item>
     <widget class="QGroupBox" name="groupBox">
      <property name="title">
       <string>Local Device</string>
      </property>
      <layout class="QHBoxLayout" name="horizontalLayout_2">
       <item>
        <widget class="QCheckBox" name="power">
         <property name="text">
          <string>Bluetooth Powered On</string>
         </property>
         <property name="checked">
          <bool>true</bool>
         </property>
        </widget>
       </item>
       <item>
        <widget class="QCheckBox" name="discoverable">
         <property name="text">
          <string>Discoverable</string>
         </property>
         <property name="checked">
          <bool>true</bool>
         </property>
        </widget>
       </item>
      </layout>
     </widget>
    </item>
    <item>
     <widget class="QCheckBox" name="inquiryType">
      <property name="text">
       <string>General Unlimited Inquiry</string>
      </property>
      <property name="checked">
       <bool>true</bool>
      </property>
     </widget>
    </item>
    <item>
     <layout class="QHBoxLayout" name="horizontalLayout">
      <item>
       <widget class="QPushButton" name="scan">
        <property name="text">
         <string>Scan</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="clear">
        <property name="text">
         <string>Clear</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="quit">
        <property name="text">
         <string>Quit</string>
        </property>
       </widget>
      </item>
     </layout>
    </item>
   </layout>
  </widget>
  <resources/>
  <connections>
   <connection>
    <sender>quit</sender>
    <signal>clicked()</signal>
    <receiver>DeviceDiscovery</receiver>
    <slot>accept()</slot>
    <hints>
     <hint type="sourcelabel">
      <x>323</x>
      <y>275</y>
     </hint>
     <hint type="destinationlabel">
      <x>396</x>
      <y>268</y>
     </hint>
    </hints>
   </connection>
   <connection>
    <sender>clear</sender>
    <signal>clicked()</signal>
    <receiver>list</receiver>
    <slot>clear()</slot>
    <hints>
     <hint type="sourcelabel">
      <x>188</x>
      <y>276</y>
     </hint>
     <hint type="destinationlabel">
      <x>209</x>
      <y>172</y>
     </hint>
    </hints>
   </connection>
  </connections>
 </ui>