Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 4566

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>mainwindow.ui Example File | Qt Widgets 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-widgets-stylesheet-example.html">Style Sheet Example</a></td><td >mainwindow.ui Example File</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">mainwindow.ui Example File</h1>
<span class="subtitle">widgets/stylesheet/mainwindow.ui</span>
<!-- $$$widgets/stylesheet/mainwindow.ui-description -->
<div class="descr"> <a name="details"></a>
<pre class="cpp">

  &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>
</div>
<!-- @@@widgets/stylesheet/mainwindow.ui -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>