mainwindow.ui Example File

activeqt/mediaplayer/mainwindow.ui

  <?xml version="1.0" encoding="UTF-8"?>
  <ui version="4.0">
   <class>MainWindow</class>
   <widget class="QMainWindow" name="MainWindow">
    <property name="geometry">
     <rect>
      <x>0</x>
      <y>0</y>
      <width>794</width>
      <height>599</height>
     </rect>
    </property>
    <property name="acceptDrops">
     <bool>true</bool>
    </property>
    <property name="windowTitle">
     <string>Qt Media Player</string>
    </property>
    <widget class="QWidget" name="centralWidget">
     <layout class="QHBoxLayout" name="unnamed">
      <property name="spacing">
       <number>6</number>
      </property>
      <property name="leftMargin">
       <number>0</number>
      </property>
      <property name="topMargin">
       <number>0</number>
      </property>
      <property name="rightMargin">
       <number>0</number>
      </property>
      <property name="bottomMargin">
       <number>0</number>
      </property>
      <item>
       <widget class="QFrame" name="Frame">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="frameShape">
         <enum>QFrame::StyledPanel</enum>
        </property>
        <property name="frameShadow">
         <enum>QFrame::Sunken</enum>
        </property>
        <layout class="QVBoxLayout" name="unnamed">
         <property name="spacing">
          <number>0</number>
         </property>
         <property name="leftMargin">
          <number>1</number>
         </property>
         <property name="topMargin">
          <number>1</number>
         </property>
         <property name="rightMargin">
          <number>1</number>
         </property>
         <property name="bottomMargin">
          <number>1</number>
         </property>
         <item>
          <widget class="MediaAxWidget" name="mediaPlayer">
           <property name="control" stdset="0">
            <string>{6bf52a52-394a-11d3-b153-00c04f79faa6}</string>
           </property>
           <property name="sizePolicy" stdset="0">
            <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
     </layout>
    </widget>
    <widget class="QMenuBar" name="menubar">
     <property name="geometry">
      <rect>
       <x>0</x>
       <y>0</y>
       <width>794</width>
       <height>21</height>
      </rect>
     </property>
     <widget class="QMenu" name="PopupMenu">
      <property name="title">
       <string>&amp;File</string>
      </property>
      <addaction name="actionOpen"/>
      <addaction name="actionExit"/>
     </widget>
     <widget class="QMenu" name="menuHelp">
      <property name="title">
       <string>&amp;Help</string>
      </property>
      <addaction name="actionAbout"/>
      <addaction name="actionAboutQt"/>
     </widget>
     <addaction name="PopupMenu"/>
     <addaction name="menuHelp"/>
    </widget>
    <action name="actionOpen">
     <property name="text">
      <string>&amp;Open</string>
     </property>
    </action>
    <action name="actionExit">
     <property name="text">
      <string>E&amp;xit</string>
     </property>
    </action>
    <action name="actionAbout">
     <property name="text">
      <string>&amp;About</string>
     </property>
    </action>
    <action name="actionAboutQt">
     <property name="text">
      <string>About &amp;Qt</string>
     </property>
    </action>
    <actiongroup name="FileNewGroup"/>
   </widget>
   <layoutdefault spacing="6" margin="11"/>
   <customwidgets>
    <customwidget>
     <class>QAxWidget</class>
     <extends>QWidget</extends>
     <header>qaxwidget.h</header>
    </customwidget>
    <customwidget>
     <class>MediaAxWidget</class>
     <extends>QAxWidget</extends>
     <header>mediaaxwidget.h</header>
    </customwidget>
   </customwidgets>
   <resources/>
   <connections/>
  </ui>