Sophie

Sophie

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

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: window.ui Example File (painting/svggenerator/forms/window.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">window.ui Example File<br /><span class="small-subtitle">painting/svggenerator/forms/window.ui</span>
</h1>
<pre> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;ui version=&quot;4.0&quot;&gt;
  &lt;class&gt;Window&lt;/class&gt;
  &lt;widget class=&quot;QWidget&quot; name=&quot;Window&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;339&lt;/width&gt;
     &lt;height&gt;353&lt;/height&gt;
    &lt;/rect&gt;
   &lt;/property&gt;
   &lt;property name=&quot;windowTitle&quot;&gt;
    &lt;string&gt;SVG Generator&lt;/string&gt;
   &lt;/property&gt;
   &lt;layout class=&quot;QGridLayout&quot; name=&quot;gridLayout_2&quot;&gt;
    &lt;property name=&quot;sizeConstraint&quot;&gt;
     &lt;enum&gt;QLayout::SetFixedSize&lt;/enum&gt;
    &lt;/property&gt;
    &lt;item row=&quot;0&quot; column=&quot;0&quot;&gt;
     &lt;spacer name=&quot;horizontalSpacer_2&quot;&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; stdset=&quot;0&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;0&quot; column=&quot;1&quot;&gt;
     &lt;widget class=&quot;DisplayWidget&quot; name=&quot;displayWidget&quot; native=&quot;true&quot;&gt;
      &lt;property name=&quot;sizePolicy&quot;&gt;
       &lt;sizepolicy hsizetype=&quot;Fixed&quot; vsizetype=&quot;Fixed&quot;&gt;
        &lt;horstretch&gt;200&lt;/horstretch&gt;
        &lt;verstretch&gt;200&lt;/verstretch&gt;
       &lt;/sizepolicy&gt;
      &lt;/property&gt;
      &lt;property name=&quot;minimumSize&quot;&gt;
       &lt;size&gt;
        &lt;width&gt;200&lt;/width&gt;
        &lt;height&gt;200&lt;/height&gt;
       &lt;/size&gt;
      &lt;/property&gt;
      &lt;property name=&quot;maximumSize&quot;&gt;
       &lt;size&gt;
        &lt;width&gt;200&lt;/width&gt;
        &lt;height&gt;200&lt;/height&gt;
       &lt;/size&gt;
      &lt;/property&gt;
     &lt;/widget&gt;
    &lt;/item&gt;
    &lt;item row=&quot;0&quot; column=&quot;2&quot;&gt;
     &lt;spacer name=&quot;horizontalSpacer_3&quot;&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; stdset=&quot;0&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;1&quot; column=&quot;0&quot; colspan=&quot;3&quot;&gt;
     &lt;layout class=&quot;QGridLayout&quot; name=&quot;gridLayout&quot;&gt;
      &lt;item row=&quot;0&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;&amp;amp;Shape:&lt;/string&gt;
        &lt;/property&gt;
        &lt;property name=&quot;buddy&quot;&gt;
         &lt;cstring&gt;shapeComboBox&lt;/cstring&gt;
        &lt;/property&gt;
       &lt;/widget&gt;
      &lt;/item&gt;
      &lt;item row=&quot;0&quot; column=&quot;1&quot;&gt;
       &lt;widget class=&quot;QComboBox&quot; name=&quot;shapeComboBox&quot;&gt;
        &lt;item&gt;
         &lt;property name=&quot;text&quot;&gt;
          &lt;string&gt;House&lt;/string&gt;
         &lt;/property&gt;
        &lt;/item&gt;
        &lt;item&gt;
         &lt;property name=&quot;text&quot;&gt;
          &lt;string&gt;Car&lt;/string&gt;
         &lt;/property&gt;
        &lt;/item&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;label_2&quot;&gt;
        &lt;property name=&quot;text&quot;&gt;
         &lt;string&gt;&amp;amp;Color:&lt;/string&gt;
        &lt;/property&gt;
        &lt;property name=&quot;buddy&quot;&gt;
         &lt;cstring&gt;colorButton&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;QToolButton&quot; name=&quot;colorButton&quot;&gt;
        &lt;property name=&quot;text&quot;&gt;
         &lt;string&gt;Choose Color...&lt;/string&gt;
        &lt;/property&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;label_3&quot;&gt;
        &lt;property name=&quot;text&quot;&gt;
         &lt;string&gt;&amp;amp;Background:&lt;/string&gt;
        &lt;/property&gt;
        &lt;property name=&quot;buddy&quot;&gt;
         &lt;cstring&gt;shapeComboBox_2&lt;/cstring&gt;
        &lt;/property&gt;
       &lt;/widget&gt;
      &lt;/item&gt;
      &lt;item row=&quot;2&quot; column=&quot;1&quot;&gt;
       &lt;widget class=&quot;QComboBox&quot; name=&quot;shapeComboBox_2&quot;&gt;
        &lt;item&gt;
         &lt;property name=&quot;text&quot;&gt;
          &lt;string&gt;Sky&lt;/string&gt;
         &lt;/property&gt;
        &lt;/item&gt;
        &lt;item&gt;
         &lt;property name=&quot;text&quot;&gt;
          &lt;string&gt;Trees&lt;/string&gt;
         &lt;/property&gt;
        &lt;/item&gt;
        &lt;item&gt;
         &lt;property name=&quot;text&quot;&gt;
          &lt;string&gt;Road&lt;/string&gt;
         &lt;/property&gt;
        &lt;/item&gt;
       &lt;/widget&gt;
      &lt;/item&gt;
     &lt;/layout&gt;
    &lt;/item&gt;
    &lt;item row=&quot;2&quot; column=&quot;0&quot; colspan=&quot;3&quot;&gt;
     &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout&quot;&gt;
      &lt;item&gt;
       &lt;spacer name=&quot;horizontalSpacer&quot;&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; stdset=&quot;0&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&gt;
       &lt;widget class=&quot;QToolButton&quot; name=&quot;toolButton_2&quot;&gt;
        &lt;property name=&quot;text&quot;&gt;
         &lt;string&gt;Save &amp;amp;As...&lt;/string&gt;
        &lt;/property&gt;
       &lt;/widget&gt;
      &lt;/item&gt;
     &lt;/layout&gt;
    &lt;/item&gt;
   &lt;/layout&gt;
  &lt;/widget&gt;
  &lt;customwidgets&gt;
   &lt;customwidget&gt;
    &lt;class&gt;DisplayWidget&lt;/class&gt;
    &lt;extends&gt;QWidget&lt;/extends&gt;
    &lt;header&gt;displaywidget.h&lt;/header&gt;
    &lt;container&gt;1&lt;/container&gt;
   &lt;/customwidget&gt;
  &lt;/customwidgets&gt;
  &lt;resources/&gt;
  &lt;connections&gt;
   &lt;connection&gt;
    &lt;sender&gt;shapeComboBox&lt;/sender&gt;
    &lt;signal&gt;currentIndexChanged(int)&lt;/signal&gt;
    &lt;receiver&gt;Window&lt;/receiver&gt;
    &lt;slot&gt;updateShape(int)&lt;/slot&gt;
    &lt;hints&gt;
     &lt;hint type=&quot;sourcelabel&quot;&gt;
      &lt;x&gt;288&lt;/x&gt;
      &lt;y&gt;232&lt;/y&gt;
     &lt;/hint&gt;
     &lt;hint type=&quot;destinationlabel&quot;&gt;
      &lt;x&gt;336&lt;/x&gt;
      &lt;y&gt;234&lt;/y&gt;
     &lt;/hint&gt;
    &lt;/hints&gt;
   &lt;/connection&gt;
   &lt;connection&gt;
    &lt;sender&gt;colorButton&lt;/sender&gt;
    &lt;signal&gt;clicked()&lt;/signal&gt;
    &lt;receiver&gt;Window&lt;/receiver&gt;
    &lt;slot&gt;updateColor()&lt;/slot&gt;
    &lt;hints&gt;
     &lt;hint type=&quot;sourcelabel&quot;&gt;
      &lt;x&gt;301&lt;/x&gt;
      &lt;y&gt;262&lt;/y&gt;
     &lt;/hint&gt;
     &lt;hint type=&quot;destinationlabel&quot;&gt;
      &lt;x&gt;337&lt;/x&gt;
      &lt;y&gt;267&lt;/y&gt;
     &lt;/hint&gt;
    &lt;/hints&gt;
   &lt;/connection&gt;
   &lt;connection&gt;
    &lt;sender&gt;shapeComboBox_2&lt;/sender&gt;
    &lt;signal&gt;currentIndexChanged(int)&lt;/signal&gt;
    &lt;receiver&gt;Window&lt;/receiver&gt;
    &lt;slot&gt;updateBackground(int)&lt;/slot&gt;
    &lt;hints&gt;
     &lt;hint type=&quot;sourcelabel&quot;&gt;
      &lt;x&gt;306&lt;/x&gt;
      &lt;y&gt;299&lt;/y&gt;
     &lt;/hint&gt;
     &lt;hint type=&quot;destinationlabel&quot;&gt;
      &lt;x&gt;337&lt;/x&gt;
      &lt;y&gt;311&lt;/y&gt;
     &lt;/hint&gt;
    &lt;/hints&gt;
   &lt;/connection&gt;
   &lt;connection&gt;
    &lt;sender&gt;toolButton_2&lt;/sender&gt;
    &lt;signal&gt;clicked()&lt;/signal&gt;
    &lt;receiver&gt;Window&lt;/receiver&gt;
    &lt;slot&gt;saveSvg()&lt;/slot&gt;
    &lt;hints&gt;
     &lt;hint type=&quot;sourcelabel&quot;&gt;
      &lt;x&gt;298&lt;/x&gt;
      &lt;y&gt;336&lt;/y&gt;
     &lt;/hint&gt;
     &lt;hint type=&quot;destinationlabel&quot;&gt;
      &lt;x&gt;307&lt;/x&gt;
      &lt;y&gt;348&lt;/y&gt;
     &lt;/hint&gt;
    &lt;/hints&gt;
   &lt;/connection&gt;
  &lt;/connections&gt;
  &lt;slots&gt;
   &lt;slot&gt;updateBackground(int)&lt;/slot&gt;
   &lt;slot&gt;updateColor()&lt;/slot&gt;
   &lt;slot&gt;updateShape(int)&lt;/slot&gt;
   &lt;slot&gt;saveSvg()&lt;/slot&gt;
  &lt;/slots&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>