window.ui Example File | Qt WebKit Examples 5.9

Qt 5.9 | Qt WebKit Examples | Simple Selector Example | window.ui Example File

Qt 5.9.2 Reference Documentation

# window.ui Example File

webkitwidgets/simpleselector/window.ui

      <?xml version="1.0" encoding="UTF-8"?>
      <ui version="4.0">
       <class>Window</class>
       <widget class="QWidget" name="Window">
        <property name="geometry">
         <rect>
          <x>0</x>
          <y>0</y>
          <width>640</width>
          <height>480</height>
         </rect>
        </property>
        <property name="windowTitle">
         <string>Web Element Selector</string>
        </property>
        <layout class="QVBoxLayout" name="verticalLayout">
         <item>
          <widget class="QWebView" name="webView">
           <property name="url">
            <url>
             <string>http://webkit.org/</string>
            </url>
           </property>
          </widget>
         </item>
         <item>
          <layout class="QHBoxLayout" name="horizontalLayout">
           <item>
            <layout class="QFormLayout" name="formLayout">
             <property name="fieldGrowthPolicy">
              <enum>QFormLayout::ExpandingFieldsGrow</enum>
             </property>
             <item row="0" column="0">
              <widget class="QLabel" name="elementLabel">
               <property name="text">
                <string>&amp;Element:</string>
               </property>
               <property name="buddy">
                <cstring>elementLineEdit</cstring>
               </property>
              </widget>
             </item>
             <item row="0" column="1">
              <widget class="QLineEdit" name="elementLineEdit">
               <property name="text">
                <string>li a</string>
               </property>
              </widget>
             </item>
            </layout>
           </item>
           <item>
            <widget class="QPushButton" name="highlightButton">
             <property name="text">
              <string>&amp;Highlight</string>
             </property>
            </widget>
           </item>
          </layout>
         </item>
        </layout>
       </widget>
       <customwidgets>
        <customwidget>
         <class>QWebView</class>
         <extends>QWidget</extends>
         <header>QtWebKit/QWebView</header>
        </customwidget>
       </customwidgets>
       <resources/>
       <connections/>
      </ui>