Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 6381

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Qt 4.6: mainwindow.ui Example File (widgets/stylesheet/mainwindow.ui)</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">mainwindow.ui Example File<br /><span class="small-subtitle">widgets/stylesheet/mainwindow.ui</span>
</h1>
<pre> &lt;ui version=&quot;4.0&quot; &gt;
  &lt;class&gt;MainWindow&lt;/class&gt;
  &lt;widget class=&quot;QMainWindow&quot; name=&quot;MainWindow&quot; &gt;
   &lt;property name=&quot;geometry&quot; &gt;
    &lt;rect&gt;
     &lt;x&gt;0&lt;/x&gt;
     &lt;y&gt;0&lt;/y&gt;
     &lt;width&gt;400&lt;/width&gt;
     &lt;height&gt;413&lt;/height&gt;
    &lt;/rect&gt;
   &lt;/property&gt;
   &lt;property name=&quot;windowTitle&quot; &gt;
    &lt;string&gt;Style Sheet&lt;/string&gt;
   &lt;/property&gt;
   &lt;widget class=&quot;QWidget&quot; name=&quot;centralwidget&quot; &gt;
    &lt;layout class=&quot;QVBoxLayout&quot; &gt;
     &lt;property name=&quot;margin&quot; &gt;
      &lt;number&gt;9&lt;/number&gt;
     &lt;/property&gt;
     &lt;property name=&quot;spacing&quot; &gt;
      &lt;number&gt;6&lt;/number&gt;
     &lt;/property&gt;
     &lt;item&gt;
      &lt;widget class=&quot;QFrame&quot; name=&quot;mainFrame&quot; &gt;
       &lt;property name=&quot;frameShape&quot; &gt;
        &lt;enum&gt;QFrame::StyledPanel&lt;/enum&gt;
       &lt;/property&gt;
       &lt;property name=&quot;frameShadow&quot; &gt;
        &lt;enum&gt;QFrame::Raised&lt;/enum&gt;
       &lt;/property&gt;
       &lt;layout class=&quot;QGridLayout&quot; &gt;
        &lt;property name=&quot;margin&quot; &gt;
         &lt;number&gt;9&lt;/number&gt;
        &lt;/property&gt;
        &lt;property name=&quot;spacing&quot; &gt;
         &lt;number&gt;6&lt;/number&gt;
        &lt;/property&gt;
        &lt;item row=&quot;6&quot; column=&quot;0&quot; colspan=&quot;5&quot; &gt;
         &lt;widget class=&quot;QCheckBox&quot; name=&quot;agreeCheckBox&quot; &gt;
          &lt;property name=&quot;toolTip&quot; &gt;
           &lt;string&gt;Please read the LICENSE file before checking&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;I accept the terms and &amp;amp;conditions&lt;/string&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;5&quot; column=&quot;0&quot; &gt;
         &lt;widget class=&quot;QLabel&quot; name=&quot;label&quot; &gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;Profession:&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;alignment&quot; &gt;
           &lt;set&gt;Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing&lt;/set&gt;
          &lt;/property&gt;
          &lt;property name=&quot;buddy&quot; &gt;
           &lt;cstring&gt;professionList&lt;/cstring&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;0&quot; column=&quot;0&quot; &gt;
         &lt;widget class=&quot;QLabel&quot; name=&quot;nameLabel&quot; &gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;&amp;amp;Name:&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;alignment&quot; &gt;
           &lt;set&gt;Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter&lt;/set&gt;
          &lt;/property&gt;
          &lt;property name=&quot;buddy&quot; &gt;
           &lt;cstring&gt;nameCombo&lt;/cstring&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;1&quot; column=&quot;1&quot; &gt;
         &lt;widget class=&quot;QRadioButton&quot; name=&quot;maleRadioButton&quot; &gt;
          &lt;property name=&quot;toolTip&quot; &gt;
           &lt;string&gt;Check this if you are male&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;&amp;amp;Male&lt;/string&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;3&quot; column=&quot;0&quot; &gt;
         &lt;widget class=&quot;QLabel&quot; name=&quot;passwordLabel&quot; &gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;&amp;amp;Password:&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;alignment&quot; &gt;
           &lt;set&gt;Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter&lt;/set&gt;
          &lt;/property&gt;
          &lt;property name=&quot;buddy&quot; &gt;
           &lt;cstring&gt;passwordEdit&lt;/cstring&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;4&quot; column=&quot;1&quot; colspan=&quot;4&quot; &gt;
         &lt;widget class=&quot;QComboBox&quot; name=&quot;countryCombo&quot; &gt;
          &lt;property name=&quot;toolTip&quot; &gt;
           &lt;string&gt;Specify country of origin&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;statusTip&quot; &gt;
           &lt;string&gt;Specify country of origin&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;currentIndex&quot; &gt;
           &lt;number&gt;6&lt;/number&gt;
          &lt;/property&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;Egypt&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;France&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;Germany&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;India&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;Italy&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;Norway&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;Pakistan&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;2&quot; column=&quot;0&quot; &gt;
         &lt;widget class=&quot;QLabel&quot; name=&quot;ageLabel&quot; &gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;&amp;amp;Age:&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;alignment&quot; &gt;
           &lt;set&gt;Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter&lt;/set&gt;
          &lt;/property&gt;
          &lt;property name=&quot;buddy&quot; &gt;
           &lt;cstring&gt;ageSpinBox&lt;/cstring&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;4&quot; column=&quot;0&quot; &gt;
         &lt;widget class=&quot;QLabel&quot; name=&quot;countryLabel&quot; &gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;Country:&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;alignment&quot; &gt;
           &lt;set&gt;Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter&lt;/set&gt;
          &lt;/property&gt;
          &lt;property name=&quot;buddy&quot; &gt;
           &lt;cstring&gt;countryCombo&lt;/cstring&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;1&quot; column=&quot;0&quot; &gt;
         &lt;widget class=&quot;QLabel&quot; name=&quot;genderLabel&quot; &gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;Gender:&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;alignment&quot; &gt;
           &lt;set&gt;Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter&lt;/set&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;3&quot; column=&quot;1&quot; colspan=&quot;4&quot; &gt;
         &lt;widget class=&quot;QLineEdit&quot; name=&quot;passwordEdit&quot; &gt;
          &lt;property name=&quot;toolTip&quot; &gt;
           &lt;string&gt;Specify your password&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;statusTip&quot; &gt;
           &lt;string&gt;Specify your password&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;Password&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;echoMode&quot; &gt;
           &lt;enum&gt;QLineEdit::Password&lt;/enum&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;1&quot; column=&quot;2&quot; colspan=&quot;2&quot; &gt;
         &lt;widget class=&quot;QRadioButton&quot; name=&quot;femaleRadioButton&quot; &gt;
          &lt;property name=&quot;toolTip&quot;&gt;
           &lt;string&gt;Check this if you are female&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;text&quot; &gt;
           &lt;string&gt;&amp;amp;Female&lt;/string&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;2&quot; column=&quot;1&quot; colspan=&quot;2&quot; &gt;
         &lt;widget class=&quot;QSpinBox&quot; name=&quot;ageSpinBox&quot; &gt;
          &lt;property name=&quot;toolTip&quot; &gt;
           &lt;string&gt;Specify your age&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;statusTip&quot; &gt;
           &lt;string&gt;Specify your age&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;minimum&quot; &gt;
           &lt;number&gt;12&lt;/number&gt;
          &lt;/property&gt;
          &lt;property name=&quot;value&quot; &gt;
           &lt;number&gt;22&lt;/number&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;0&quot; column=&quot;1&quot; colspan=&quot;4&quot; &gt;
         &lt;widget class=&quot;QComboBox&quot; name=&quot;nameCombo&quot; &gt;
          &lt;property name=&quot;toolTip&quot; &gt;
           &lt;string&gt;Specify your name&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;editable&quot; &gt;
           &lt;bool&gt;true&lt;/bool&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;1&quot; column=&quot;4&quot; &gt;
         &lt;spacer&gt;
          &lt;property name=&quot;orientation&quot; &gt;
           &lt;enum&gt;Qt::Horizontal&lt;/enum&gt;
          &lt;/property&gt;
          &lt;property name=&quot;sizeHint&quot; &gt;
           &lt;size&gt;
            &lt;width&gt;40&lt;/width&gt;
            &lt;height&gt;20&lt;/height&gt;
           &lt;/size&gt;
          &lt;/property&gt;
         &lt;/spacer&gt;
        &lt;/item&gt;
        &lt;item row=&quot;2&quot; column=&quot;3&quot; colspan=&quot;2&quot; &gt;
         &lt;spacer&gt;
          &lt;property name=&quot;orientation&quot; &gt;
           &lt;enum&gt;Qt::Horizontal&lt;/enum&gt;
          &lt;/property&gt;
          &lt;property name=&quot;sizeHint&quot; &gt;
           &lt;size&gt;
            &lt;width&gt;61&lt;/width&gt;
            &lt;height&gt;20&lt;/height&gt;
           &lt;/size&gt;
          &lt;/property&gt;
         &lt;/spacer&gt;
        &lt;/item&gt;
        &lt;item row=&quot;7&quot; column=&quot;3&quot; colspan=&quot;2&quot; &gt;
         &lt;widget class=&quot;QDialogButtonBox&quot; name=&quot;buttonBox&quot; &gt;
          &lt;property name=&quot;orientation&quot; &gt;
           &lt;enum&gt;Qt::Horizontal&lt;/enum&gt;
          &lt;/property&gt;
          &lt;property name=&quot;standardButtons&quot; &gt;
           &lt;set&gt;QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok&lt;/set&gt;
          &lt;/property&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
        &lt;item row=&quot;5&quot; column=&quot;1&quot; colspan=&quot;4&quot; &gt;
         &lt;widget class=&quot;QListWidget&quot; name=&quot;professionList&quot; &gt;
          &lt;property name=&quot;toolTip&quot; &gt;
           &lt;string&gt;Select your profession&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;statusTip&quot; &gt;
           &lt;string&gt;Specify your name here&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;whatsThis&quot; &gt;
           &lt;string&gt;Specify your name here&lt;/string&gt;
          &lt;/property&gt;
          &lt;property name=&quot;currentRow&quot; &gt;
           &lt;number&gt;0&lt;/number&gt;
          &lt;/property&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;Developer&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;Student&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
          &lt;item&gt;
           &lt;property name=&quot;text&quot; &gt;
            &lt;string&gt;Fisherman&lt;/string&gt;
           &lt;/property&gt;
          &lt;/item&gt;
         &lt;/widget&gt;
        &lt;/item&gt;
       &lt;/layout&gt;
      &lt;/widget&gt;
     &lt;/item&gt;
    &lt;/layout&gt;
   &lt;/widget&gt;
   &lt;widget class=&quot;QMenuBar&quot; name=&quot;menubar&quot; &gt;
    &lt;property name=&quot;geometry&quot; &gt;
     &lt;rect&gt;
      &lt;x&gt;0&lt;/x&gt;
      &lt;y&gt;0&lt;/y&gt;
      &lt;width&gt;400&lt;/width&gt;
      &lt;height&gt;29&lt;/height&gt;
     &lt;/rect&gt;
    &lt;/property&gt;
    &lt;widget class=&quot;QMenu&quot; name=&quot;menu_File&quot; &gt;
     &lt;property name=&quot;title&quot; &gt;
      &lt;string&gt;&amp;amp;File&lt;/string&gt;
     &lt;/property&gt;
     &lt;addaction name=&quot;editStyleAction&quot; /&gt;
     &lt;addaction name=&quot;separator&quot; /&gt;
     &lt;addaction name=&quot;exitAction&quot; /&gt;
    &lt;/widget&gt;
    &lt;widget class=&quot;QMenu&quot; name=&quot;menu_Help&quot; &gt;
     &lt;property name=&quot;title&quot; &gt;
      &lt;string&gt;&amp;amp;Help&lt;/string&gt;
     &lt;/property&gt;
     &lt;addaction name=&quot;aboutAction&quot; /&gt;
     &lt;addaction name=&quot;aboutQtAction&quot; /&gt;
    &lt;/widget&gt;
    &lt;addaction name=&quot;menu_File&quot; /&gt;
    &lt;addaction name=&quot;menu_Help&quot; /&gt;
   &lt;/widget&gt;
   &lt;widget class=&quot;QStatusBar&quot; name=&quot;statusbar&quot; /&gt;
   &lt;action name=&quot;exitAction&quot; &gt;
    &lt;property name=&quot;text&quot; &gt;
     &lt;string&gt;&amp;amp;Exit&lt;/string&gt;
    &lt;/property&gt;
   &lt;/action&gt;
   &lt;action name=&quot;aboutQtAction&quot; &gt;
    &lt;property name=&quot;text&quot; &gt;
     &lt;string&gt;About Qt&lt;/string&gt;
    &lt;/property&gt;
   &lt;/action&gt;
   &lt;action name=&quot;editStyleAction&quot; &gt;
    &lt;property name=&quot;text&quot; &gt;
     &lt;string&gt;Edit &amp;amp;Style...&lt;/string&gt;
    &lt;/property&gt;
   &lt;/action&gt;
   &lt;action name=&quot;aboutAction&quot; &gt;
    &lt;property name=&quot;text&quot; &gt;
     &lt;string&gt;About&lt;/string&gt;
    &lt;/property&gt;
   &lt;/action&gt;
  &lt;/widget&gt;
  &lt;resources/&gt;
  &lt;connections/&gt;
 &lt;/ui&gt;</pre>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>