- Qt 5.3
- Qt Bluetooth
- Bluetooth Scanner Example
- service.ui Example File
- Qt 5.3.2 Reference Documentation

# service.ui Example File

btscanner/service.ui

    <?xml version="1.0" encoding="UTF-8"?>
    <ui version="4.0">
     <class>ServiceDiscovery</class>
     <widget class="QDialog" name="ServiceDiscovery">
      <property name="geometry">
       <rect>
        <x>0</x>
        <y>0</y>
        <width>400</width>
        <height>300</height>
       </rect>
      </property>
      <property name="windowTitle">
       <string>Available Services</string>
      </property>
      <layout class="QVBoxLayout" name="verticalLayout">
       <item>
        <widget class="QListWidget" name="list"/>
       </item>
       <item>
        <widget class="QLabel" name="status">
         <property name="text">
          <string>Querying...</string>
         </property>
        </widget>
       </item>
       <item>
        <layout class="QHBoxLayout" name="horizontalLayout">
         <item>
          <spacer name="horizontalSpacer">
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>40</width>
             <height>20</height>
            </size>
           </property>
          </spacer>
         </item>
         <item>
          <widget class="QPushButton" name="close">
           <property name="text">
            <string>Close</string>
           </property>
          </widget>
         </item>
        </layout>
       </item>
      </layout>
     </widget>
     <tabstops>
      <tabstop>list</tabstop>
      <tabstop>close</tabstop>
     </tabstops>
     <resources/>
     <connections>
      <connection>
       <sender>close</sender>
       <signal>clicked()</signal>
       <receiver>ServiceDiscovery</receiver>
       <slot>accept()</slot>
       <hints>
        <hint type="sourcelabel">
         <x>350</x>
         <y>277</y>
        </hint>
        <hint type="destinationlabel">
         <x>237</x>
         <y>269</y>
        </hint>
       </hints>
      </connection>
     </connections>
    </ui>