mainwindow.ui Example File

webenginewidgets/stylesheetbrowser/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>713</width>
      <height>455</height>
     </rect>
    </property>
    <property name="windowTitle">
     <string>StyleSheet Browser</string>
    </property>
    <property name="unifiedTitleAndToolBarOnMac">
     <bool>false</bool>
    </property>
    <widget class="QWidget" name="centralWidget">
     <layout class="QHBoxLayout" name="horizontalLayout">
      <property name="spacing">
       <number>0</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="QWidget" name="webContentsWidget" native="true">
        <layout class="QVBoxLayout" name="verticalLayout_3">
         <property name="spacing">
          <number>0</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="QWidget" name="urlBarWidget" native="true">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <layout class="QHBoxLayout" name="horizontalLayout_2">
            <item>
             <widget class="QLineEdit" name="urlBar"/>
            </item>
            <item>
             <widget class="QPushButton" name="reloadButton">
              <property name="text">
               <string/>
              </property>
              <property name="icon">
               <iconset resource="stylesheetbrowser.qrc">
                <normaloff>:/view-refresh.png</normaloff>:/view-refresh.png</iconset>
              </property>
              <property name="shortcut">
               <string>Ctrl+R</string>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QPushButton" name="settingsButton">
              <property name="text">
               <string>Settings</string>
              </property>
             </widget>
            </item>
           </layout>
          </widget>
         </item>
         <item>
          <widget class="QWebEngineView" name="webEngineView" native="true">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="url" stdset="0">
            <url>
             <string>about:blank</string>
            </url>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
     </layout>
    </widget>
    <widget class="QMenuBar" name="menuBar">
     <property name="geometry">
      <rect>
       <x>0</x>
       <y>0</y>
       <width>713</width>
       <height>20</height>
      </rect>
     </property>
    </widget>
   </widget>
   <layoutdefault spacing="6" margin="11"/>
   <customwidgets>
    <customwidget>
     <class>QWebEngineView</class>
     <extends>QWidget</extends>
     <header location="global">QtWebEngineWidgets/QWebEngineView</header>
    </customwidget>
   </customwidgets>
   <resources>
    <include location="stylesheetbrowser.qrc"/>
   </resources>
   <connections/>
  </ui>