Qt 5.11 | Qt WebEngine | WebEngine Widgets Simple Browser Example | passworddialog.ui Example File

Qt 5.11.3 Reference Documentation

# passworddialog.ui Example File

webenginewidgets/simplebrowser/passworddialog.ui

      <?xml version="1.0" encoding="UTF-8"?>
      <ui version="4.0">
       <class>PasswordDialog</class>
       <widget class="QDialog" name="PasswordDialog">
        <property name="geometry">
         <rect>
          <x>0</x>
          <y>0</y>
          <width>399</width>
          <height>148</height>
         </rect>
        </property>
        <property name="windowTitle">
         <string>Authentication Required</string>
        </property>
        <layout class="QGridLayout" name="gridLayout" columnstretch="0,0" columnminimumwidth="0,0">
         <item row="0" column="0">
          <widget class="QLabel" name="m_iconLabel">
           <property name="text">
            <string>Icon</string>
           </property>
           <property name="alignment">
            <set>Qt::AlignCenter</set>
           </property>
          </widget>
         </item>
         <item row="0" column="1">
          <widget class="QLabel" name="m_infoLabel">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="text">
            <string>Info</string>
           </property>
           <property name="wordWrap">
            <bool>true</bool>
           </property>
          </widget>
         </item>
         <item row="1" column="0">
          <widget class="QLabel" name="userLabel">
           <property name="text">
            <string>Username:</string>
           </property>
          </widget>
         </item>
         <item row="1" column="1">
          <widget class="QLineEdit" name="m_userNameLineEdit"/>
         </item>
         <item row="2" column="0">
          <widget class="QLabel" name="passwordLabel">
           <property name="text">
            <string>Password:</string>
           </property>
          </widget>
         </item>
         <item row="2" column="1">
          <widget class="QLineEdit" name="m_passwordLineEdit">
           <property name="echoMode">
            <enum>QLineEdit::Password</enum>
           </property>
          </widget>
         </item>
         <item row="3" column="0" colspan="2">
          <widget class="QDialogButtonBox" name="buttonBox">
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="standardButtons">
            <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
           </property>
          </widget>
         </item>
        </layout>
        <zorder>userLabel</zorder>
        <zorder>m_userNameLineEdit</zorder>
        <zorder>passwordLabel</zorder>
        <zorder>m_passwordLineEdit</zorder>
        <zorder>buttonBox</zorder>
        <zorder>m_iconLabel</zorder>
        <zorder>m_infoLabel</zorder>
       </widget>
       <resources/>
       <connections>
        <connection>
         <sender>buttonBox</sender>
         <signal>accepted()</signal>
         <receiver>PasswordDialog</receiver>
         <slot>accept()</slot>
         <hints>
          <hint type="sourcelabel">
           <x>248</x>
           <y>254</y>
          </hint>
          <hint type="destinationlabel">
           <x>157</x>
           <y>274</y>
          </hint>
         </hints>
        </connection>
        <connection>
         <sender>buttonBox</sender>
         <signal>rejected()</signal>
         <receiver>PasswordDialog</receiver>
         <slot>reject()</slot>
         <hints>
          <hint type="sourcelabel">
           <x>316</x>
           <y>260</y>
          </hint>
          <hint type="destinationlabel">
           <x>286</x>
           <y>274</y>
          </hint>
         </hints>
        </connection>
       </connections>
      </ui>