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

# previewdialogbase.ui Example File
painting/fontsampler/previewdialogbase.ui

     <ui version="4.0" >
      <class>PreviewDialogBase</class>
      <widget class="QDialog" name="PreviewDialogBase" >
       <property name="geometry" >
        <rect>
         <x>0</x>
         <y>0</y>
         <width>733</width>
         <height>479</height>
        </rect>
       </property>
       <property name="windowTitle" >
        <string>Print Preview</string>
       </property>
       <layout class="QVBoxLayout" >
        <property name="margin" >
         <number>9</number>
        </property>
        <property name="spacing" >
         <number>6</number>
        </property>
        <item>
         <layout class="QHBoxLayout" >
          <property name="margin" >
           <number>0</number>
          </property>
          <property name="spacing" >
           <number>6</number>
          </property>
          <item>
           <widget class="QLabel" name="label" >
            <property name="text" >
             <string>&amp;Paper Size:</string>
            </property>
            <property name="buddy" >
             <cstring>paperSizeCombo</cstring>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QComboBox" name="paperSizeCombo" >
            <property name="sizePolicy" >
             <sizepolicy>
              <hsizetype>1</hsizetype>
              <vsizetype>0</vsizetype>
              <horstretch>0</horstretch>
              <verstretch>0</verstretch>
             </sizepolicy>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QLabel" name="label_2" >
            <property name="text" >
             <string>&amp;Orientation:</string>
            </property>
            <property name="buddy" >
             <cstring>paperOrientationCombo</cstring>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QComboBox" name="paperOrientationCombo" >
            <property name="sizePolicy" >
             <sizepolicy>
              <hsizetype>1</hsizetype>
              <vsizetype>0</vsizetype>
              <horstretch>0</horstretch>
              <verstretch>0</verstretch>
             </sizepolicy>
            </property>
           </widget>
          </item>
          <item>
           <spacer>
            <property name="orientation" >
             <enum>Qt::Horizontal</enum>
            </property>
            <property name="sizeHint" >
             <size>
              <width>40</width>
              <height>20</height>
             </size>
            </property>
           </spacer>
          </item>
         </layout>
        </item>
        <item>
         <layout class="QHBoxLayout" >
          <property name="margin" >
           <number>0</number>
          </property>
          <property name="spacing" >
           <number>6</number>
          </property>
          <item>
           <widget class="QTreeWidget" name="pageList" >
            <property name="indentation" >
             <number>0</number>
            </property>
            <property name="rootIsDecorated" >
             <bool>false</bool>
            </property>
            <property name="uniformRowHeights" >
             <bool>true</bool>
            </property>
            <property name="itemsExpandable" >
             <bool>false</bool>
            </property>
            <property name="columnCount" >
             <number>1</number>
            </property>
            <column>
             <property name="text" >
              <string>1</string>
             </property>
            </column>
           </widget>
          </item>
          <item>
           <widget class="QScrollArea" native="1" name="previewArea" >
            <property name="sizePolicy" >
             <sizepolicy>
              <hsizetype>5</hsizetype>
              <vsizetype>5</vsizetype>
              <horstretch>1</horstretch>
              <verstretch>0</verstretch>
             </sizepolicy>
            </property>
           </widget>
          </item>
         </layout>
        </item>
        <item>
         <layout class="QHBoxLayout" >
          <property name="margin" >
           <number>0</number>
          </property>
          <property name="spacing" >
           <number>6</number>
          </property>
          <item>
           <widget class="QProgressBar" name="progressBar" >
            <property name="enabled" >
             <bool>false</bool>
            </property>
            <property name="sizePolicy" >
             <sizepolicy>
              <hsizetype>7</hsizetype>
              <vsizetype>0</vsizetype>
              <horstretch>1</horstretch>
              <verstretch>0</verstretch>
             </sizepolicy>
            </property>
            <property name="value" >
             <number>0</number>
            </property>
            <property name="textVisible" >
             <bool>false</bool>
            </property>
            <property name="orientation" >
             <enum>Qt::Horizontal</enum>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QDialogButtonBox" name="buttonBox" >
            <property name="orientation" >
             <enum>Qt::Horizontal</enum>
            </property>
            <property name="standardButtons" >
             <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
            </property>
           </widget>
          </item>
         </layout>
        </item>
       </layout>
      </widget>
      <customwidgets>
       <customwidget>
        <class>QScrollArea</class>
        <extends>QWidget</extends>
        <header>qscrollarea.h</header>
        <container>1</container>
       </customwidget>
      </customwidgets>
      <resources/>
      <connections>
       <connection>
        <sender>buttonBox</sender>
        <signal>accepted()</signal>
        <receiver>PreviewDialogBase</receiver>
        <slot>accept()</slot>
        <hints>
         <hint type="sourcelabel" >
          <x>696</x>
          <y>526</y>
         </hint>
         <hint type="destinationlabel" >
          <x>677</x>
          <y>446</y>
         </hint>
        </hints>
       </connection>
       <connection>
        <sender>buttonBox</sender>
        <signal>rejected()</signal>
        <receiver>PreviewDialogBase</receiver>
        <slot>reject()</slot>
        <hints>
         <hint type="sourcelabel" >
          <x>587</x>
          <y>529</y>
         </hint>
         <hint type="destinationlabel" >
          <x>547</x>
          <y>448</y>
         </hint>
        </hints>
       </connection>
      </connections>
     </ui>