1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/corelib/kernel/qobject.cpp -->
7
<title>Qt 4.0: Qt 3 Support Members for QObject</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">Qt 3 Support Members for QObject</h1>
21
<p><b>The following class members are part of the Qt 3 support layer.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
22
<p><ul><li><a href="qobject.html">QObject class reference</a></li></ul></p>
23
<h3>Public Functions</h3>
25
<li><div class="fn"/><b><a href="qobject-qt3.html#QObject-3">QObject</a></b> ( QObject * <i>parent</i>, const char * <i>name</i> )</li>
26
<li><div class="fn"/>QObject * <b><a href="qobject-qt3.html#child">child</a></b> ( const char * <i>objName</i>, const char * <i>inheritsClass</i> = 0, bool <i>recursiveSearch</i> = true ) const</li>
27
<li><div class="fn"/>const char * <b><a href="qobject-qt3.html#className">className</a></b> () const</li>
28
<li><div class="fn"/>void <b><a href="qobject-qt3.html#insertChild">insertChild</a></b> ( QObject * <i>object</i> )</li>
29
<li><div class="fn"/>bool <b><a href="qobject-qt3.html#isA">isA</a></b> ( const char * <i>className</i> ) const</li>
30
<li><div class="fn"/>const char * <b><a href="qobject-qt3.html#name">name</a></b> () const</li>
31
<li><div class="fn"/>const char * <b><a href="qobject-qt3.html#name-2">name</a></b> ( const char * <i>defaultName</i> ) const</li>
32
<li><div class="fn"/>void <b><a href="qobject-qt3.html#removeChild">removeChild</a></b> ( QObject * <i>object</i> )</li>
33
<li><div class="fn"/>void <b><a href="qobject-qt3.html#setName">setName</a></b> ( const char * <i>name</i> )</li>
35
<h3>Protected Functions</h3>
37
<li><div class="fn"/>bool <b><a href="qobject-qt3.html#checkConnectArgs">checkConnectArgs</a></b> ( const char * <i>signal</i>, const QObject * <i>object</i>, const char * <i>method</i> )</li>
39
<h3>Static Protected Members</h3>
41
<li><div class="fn"/>QByteArray <b><a href="qobject-qt3.html#normalizeSignalSlot">normalizeSignalSlot</a></b> ( const char * <i>signalSlot</i> )</li>
44
<h2>Member Function Documentation</h2>
45
<h3 class="fn"><a name="QObject-3"></a>QObject::QObject ( QObject * <i>parent</i>, const char * <i>name</i> )</h3>
46
<p>Creates a new <a href="qobject.html">QObject</a> with the given <i>parent</i> and object <i>name</i>.</p>
47
<h3 class="fn"><a name="checkConnectArgs"></a>bool QObject::checkConnectArgs ( const char * <i>signal</i>, const QObject * <i>object</i>, const char * <i>method</i> ) <tt> [protected]</tt></h3>
48
<p>Use <a href="qmetaobject.html#checkConnectArgs">QMetaObject::checkConnectArgs</a>() instead.</p>
49
<h3 class="fn"><a name="child"></a>QObject * QObject::child ( const char * <i>objName</i>, const char * <i>inheritsClass</i> = 0, bool <i>recursiveSearch</i> = true ) const</h3>
50
<p>Searches the children and optionally grandchildren of this object, and returns a child that is called <i>objName</i> that inherits <i>inheritsClass</i>. If <i>inheritsClass</i> is 0 (the default), any class matches.</p>
51
<p>If <i>recursiveSearch</i> is true (the default), child() performs a depth-first search of the object's children.</p>
52
<p>If there is no such object, this function returns 0. If there are more than one, the first one found is retured; if you need all of them, use <a href="qobject-qt3.html#queryList">queryList</a>().</p>
53
<h3 class="fn"><a name="className"></a>const char * QObject::className () const</h3>
54
<p>Use <a href="qobject.html#metaObject">metaObject</a>()->className() instead.</p>
55
<h3 class="fn"><a name="insertChild"></a>void QObject::insertChild ( QObject * <i>object</i> )</h3>
56
<p>Use <a href="qobject.html#setParent">setParent</a>() instead, i.e., call object->setParent(this).</p>
57
<h3 class="fn"><a name="isA"></a>bool QObject::isA ( const char * <i>className</i> ) const</h3>
58
<p>Compare <i>className</i> with the object's <a href="qobject.html#metaObject">metaObject</a>()-><a href="qobject-qt3.html#className">className</a>() instead.</p>
59
<h3 class="fn"><a name="name"></a>const char * QObject::name () const</h3>
60
<p>Use <a href="qobject.html#objectName-prop">objectName</a>() instead.</p>
61
<h3 class="fn"><a name="name-2"></a>const char * QObject::name ( const char * <i>defaultName</i> ) const</h3>
62
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
63
<p>Use <a href="qobject.html#objectName-prop">objectName</a>() instead.</p>
64
<h3 class="fn"><a name="normalizeSignalSlot"></a><a href="qbytearray.html">QByteArray</a> QObject::normalizeSignalSlot ( const char * <i>signalSlot</i> ) <tt> [static protected]</tt></h3>
65
<p>Use <a href="qmetaobject.html#normalizedSignature">QMetaObject::normalizedSignature</a>() instead.</p>
66
<h3 class="fn"><a name="removeChild"></a>void QObject::removeChild ( QObject * <i>object</i> )</h3>
67
<p>Use <a href="qobject.html#setParent">setParent</a>() instead, i.e., call object->setParent(0).</p>
68
<h3 class="fn"><a name="setName"></a>void QObject::setName ( const char * <i>name</i> )</h3>
69
<p>Use <a href="qobject.html#objectName-prop">setObjectName</a>() instead.</p>
70
<p /><address><hr /><div align="center">
71
<table width="100%" cellspacing="0" border="0"><tr class="address">
72
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
73
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
74
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
75
</tr></table></div></address></body>