source: trunk/doc/src/examples/activeqt/multiple-demo.qdocinc@ 1168

Last change on this file since 1168 was 561, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.6.1 sources.

File size: 1.1 KB
Line 
1\raw HTML
2//! [0]
3<script language="javascript">
4function setColor( form )
5{
6 Ax1.fillColor = form.colorEdit.value;
7}
8
9function setWidth( form )
10{
11 Ax2.lineWidth = form.widthEdit.value;
12}
13</script>
14
15<p />
16This is one QWidget subclass:<br />
17<object ID="Ax1" CLASSID="CLSID:1D9928BD-4453-4bdd-903D-E525ED17FDE5"
18CODEBASE="http://qt.nokia.com/demos/multipleax.cab">
19[Object not available! Did you forget to build and register the server?]
20</object><br />
21<form>
22Fill Color: <input type="edit" ID="colorEdit" value = "red" />
23<input type="button" value = "Set" onClick="setColor(this.form)" />
24<input type="button" value = "Hide" onClick="Ax1.hide()" />
25<input type="button" value = "Show" onClick="Ax1.show()" />
26</form>
27
28<p />
29This is another QWidget subclass:<br />
30<object ID="Ax2" CLASSID="CLSID:58139D56-6BE9-4b17-937D-1B1EDEDD5B71"
31CODEBASE="http://qt.nokia.com/demos/multipleax.cab">
32[Object not available! Did you forget to build and register the server?]
33</object><br />
34<form>
35Line width: <input type="edit" ID="widthEdit" value = "1" />
36<input type="button" value = "Set" onClick="setWidth(this.form)" />
37</form>
38//! [0]
39\endraw
Note: See TracBrowser for help on using the repository browser.