Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

passworddialog.ui Example File
demos/browser/passworddialog.ui

 <ui version="4.0" >
  <class>PasswordDialog</class>
  <widget class="QDialog" name="PasswordDialog" >
   <property name="geometry" >
    <rect>
     <x>0</x>
     <y>0</y>
     <width>429</width>
     <height>218</height>
    </rect>
   </property>
   <property name="windowTitle" >
    <string>Authentication Required</string>
   </property>
   <layout class="QGridLayout" >
    <item row="0" column="0" >
     <layout class="QHBoxLayout" >
      <item>
       <widget class="QLabel" name="lblInfo" >
        <property name="text" >
         <string>DUMMY ICON</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QLabel" name="lblIntro" >
        <property name="sizePolicy" >
         <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" >
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="text" >
         <string>INTRO TEXT DUMMY</string>
        </property>
       </widget>
      </item>
     </layout>
    </item>
    <item row="1" column="0" >
     <layout class="QVBoxLayout" >
      <item>
       <widget class="QLabel" name="label" >
        <property name="text" >
         <string>Username:</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QLineEdit" name="lneUsername" />
      </item>
     </layout>
    </item>
    <item row="2" column="0" >
     <layout class="QVBoxLayout" >
      <item>
       <widget class="QLabel" name="lblPassword" >
        <property name="text" >
         <string>Password:</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QLineEdit" name="lnePassword" >
        <property name="echoMode" >
         <enum>QLineEdit::Password</enum>
        </property>
       </widget>
      </item>
     </layout>
    </item>
    <item row="3" column="0" >
     <spacer>
      <property name="orientation" >
       <enum>Qt::Vertical</enum>
      </property>
      <property name="sizeHint" >
       <size>
        <width>20</width>
        <height>40</height>
       </size>
      </property>
     </spacer>
    </item>
    <item row="4" column="0" >
     <widget class="QDialogButtonBox" name="buttonBox" >
      <property name="orientation" >
       <enum>Qt::Horizontal</enum>
      </property>
      <property name="standardButtons" >
       <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
      </property>
     </widget>
    </item>
   </layout>
  </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>


Copyright © 2008 Trolltech Trademarks
Qt 4.4.0-beta1