mainwindow.ui Example File | Qt WebEngine 5.10

Qt 5.10 | Qt WebEngine | WebEngine StyleSheet Browser Example | mainwindow.ui Example File

Qt 5.10.1 Reference Documentation

# 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">
          <item>
           <widget class="QWidget" name="webContentsWidget" native="true">
            <layout class="QVBoxLayout" name="verticalLayout_3">
             <item>
              <widget class="QWidget" name="urlBarWidget" native="true">
               <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="shortcut">
                   <string>Ctrl+R</string>
                  </property>
                  <property name="icon">
                   <iconset resource="stylesheetbrowser.qrc">
                    <normaloff>:/view-refresh.png</normaloff>:/view-refresh.png</iconset>
                  </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">
               <property name="url">
                <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/>
       <connections/>
      </ui>