Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 298

qtjambi-doc-4.3.3-3mdv2008.1.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">
<!-- /home/gvatteka/dev/qt-4.3/doc/src/designer-manual.qdoc -->
<head>
  <title>Customizing Qt Designer Forms</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1 align="center">Customizing Qt Designer Forms<br /><small></small></h1>
<p align="center"><img src="images/designer-form-settings.png" /></p><p>When saving a form in <i>Qt Designer</i>, it is stored as an <tt>.ui</tt> file. Several form settings, for example the grid settings or the margin and spacing for the default layout, are stored along with the form's components. These settings are used when the <a href="uic.html#uic">uic</tt></a> generates the form's C++ code. For more information on how to use forms in your application, see the <a href="designer-manual.html#using-forms-and-components">Using Forms and Components</tt></a> section.</p>
<a name="modifying-the-form-settings"></a>
<h2>Modifying the Form Settings</h2>
<p>To modify the form settings, open the <b>Form</b> menu and select <b>Form Settings..&#x2e;</b></p>
<p>In the forms settings dialog you can specify the <b>Author</b> of the form.</p>
<p>You can also alter the margin and spacing properties for the form's default layout (<b>Layout Default</b>). These default layout properties will be replaced by the corresponding <b>Layout Function</b>, if the function is specified, when <tt>uic</tt> generates code for the form. The form settings dialog lets you specify functions for both the margin and the spacing.</p>
<a name="layoutfunction"></a><p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><img src="images/designer-form-layoutfunction.png" /></td><td><b>Layout Function</b><p>The default layout properties will be replaced by the corresponding <b>Layout Function</b>, when <tt>uic</tt> generates code for the form.</p>
<p>This is useful when different environments requires different layouts for the same form.</p>
<p>To specify layout functions for the form's margin and spacing, check the <b>Layout Function</b> group box to enable the line edits.</p>
</td></tr>
</table></p>
<p>You can also specify the form's <b>Include Hints</b>; i.e&#x2e; provide a list of the header files which then will be included in the form window's associated <tt>.ui</tt> file. Header files may be local, i.e&#x2e; relative to the project's directory, <tt>&quot;mywidget.h&quot;</tt>, or global, i.e&#x2e; part of Qt or the compilers standard libraries: <tt>&lt;QtGui/QWidget&gt;</tt>.</p>
<p>Finally, you can specify the function used to load pixmaps into the form window (the <b>Pixmap Function</b>).</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2007 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt Jambi </div></td>
</tr></table></div></address></body>
</html>