Qt 4.8: embeddeddialog.ui Example File (demos/embeddeddialogs/embeddeddialog.ui)

Qt Reference Documentation

# embeddeddialog.ui Example File

demos/embeddeddialogs/embeddeddialog.ui

     <ui version="4.0" >
      <class>embeddedDialog</class>
      <widget class="QDialog" name="embeddedDialog" >
       <property name="geometry" >
        <rect>
         <x>0</x>
         <y>0</y>
         <width>407</width>
         <height>134</height>
        </rect>
       </property>
       <property name="windowTitle" >
        <string>Embedded Dialog</string>
       </property>
       <layout class="QFormLayout" name="formLayout" >
        <item row="0" column="0" >
         <widget class="QLabel" name="label" >
          <property name="text" >
           <string>Layout Direction:</string>
          </property>
          <property name="buddy" >
           <cstring>layoutDirection</cstring>
          </property>
         </widget>
        </item>
        <item row="0" column="1" >
         <widget class="QComboBox" name="layoutDirection" >
          <item>
           <property name="text" >
            <string>Left to Right</string>
           </property>
          </item>
          <item>
           <property name="text" >
            <string>Right to Left</string>
           </property>
          </item>
         </widget>
        </item>
        <item row="1" column="0" >
         <widget class="QLabel" name="label_2" >
          <property name="text" >
           <string>Select Font:</string>
          </property>
          <property name="buddy" >
           <cstring>fontComboBox</cstring>
          </property>
         </widget>
        </item>
        <item row="1" column="1" >
         <widget class="QFontComboBox" name="fontComboBox" />
        </item>
        <item row="2" column="0" >
         <widget class="QLabel" name="label_3" >
          <property name="text" >
           <string>Style:</string>
          </property>
          <property name="buddy" >
           <cstring>style</cstring>
          </property>
         </widget>
        </item>
        <item row="2" column="1" >
         <widget class="QComboBox" name="style" />
        </item>
        <item row="3" column="0" >
         <widget class="QLabel" name="label_4" >
          <property name="text" >
           <string>Layout spacing:</string>
          </property>
          <property name="buddy" >
           <cstring>spacing</cstring>
          </property>
         </widget>
        </item>
        <item row="3" column="1" >
         <widget class="QSlider" name="spacing" >
          <property name="orientation" >
           <enum>Qt::Horizontal</enum>
          </property>
         </widget>
        </item>
       </layout>
      </widget>
      <resources/>
      <connections/>
     </ui>