1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>The Description Of The Used Custom Widgets</title>
<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.49">
<link rel="HOME" href="book1.html">
<link rel="UP" title="The File Format Of .ui Files" href="chap9_1.html">
<link rel="PREVIOUS" title="The Pixmaps In The <images> Element" href="chap9_3.html">
<link rel="NEXT" title="The Description Of The Defined Connections And Slots" href="chap9_5.html">
</head>
<body class="SECT1" bgcolor="white" text="black" link="blue" vlink="#840084" alink="blue">
<div class="NAVHEADER">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="500" align="left" valign="middle"><img height="90" width="475" src="figures/title.png" border="0"></td>
<td></td>
<td align="right" valign="top"><a href="../company/about/trolls.html">
<table border="0" cellpadding="0" cellspacing="0" width="137">
<tr>
<td><img height="100" width="100" src="figures/f001.png" border="0"></td>
<td><img height="100" width="100" src="figures/qtlogo.png" align="top" border="0"></td>
</tr>
</table>
</a></td>
</tr>
<tr>
<td width="500"><spacer type="block" width="500" height="20"></td>
<td><spacer type="block" width="42" height="20"></td>
<td><br>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="black">
<tr>
<td width="10%" align="left" valign="bottom"><a href="chap9_3.html"><img height="20" width="20" src="arrows/left.png" border="0"></a></td>
<td width="80%" align="center" valign="bottom"><font color="white"><b>Chapter 9. The File Format Of .ui Files</b></font></td>
<td width="10%" align="right" valign="bottom"><a href="chap9_5.html"><img height="20" width="20" src="arrows/right.png" border="0"></a></td>
</tr>
</table>
</div>
<div class="SECT1">
<h1 class="SECT1"><a name="QT-DESIGNER-REF-CUSTOMWIDGETFORMAT"></a>The Description Of The Used Custom Widgets</h1>
<p>A form created by Qt Designer can contain custom widgets. In order to be able to create code for them, some information about these custom widgets has to be stored. This is done in the <tt class="LITERAL"><customwidgets></tt> element. This element contains any number of <tt class="LITERAL"><customwidget></tt> subelements, which in turn have the following child elements:</p>
<dl>
<dt><tt class="LITERAL"><class></tt>
<dd>
<p>This element contains the class name of the custom widget.</p>
<dt><tt class="LITERAL"><header></tt>
<dd>
<p>This element specifies the header file of the custom widget that will be included in the code generation. This element has an attribute named <tt class="LITERAL">location</tt>, which can have the values <tt class="LITERAL">local</tt> or <tt class="LITERAL">global</tt>.</p>
<dt><tt class="LITERAL"><sizehint></tt>
<dd>
<p>This element describes, by means of its two subelements, <tt class="LITERAL"><width></tt> and <tt class="LITERAL"><height></tt>, the size hint that should be used in Qt Designer.</p>
<dt><tt class="LITERAL"><pixmap></tt>
<dd>
<p>This element describes the pixmap that should be used to represent the custom widget in Qt Designer.</p>
<dt><tt class="LITERAL"><signal></tt>
<dd>
<p>There can be any number of these elements, which describe the signals the custom widget has.</p>
<dt><tt class="LITERAL"><slots></tt>
<dd>
<p>There can be any number of these elements, which describe the slots the custom widget has.</p>
<dt><tt class="LITERAL"><property></tt>
<dd>
<p>There can be any number of these elements, which describe the properties of this custom widget. This element has an attribute named <tt class="LITERAL">type</tt>, which describes the type of the property.</p>
</dl>
</div>
<div class="NAVFOOTER">
<br>
<br>
<table width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="black">
<tr>
<td width="33%" align="left" valign="top"><a href="chap9_3.html"><img height="20" width="20" src="arrows/left.png" border="0"></a></td>
<td width="34%" align="center" valign="top"><a href="book1.html"><img height="20" width="25" src="arrows/home.png" border="0"></a></td>
<td width="33%" align="right" valign="top"><a href="chap9_5.html"><img height="20" width="20" src="arrows/right.png" border="0"></a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top"><font color="white">The Pixmaps In The <tt class="LITERAL"><images></tt> Element</font></td>
<td width="34%" align="center" valign="top"><a href="chap9_1.html"><img height="20" width="20" src="arrows/up.png" border="0"></a></td>
<td width="33%" align="right" valign="top"><font color="white">The Description Of The Defined Connections And Slots</font></td>
</tr>
</table>
</div>
</body>
</html>
|