source: trunk/doc/html/qaxserver-demo-hierarchy.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 2.8 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/activeqt/examples/hierarchy/hierarchy.doc:1 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>Qt Widget Hierarchy</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Qt Widget Hierarchy</h1>
33
34
35<p>
36<script language=javascript>
37function createSubWidget( form )
38{
39 ParentWidget.createSubWidget( form.nameEdit.value );
40}
41
42function renameSubWidget( form )
43{
44 var SubWidget = ParentWidget.subWidget( form.nameEdit.value );
45 if ( !SubWidget ) {
46 alert( "No such widget " + form.nameEdit.value + "!" );
47 return;
48 }
49 SubWidget.label = form.labelEdit.value;
50 form.nameEdit.value = SubWidget.label;
51}
52
53function setFont( form )
54{
55 ParentWidget.font = form.fontEdit.value;
56}
57</script>
58
59<p>
60This widget can have many children!<br>
61<object ID="ParentWidget" CLASSID="CLSID:d574a747-8016-46db-a07c-b2b4854ee75c"
62CODEBASE=http://www.trolltech.com/demos/hierarchy.cab>
63[Object not available! Did you forget to build and register the server?]
64</object><br>
65<form>
66<input type="edit" ID="nameEdit" value = "<enter object name>">
67<input type="button" value = "Create" onClick="createSubWidget(this.form)">
68<input type="edit" ID="labelEdit">
69<input type="button" value = "Rename" onClick="renameSubWidget(this.form)">
70<br>
71<input type="edit" ID="fontEdit" value = "MS Sans Serif">
72<input type="button" value = "Set Font" onClick="setFont(this.form)">
73</form>
74
75<!-- eof -->
76<p><address><hr><div align=center>
77<table width=100% cellspacing=0 border=0><tr>
78<td>Copyright &copy; 2007
79<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
80<td align=right><div align=right>Qt 3.3.8</div>
81</table></div></address></body>
82</html>
Note: See TracBrowser for help on using the repository browser.