Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# mainwindow.ui Example File

xmlpatterns/qobjectxmlmodel/forms/mainwindow.ui

     <ui version="4.0" >
      <class>MainWindow</class>
      <widget class="QMainWindow" name="MainWindow" >
       <property name="geometry" >
        <rect>
         <x>0</x>
         <y>0</y>
         <width>800</width>
         <height>600</height>
        </rect>
       </property>
       <property name="windowTitle" >
        <string>QObjectXmlModel Example</string>
       </property>
       <widget class="QWidget" name="centralwidget" >
        <property name="geometry" >
         <rect>
          <x>0</x>
          <y>29</y>
          <width>800</width>
          <height>549</height>
         </rect>
        </property>
        <layout class="QVBoxLayout" name="verticalLayout_4" >
         <item>
          <widget class="QLabel" name="label" >
           <property name="font" >
            <font>
             <italic>true</italic>
            </font>
           </property>
           <property name="text" >
            <string>See the About menu entry for a description of this example.</string>
           </property>
          </widget>
         </item>
         <item>
          <widget class="QTabWidget" name="inheritanceTab" >
           <property name="autoFillBackground" >
            <bool>true</bool>
           </property>
           <property name="currentIndex" >
            <number>0</number>
           </property>
           <widget class="QWidget" name="wholeTreeTab" >
            <property name="geometry" >
             <rect>
              <x>0</x>
              <y>0</y>
              <width>778</width>
              <height>475</height>
             </rect>
            </property>
            <attribute name="title" >
             <string>Whole QObjectTree</string>
            </attribute>
            <layout class="QVBoxLayout" name="verticalLayout" >
             <item>
              <widget class="QSplitter" name="splitter" >
               <property name="orientation" >
                <enum>Qt::Vertical</enum>
               </property>
               <widget class="QTextEdit" name="wholeTree" >
                <property name="sizePolicy" >
                 <sizepolicy vsizetype="Minimum" hsizetype="Expanding" >
                  <horstretch>0</horstretch>
                  <verstretch>0</verstretch>
                 </sizepolicy>
                </property>
                <property name="readOnly" >
                 <bool>true</bool>
                </property>
                <property name="html" >
                 <string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
     &lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
     p, li { white-space: pre-wrap; }
     &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
     &lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;/p>&lt;/body>&lt;/html></string>
                </property>
                <property name="acceptRichText" >
                 <bool>false</bool>
                </property>
               </widget>
               <widget class="QTextEdit" name="wholeTreeOutput" >
                <property name="readOnly" >
                 <bool>true</bool>
                </property>
                <property name="html" >
                 <string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
     &lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
     p, li { white-space: pre-wrap; }
     &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
     &lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;/p>&lt;/body>&lt;/html></string>
                </property>
                <property name="acceptRichText" >
                 <bool>false</bool>
                </property>
               </widget>
              </widget>
             </item>
            </layout>
           </widget>
           <widget class="QWidget" name="htmlTab" >
            <property name="geometry" >
             <rect>
              <x>0</x>
              <y>0</y>
              <width>778</width>
              <height>475</height>
             </rect>
            </property>
            <attribute name="title" >
             <string>Statistics in HTML </string>
            </attribute>
            <layout class="QVBoxLayout" name="verticalLayout_2" >
             <item>
              <widget class="QSplitter" name="splitter_2" >
               <property name="orientation" >
                <enum>Qt::Vertical</enum>
               </property>
               <widget class="QTextEdit" name="htmlQueryEdit" >
                <property name="readOnly" >
                 <bool>true</bool>
                </property>
                <property name="html" >
                 <string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
     &lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
     p, li { white-space: pre-wrap; }
     &lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
     &lt;p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;/p>&lt;/body>&lt;/html></string>
                </property>
                <property name="acceptRichText" >
                 <bool>false</bool>
                </property>
               </widget>
               <widget class="QWebView" name="htmlOutput" >
                <property name="url" >
                 <url>
                  <string>about:blank</string>
                 </url>
                </property>
               </widget>
              </widget>
             </item>
            </layout>
           </widget>
          </widget>
         </item>
        </layout>
       </widget>
       <widget class="QMenuBar" name="menubar" >
        <property name="geometry" >
         <rect>
          <x>0</x>
          <y>0</y>
          <width>800</width>
          <height>29</height>
         </rect>
        </property>
        <widget class="QMenu" name="menuHelp" >
         <property name="title" >
          <string>Help</string>
         </property>
         <addaction name="actionAbout" />
        </widget>
        <addaction name="menuHelp" />
       </widget>
       <widget class="QStatusBar" name="statusbar" >
        <property name="geometry" >
         <rect>
          <x>0</x>
          <y>578</y>
          <width>800</width>
          <height>22</height>
         </rect>
        </property>
       </widget>
       <action name="actionAbout" >
        <property name="text" >
         <string>About</string>
        </property>
        <property name="shortcut" >
         <string>Ctrl+B</string>
        </property>
       </action>
      </widget>
      <customwidgets>
       <customwidget>
        <class>QWebView</class>
        <extends>QWidget</extends>
        <header>QtWebKit/QWebView</header>
       </customwidget>
      </customwidgets>
      <resources/>
      <connections/>
     </ui>