File: qmetamethod.html

package info (click to toggle)
python-qt4 4.0.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,632 kB
  • ctags: 2,639
  • sloc: python: 29,409; sh: 5,646; cpp: 3,168; xml: 149; makefile: 109
file content (51 lines) | stat: -rw-r--r-- 7,154 bytes parent folder | download
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
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QMetaMethod Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QMetaMethod Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QMetaMethod class provides meta-data about a member function. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qmetamethod.html#Access-enum">Access</a></b> { Private, Protected, Public }</li><li><div class="fn" />enum <b><a href="qmetamethod.html#Attributes-enum">Attributes</a></b> { Compatibility, Cloned, Scriptable }</li><li><div class="fn" />enum <b><a href="qmetamethod.html#MethodType-enum">MethodType</a></b> { Method, Signal, Slot }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qmetamethod.html#QMetaMethod">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qmetamethod.html#QMetaMethod-2">__init__</a></b> (<i>self</i>, QMetaMethod)</li><li><div class="fn" />Access <b><a href="qmetamethod.html#access">access</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qmetamethod.html#attributes">attributes</a></b> (<i>self</i>)</li><li><div class="fn" />MethodType <b><a href="qmetamethod.html#methodType">methodType</a></b> (<i>self</i>)</li><li><div class="fn" />QByteArray-list <b><a href="qmetamethod.html#parameterNames">parameterNames</a></b> (<i>self</i>)</li><li><div class="fn" />QByteArray-list <b><a href="qmetamethod.html#parameterTypes">parameterTypes</a></b> (<i>self</i>)</li><li><div class="fn" />str <b><a href="qmetamethod.html#signature">signature</a></b> (<i>self</i>)</li><li><div class="fn" />str <b><a href="qmetamethod.html#tag">tag</a></b> (<i>self</i>)</li><li><div class="fn" />str <b><a href="qmetamethod.html#typeName">typeName</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QMetaMethod class provides meta-data about a member function.</p>
<p>A QMetaMethod has a <a href="qmetamethod.html#methodType">methodType</a>(), a <a href="qmetamethod.html#signature">signature</a>(), a list of <a href="qmetamethod.html#parameterTypes">parameterTypes</a>() and <a href="qmetamethod.html#parameterNames">parameterNames</a>(), a return <a href="qmetamethod.html#typeName">typeName</a>(), a <a href="qmetamethod.html#tag">tag</a>(), and an <a href="qmetamethod.html#access">access</a>() specifier.</p>
<p>See also <a href="qmetaobject.html">QMetaObject</a>, <a href="qmetaenum.html">QMetaEnum</a>, <a href="qmetaproperty.html">QMetaProperty</a>, and <a href="properties.html">Qt's Property System</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="Access-enum" />QMetaMethod.Access</h3><h3 class="fn"><a name="Attributes-enum" />QMetaMethod.Attributes</h3><h3 class="fn"><a name="MethodType-enum" />QMetaMethod.MethodType</h3><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr>
<th width="25%">Constant</th>
<th width="15%">Value</th>
<th width="60%">Description</th>
</tr>
<tr>
<td valign="top"><tt>QMetaMethod.Method</tt></td>
<td align="center" valign="top"><tt>0</tt></td>
<td valign="top">The function is a plain member function.</td>
</tr>
<tr>
<td valign="top"><tt>QMetaMethod.Signal</tt></td>
<td align="center" valign="top"><tt>1</tt></td>
<td valign="top">The function is a signal.</td>
</tr>
<tr>
<td valign="top"><tt>QMetaMethod.Slot</tt></td>
<td align="center" valign="top"><tt>2</tt></td>
<td valign="top">The function is a slot.</td>
</tr>
</table>
<br />
<br />
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QMetaMethod" />QMetaMethod.__init__ (<i>self</i>)</h3><h3 class="fn"><a name="QMetaMethod-2" />QMetaMethod.__init__ (<i>self</i>, <a href="qmetamethod.html">QMetaMethod</a>)</h3><h3 class="fn"><a name="access" /><a href="qmetamethod.html#Access-enum">Access</a> QMetaMethod.access (<i>self</i>)</h3><p>Returns the access specification of this method (private, protected, or public).</p>
<p>Signals are always protected, meaning that you can only emit them from the class or from a subclass.</p>
<p>See also <a href="qmetamethod.html#methodType">methodType</a>().</p>
<h3 class="fn"><a name="attributes" />int QMetaMethod.attributes (<i>self</i>)</h3><h3 class="fn"><a name="methodType" /><a href="qmetamethod.html#MethodType-enum">MethodType</a> QMetaMethod.methodType (<i>self</i>)</h3><p>Returns the type of this method (signal, slot, or method).</p>
<p>See also <a href="qmetamethod.html#access">access</a>().</p>
<h3 class="fn"><a name="parameterNames" />QByteArray-list QMetaMethod.parameterNames (<i>self</i>)</h3><p>Returns a list of parameter names.</p>
<p>See also <a href="qmetamethod.html#parameterTypes">parameterTypes</a>() and <a href="qmetamethod.html#signature">signature</a>().</p>
<h3 class="fn"><a name="parameterTypes" />QByteArray-list QMetaMethod.parameterTypes (<i>self</i>)</h3><p>Returns a list of parameter types.</p>
<p>See also <a href="qmetamethod.html#parameterNames">parameterNames</a>() and <a href="qmetamethod.html#signature">signature</a>().</p>
<h3 class="fn"><a name="signature" />str QMetaMethod.signature (<i>self</i>)</h3><p>Returns the signature of this method (e.g., <tt>setValue(double)</tt>).</p>
<p>See also <a href="qmetamethod.html#parameterTypes">parameterTypes</a>() and <a href="qmetamethod.html#parameterNames">parameterNames</a>().</p>
<h3 class="fn"><a name="tag" />str QMetaMethod.tag (<i>self</i>)</h3><p>Returns the tag associated with this method.</p>
<p>Tags are special macros recognized by <tt>moc</tt> that make it possible to add extra information about a method. For the moment, <tt>moc</tt> doesn't support any special tags.</p>
<h3 class="fn"><a name="typeName" />str QMetaMethod.typeName (<i>self</i>)</h3><p>Returns the return type of this method, or an empty string if the return type is <i>void</i>.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td width="25%">PyQt&#160;4.0.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.trolltech.com">Trolltech&#160;AS</a> 2006</td><td align="right" width="25%">Qt&#160;4.1.4</td></tr></table></div></address></body></html>