Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > ff187cb994c94c614ecc64c5a8528b1b > files > 5754

qt-doc-4.8.5-10.fc18.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmetaobject.cpp -->
  <title>Qt 4.8: QMetaObject Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtcore.html">QtCore</a></li>
<li>QMetaObject</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#macros">Macros</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QMetaObject Class Reference</h1>
<!-- $$$QMetaObject-brief -->
<p>The QMetaObject class contains meta-information about Qt objects. <a href="#details">More...</a></p>
<!-- @@@QMetaObject -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QMetaObject&gt;</span></pre><ul>
<li><a href="qmetaobject-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QMetaClassInfo </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#classInfo">classInfo</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#classInfoCount">classInfoCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#classInfoOffset">classInfoOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const char * </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#className">className</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMetaMethod </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#constructor">constructor</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#constructorCount">constructorCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMetaEnum </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#enumerator">enumerator</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#enumeratorCount">enumeratorCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#enumeratorOffset">enumeratorOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#indexOfClassInfo">indexOfClassInfo</a></b> ( const char * <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#indexOfConstructor">indexOfConstructor</a></b> ( const char * <i>constructor</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#indexOfEnumerator">indexOfEnumerator</a></b> ( const char * <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#indexOfMethod">indexOfMethod</a></b> ( const char * <i>method</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#indexOfProperty">indexOfProperty</a></b> ( const char * <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#indexOfSignal">indexOfSignal</a></b> ( const char * <i>signal</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#indexOfSlot">indexOfSlot</a></b> ( const char * <i>slot</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMetaMethod </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#method">method</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#methodCount">methodCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#methodOffset">methodOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QObject * </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#newInstance">newInstance</a></b> ( QGenericArgument <i>val0</i> = QGenericArgument( 0 ), QGenericArgument <i>val1</i> = QGenericArgument(), QGenericArgument <i>val2</i> = QGenericArgument(), QGenericArgument <i>val3</i> = QGenericArgument(), QGenericArgument <i>val4</i> = QGenericArgument(), QGenericArgument <i>val5</i> = QGenericArgument(), QGenericArgument <i>val6</i> = QGenericArgument(), QGenericArgument <i>val7</i> = QGenericArgument(), QGenericArgument <i>val8</i> = QGenericArgument(), QGenericArgument <i>val9</i> = QGenericArgument() ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMetaProperty </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#property">property</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#propertyCount">propertyCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#propertyOffset">propertyOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject * </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#superClass">superClass</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMetaProperty </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#userProperty">userProperty</a></b> () const</td></tr>
</table>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#checkConnectArgs">checkConnectArgs</a></b> ( const char * <i>signal</i>, const char * <i>method</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#connectSlotsByName">connectSlotsByName</a></b> ( QObject * <i>object</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#invokeMethod">invokeMethod</a></b> ( QObject * <i>obj</i>, const char * <i>member</i>, Qt::ConnectionType <i>type</i>, QGenericReturnArgument <i>ret</i>, QGenericArgument <i>val0</i> = QGenericArgument( 0 ), QGenericArgument <i>val1</i> = QGenericArgument(), QGenericArgument <i>val2</i> = QGenericArgument(), QGenericArgument <i>val3</i> = QGenericArgument(), QGenericArgument <i>val4</i> = QGenericArgument(), QGenericArgument <i>val5</i> = QGenericArgument(), QGenericArgument <i>val6</i> = QGenericArgument(), QGenericArgument <i>val7</i> = QGenericArgument(), QGenericArgument <i>val8</i> = QGenericArgument(), QGenericArgument <i>val9</i> = QGenericArgument() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#invokeMethod-2">invokeMethod</a></b> ( QObject * <i>obj</i>, const char * <i>member</i>, QGenericReturnArgument <i>ret</i>, QGenericArgument <i>val0</i> = QGenericArgument( 0 ), QGenericArgument <i>val1</i> = QGenericArgument(), QGenericArgument <i>val2</i> = QGenericArgument(), QGenericArgument <i>val3</i> = QGenericArgument(), QGenericArgument <i>val4</i> = QGenericArgument(), QGenericArgument <i>val5</i> = QGenericArgument(), QGenericArgument <i>val6</i> = QGenericArgument(), QGenericArgument <i>val7</i> = QGenericArgument(), QGenericArgument <i>val8</i> = QGenericArgument(), QGenericArgument <i>val9</i> = QGenericArgument() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#invokeMethod-3">invokeMethod</a></b> ( QObject * <i>obj</i>, const char * <i>member</i>, Qt::ConnectionType <i>type</i>, QGenericArgument <i>val0</i> = QGenericArgument( 0 ), QGenericArgument <i>val1</i> = QGenericArgument(), QGenericArgument <i>val2</i> = QGenericArgument(), QGenericArgument <i>val3</i> = QGenericArgument(), QGenericArgument <i>val4</i> = QGenericArgument(), QGenericArgument <i>val5</i> = QGenericArgument(), QGenericArgument <i>val6</i> = QGenericArgument(), QGenericArgument <i>val7</i> = QGenericArgument(), QGenericArgument <i>val8</i> = QGenericArgument(), QGenericArgument <i>val9</i> = QGenericArgument() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#invokeMethod-4">invokeMethod</a></b> ( QObject * <i>obj</i>, const char * <i>member</i>, QGenericArgument <i>val0</i> = QGenericArgument( 0 ), QGenericArgument <i>val1</i> = QGenericArgument(), QGenericArgument <i>val2</i> = QGenericArgument(), QGenericArgument <i>val3</i> = QGenericArgument(), QGenericArgument <i>val4</i> = QGenericArgument(), QGenericArgument <i>val5</i> = QGenericArgument(), QGenericArgument <i>val6</i> = QGenericArgument(), QGenericArgument <i>val7</i> = QGenericArgument(), QGenericArgument <i>val8</i> = QGenericArgument(), QGenericArgument <i>val9</i> = QGenericArgument() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#normalizedSignature">normalizedSignature</a></b> ( const char * <i>method</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QByteArray </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#normalizedType">normalizedType</a></b> ( const char * <i>type</i> )</td></tr>
</table>
<a name="macros"></a>
<h2>Macros</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QGenericArgument </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#Q_ARG">Q_ARG</a></b> (  <i>Type</i>, const Type &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericReturnArgument </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject.html#Q_RETURN_ARG">Q_RETURN_ARG</a></b> (  <i>Type</i>, Type &amp; <i>value</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QMetaObject-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QMetaObject class contains meta-information about Qt objects.</p>
<p>The Qt <a href="metaobjects.html#meta-object-system">Meta-Object System</a> in Qt is responsible for the signals and slots inter-object communication mechanism, runtime type information, and the Qt property system. A single QMetaObject instance is created for each <a href="qobject.html">QObject</a> subclass that is used in an application, and this instance stores all the meta-information for the <a href="qobject.html">QObject</a> subclass. This object is available as <a href="qobject.html#metaObject">QObject::metaObject</a>().</p>
<p>This class is not normally required for application programming, but it is useful if you write meta-applications, such as scripting engines or GUI builders.</p>
<p>The functions you are most likely to find useful are these:</p>
<ul>
<li><a href="qmetaobject.html#className">className</a>() returns the name of a class.</li>
<li><a href="qmetaobject.html#superClass">superClass</a>() returns the superclass's meta-object.</li>
<li><a href="qmetaobject.html#method">method</a>() and <a href="qmetaobject.html#methodCount">methodCount</a>() provide information about a class's meta-methods (signals, slots and other <a href="qobject.html#Q_INVOKABLE">invokable</a> member functions).</li>
<li><a href="qmetaobject.html#enumerator">enumerator</a>() and <a href="qmetaobject.html#enumeratorCount">enumeratorCount</a>() and provide information about a class's enumerators.</li>
<li><a href="qmetaobject.html#propertyCount">propertyCount</a>() and <a href="qmetaobject.html#property">property</a>() provide information about a class's properties.</li>
<li><a href="qmetaobject.html#constructor">constructor</a>() and <a href="qmetaobject.html#constructorCount">constructorCount</a>() provide information about a class's meta-constructors.</li>
</ul>
<p>The index functions <a href="qmetaobject.html#indexOfConstructor">indexOfConstructor</a>(), <a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>(), <a href="qmetaobject.html#indexOfEnumerator">indexOfEnumerator</a>(), and <a href="qmetaobject.html#indexOfProperty">indexOfProperty</a>() map names of constructors, member functions, enumerators, or properties to indexes in the meta-object. For example, Qt uses <a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>() internally when you connect a signal to a slot.</p>
<p>Classes can also have a list of <i>name</i>--<i>value</i> pairs of additional class information, stored in <a href="qmetaclassinfo.html">QMetaClassInfo</a> objects. The number of pairs is returned by <a href="qmetaobject.html#classInfoCount">classInfoCount</a>(), single pairs are returned by <a href="qmetaobject.html#classInfo">classInfo</a>(), and you can search for pairs with <a href="qmetaobject.html#indexOfClassInfo">indexOfClassInfo</a>().</p>
</div>
<p><b>See also </b><a href="qmetaclassinfo.html">QMetaClassInfo</a>, <a href="qmetaenum.html">QMetaEnum</a>, <a href="qmetamethod.html">QMetaMethod</a>, <a href="qmetaproperty.html">QMetaProperty</a>, <a href="qmetatype.html">QMetaType</a>, and <a href="metaobjects.html#meta-object-system">Meta-Object System</a>.</p>
<!-- @@@QMetaObject -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$checkConnectArgs[overload1]$$$checkConnectArgsconstchar*constchar* -->
<h3 class="fn"><a name="checkConnectArgs"></a><span class="type">bool</span> QMetaObject::<span class="name">checkConnectArgs</span> ( const <span class="type">char</span> * <i>signal</i>, const <span class="type">char</span> * <i>method</i> )<tt> [static]</tt></h3>
<p>Returns true if the <i>signal</i> and <i>method</i> arguments are compatible; otherwise returns false.</p>
<p>Both <i>signal</i> and <i>method</i> are expected to be normalized.</p>
<p><b>See also </b><a href="qmetaobject.html#normalizedSignature">normalizedSignature</a>().</p>
<!-- @@@checkConnectArgs -->
<!-- $$$classInfo[overload1]$$$classInfoint -->
<h3 class="fn"><a name="classInfo"></a><span class="type"><a href="qmetaclassinfo.html">QMetaClassInfo</a></span> QMetaObject::<span class="name">classInfo</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the meta-data for the item of class information with the given <i>index</i>.</p>
<p>Example:</p>
<pre class="cpp"> <span class="keyword">class</span> MyClass : <span class="keyword">public</span> <span class="type"><a href="qobject.html">QObject</a></span>
 {
     Q_OBJECT
     Q_CLASSINFO(<span class="string">&quot;author&quot;</span><span class="operator">,</span> <span class="string">&quot;Sabrina Schweinsteiger&quot;</span>)
     Q_CLASSINFO(<span class="string">&quot;url&quot;</span><span class="operator">,</span> <span class="string">&quot;http://doc.moosesoft.co.uk/1.0/&quot;</span>)

 <span class="keyword">public</span>:
     <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
 };</pre>
<p><b>See also </b><a href="qmetaobject.html#classInfoCount">classInfoCount</a>(), <a href="qmetaobject.html#classInfoOffset">classInfoOffset</a>(), and <a href="qmetaobject.html#indexOfClassInfo">indexOfClassInfo</a>().</p>
<!-- @@@classInfo -->
<!-- $$$classInfoCount[overload1]$$$classInfoCount -->
<h3 class="fn"><a name="classInfoCount"></a><span class="type">int</span> QMetaObject::<span class="name">classInfoCount</span> () const</h3>
<p>Returns the number of items of class information in this class.</p>
<p><b>See also </b><a href="qmetaobject.html#classInfo">classInfo</a>(), <a href="qmetaobject.html#classInfoOffset">classInfoOffset</a>(), and <a href="qmetaobject.html#indexOfClassInfo">indexOfClassInfo</a>().</p>
<!-- @@@classInfoCount -->
<!-- $$$classInfoOffset[overload1]$$$classInfoOffset -->
<h3 class="fn"><a name="classInfoOffset"></a><span class="type">int</span> QMetaObject::<span class="name">classInfoOffset</span> () const</h3>
<p>Returns the class information offset for this class; i.e&#x2e; the index position of this class's first class information item.</p>
<p>If the class has no superclasses with class information, the offset is 0; otherwise the offset is the sum of all the class information items in the class's superclasses.</p>
<p><b>See also </b><a href="qmetaobject.html#classInfo">classInfo</a>(), <a href="qmetaobject.html#classInfoCount">classInfoCount</a>(), and <a href="qmetaobject.html#indexOfClassInfo">indexOfClassInfo</a>().</p>
<!-- @@@classInfoOffset -->
<!-- $$$className[overload1]$$$className -->
<h3 class="fn"><a name="className"></a>const <span class="type">char</span> * QMetaObject::<span class="name">className</span> () const</h3>
<p>Returns the class name.</p>
<p><b>See also </b><a href="qmetaobject.html#superClass">superClass</a>().</p>
<!-- @@@className -->
<!-- $$$connectSlotsByName[overload1]$$$connectSlotsByNameQObject* -->
<h3 class="fn"><a name="connectSlotsByName"></a><span class="type">void</span> QMetaObject::<span class="name">connectSlotsByName</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> )<tt> [static]</tt></h3>
<p>Searches recursively for all child objects of the given <i>object</i>, and connects matching signals from them to slots of <i>object</i> that follow the following form:</p>
<pre class="cpp"> <span class="type">void</span> on_<span class="operator">&lt;</span>object name<span class="operator">&gt;</span>_<span class="operator">&lt;</span>signal name<span class="operator">&gt;</span>(<span class="operator">&lt;</span>signal parameters<span class="operator">&gt;</span>);</pre>
<p>Let's assume our object has a child object of type <a href="qpushbutton.html">QPushButton</a> with the <a href="qobject.html#objectName-prop">object name</a> <tt>button1</tt>. The slot to catch the button's <tt>clicked()</tt> signal would be:</p>
<pre class="cpp"> <span class="type">void</span> on_button1_clicked();</pre>
<p><b>See also </b><a href="qobject.html#objectName-prop">QObject::setObjectName</a>().</p>
<!-- @@@connectSlotsByName -->
<!-- $$$constructor[overload1]$$$constructorint -->
<h3 class="fn"><a name="constructor"></a><span class="type"><a href="qmetamethod.html">QMetaMethod</a></span> QMetaObject::<span class="name">constructor</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the meta-data for the constructor with the given <i>index</i>.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qmetaobject.html#constructorCount">constructorCount</a>() and <a href="qmetaobject.html#newInstance">newInstance</a>().</p>
<!-- @@@constructor -->
<!-- $$$constructorCount[overload1]$$$constructorCount -->
<h3 class="fn"><a name="constructorCount"></a><span class="type">int</span> QMetaObject::<span class="name">constructorCount</span> () const</h3>
<p>Returns the number of constructors in this class.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qmetaobject.html#constructor">constructor</a>() and <a href="qmetaobject.html#indexOfConstructor">indexOfConstructor</a>().</p>
<!-- @@@constructorCount -->
<!-- $$$enumerator[overload1]$$$enumeratorint -->
<h3 class="fn"><a name="enumerator"></a><span class="type"><a href="qmetaenum.html">QMetaEnum</a></span> QMetaObject::<span class="name">enumerator</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the meta-data for the enumerator with the given <i>index</i>.</p>
<p><b>See also </b><a href="qmetaobject.html#enumeratorCount">enumeratorCount</a>(), <a href="qmetaobject.html#enumeratorOffset">enumeratorOffset</a>(), and <a href="qmetaobject.html#indexOfEnumerator">indexOfEnumerator</a>().</p>
<!-- @@@enumerator -->
<!-- $$$enumeratorCount[overload1]$$$enumeratorCount -->
<h3 class="fn"><a name="enumeratorCount"></a><span class="type">int</span> QMetaObject::<span class="name">enumeratorCount</span> () const</h3>
<p>Returns the number of enumerators in this class.</p>
<p><b>See also </b><a href="qmetaobject.html#enumerator">enumerator</a>(), <a href="qmetaobject.html#enumeratorOffset">enumeratorOffset</a>(), and <a href="qmetaobject.html#indexOfEnumerator">indexOfEnumerator</a>().</p>
<!-- @@@enumeratorCount -->
<!-- $$$enumeratorOffset[overload1]$$$enumeratorOffset -->
<h3 class="fn"><a name="enumeratorOffset"></a><span class="type">int</span> QMetaObject::<span class="name">enumeratorOffset</span> () const</h3>
<p>Returns the enumerator offset for this class; i.e&#x2e; the index position of this class's first enumerator.</p>
<p>If the class has no superclasses with enumerators, the offset is 0; otherwise the offset is the sum of all the enumerators in the class's superclasses.</p>
<p><b>See also </b><a href="qmetaobject.html#enumerator">enumerator</a>(), <a href="qmetaobject.html#enumeratorCount">enumeratorCount</a>(), and <a href="qmetaobject.html#indexOfEnumerator">indexOfEnumerator</a>().</p>
<!-- @@@enumeratorOffset -->
<!-- $$$indexOfClassInfo[overload1]$$$indexOfClassInfoconstchar* -->
<h3 class="fn"><a name="indexOfClassInfo"></a><span class="type">int</span> QMetaObject::<span class="name">indexOfClassInfo</span> ( const <span class="type">char</span> * <i>name</i> ) const</h3>
<p>Finds class information item <i>name</i> and returns its index; otherwise returns -1.</p>
<p><b>See also </b><a href="qmetaobject.html#classInfo">classInfo</a>(), <a href="qmetaobject.html#classInfoCount">classInfoCount</a>(), and <a href="qmetaobject.html#classInfoOffset">classInfoOffset</a>().</p>
<!-- @@@indexOfClassInfo -->
<!-- $$$indexOfConstructor[overload1]$$$indexOfConstructorconstchar* -->
<h3 class="fn"><a name="indexOfConstructor"></a><span class="type">int</span> QMetaObject::<span class="name">indexOfConstructor</span> ( const <span class="type">char</span> * <i>constructor</i> ) const</h3>
<p>Finds <i>constructor</i> and returns its index; otherwise returns -1.</p>
<p>Note that the <i>constructor</i> has to be in normalized form, as returned by <a href="qmetaobject.html#normalizedSignature">normalizedSignature</a>().</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qmetaobject.html#constructor">constructor</a>(), <a href="qmetaobject.html#constructorCount">constructorCount</a>(), and <a href="qmetaobject.html#normalizedSignature">normalizedSignature</a>().</p>
<!-- @@@indexOfConstructor -->
<!-- $$$indexOfEnumerator[overload1]$$$indexOfEnumeratorconstchar* -->
<h3 class="fn"><a name="indexOfEnumerator"></a><span class="type">int</span> QMetaObject::<span class="name">indexOfEnumerator</span> ( const <span class="type">char</span> * <i>name</i> ) const</h3>
<p>Finds enumerator <i>name</i> and returns its index; otherwise returns -1.</p>
<p><b>See also </b><a href="qmetaobject.html#enumerator">enumerator</a>(), <a href="qmetaobject.html#enumeratorCount">enumeratorCount</a>(), and <a href="qmetaobject.html#enumeratorOffset">enumeratorOffset</a>().</p>
<!-- @@@indexOfEnumerator -->
<!-- $$$indexOfMethod[overload1]$$$indexOfMethodconstchar* -->
<h3 class="fn"><a name="indexOfMethod"></a><span class="type">int</span> QMetaObject::<span class="name">indexOfMethod</span> ( const <span class="type">char</span> * <i>method</i> ) const</h3>
<p>Finds <i>method</i> and returns its index; otherwise returns -1.</p>
<p>Note that the <i>method</i> has to be in normalized form, as returned by <a href="qmetaobject.html#normalizedSignature">normalizedSignature</a>().</p>
<p><b>See also </b><a href="qmetaobject.html#method">method</a>(), <a href="qmetaobject.html#methodCount">methodCount</a>(), <a href="qmetaobject.html#methodOffset">methodOffset</a>(), and <a href="qmetaobject.html#normalizedSignature">normalizedSignature</a>().</p>
<!-- @@@indexOfMethod -->
<!-- $$$indexOfProperty[overload1]$$$indexOfPropertyconstchar* -->
<h3 class="fn"><a name="indexOfProperty"></a><span class="type">int</span> QMetaObject::<span class="name">indexOfProperty</span> ( const <span class="type">char</span> * <i>name</i> ) const</h3>
<p>Finds property <i>name</i> and returns its index; otherwise returns -1.</p>
<p><b>See also </b><a href="qmetaobject.html#property">property</a>(), <a href="qmetaobject.html#propertyCount">propertyCount</a>(), and <a href="qmetaobject.html#propertyOffset">propertyOffset</a>().</p>
<!-- @@@indexOfProperty -->
<!-- $$$indexOfSignal[overload1]$$$indexOfSignalconstchar* -->
<h3 class="fn"><a name="indexOfSignal"></a><span class="type">int</span> QMetaObject::<span class="name">indexOfSignal</span> ( const <span class="type">char</span> * <i>signal</i> ) const</h3>
<p>Finds <i>signal</i> and returns its index; otherwise returns -1.</p>
<p>This is the same as <a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>(), except that it will return -1 if the method exists but isn't a signal.</p>
<p>Note that the <i>signal</i> has to be in normalized form, as returned by <a href="qmetaobject.html#normalizedSignature">normalizedSignature</a>().</p>
<p><b>See also </b><a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>(), <a href="qmetaobject.html#normalizedSignature">normalizedSignature</a>(), <a href="qmetaobject.html#method">method</a>(), <a href="qmetaobject.html#methodCount">methodCount</a>(), and <a href="qmetaobject.html#methodOffset">methodOffset</a>().</p>
<!-- @@@indexOfSignal -->
<!-- $$$indexOfSlot[overload1]$$$indexOfSlotconstchar* -->
<h3 class="fn"><a name="indexOfSlot"></a><span class="type">int</span> QMetaObject::<span class="name">indexOfSlot</span> ( const <span class="type">char</span> * <i>slot</i> ) const</h3>
<p>Finds <i>slot</i> and returns its index; otherwise returns -1.</p>
<p>This is the same as <a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>(), except that it will return -1 if the method exists but isn't a slot.</p>
<p><b>See also </b><a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>(), <a href="qmetaobject.html#method">method</a>(), <a href="qmetaobject.html#methodCount">methodCount</a>(), and <a href="qmetaobject.html#methodOffset">methodOffset</a>().</p>
<!-- @@@indexOfSlot -->
<!-- $$$invokeMethod[overload1]$$$invokeMethodQObject*constchar*Qt::ConnectionTypeQGenericReturnArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgument -->
<h3 class="fn"><a name="invokeMethod"></a><span class="type">bool</span> QMetaObject::<span class="name">invokeMethod</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>obj</i>, const <span class="type">char</span> * <i>member</i>, <span class="type"><a href="qt.html#ConnectionType-enum">Qt::ConnectionType</a></span> <i>type</i>, <span class="type"><a href="qgenericreturnargument.html">QGenericReturnArgument</a></span> <i>ret</i>, <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val0</i> = QGenericArgument( 0 ), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val1</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val2</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val3</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val4</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val5</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val6</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val7</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val8</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val9</i> = QGenericArgument() )<tt> [static]</tt></h3>
<p>Invokes the <i>member</i> (a signal or a slot name) on the object <i>obj</i>. Returns true if the member could be invoked. Returns false if there is no such member or the parameters did not match.</p>
<p>The invocation can be either synchronous or asynchronous, depending on <i>type</i>:</p>
<ul>
<li>If <i>type</i> is <a href="qt.html#ConnectionType-enum">Qt::DirectConnection</a>, the member will be invoked immediately.</li>
<li>If <i>type</i> is <a href="qt.html#ConnectionType-enum">Qt::QueuedConnection</a>, a <a href="qevent.html">QEvent</a> will be sent and the member is invoked as soon as the application enters the main event loop.</li>
<li>If <i>type</i> is <a href="qt.html#ConnectionType-enum">Qt::BlockingQueuedConnection</a>, the method will be invoked in the same way as for <a href="qt.html#ConnectionType-enum">Qt::QueuedConnection</a>, except that the current thread will block until the event is delivered. Using this connection type to communicate between objects in the same thread will lead to deadlocks.</li>
<li>If <i>type</i> is <a href="qt.html#ConnectionType-enum">Qt::AutoConnection</a>, the member is invoked synchronously if <i>obj</i> lives in the same thread as the caller; otherwise it will invoke the member asynchronously.</li>
</ul>
<p>The return value of the <i>member</i> function call is placed in <i>ret</i>. If the invocation is asynchronous, the return value cannot be evaluated. You can pass up to ten arguments (<i>val0</i>, <i>val1</i>, <i>val2</i>, <i>val3</i>, <i>val4</i>, <i>val5</i>, <i>val6</i>, <i>val7</i>, <i>val8</i>, and <i>val9</i>) to the <i>member</i> function.</p>
<p><a href="qgenericargument.html">QGenericArgument</a> and <a href="qgenericreturnargument.html">QGenericReturnArgument</a> are internal helper classes. Because signals and slots can be dynamically invoked, you must enclose the arguments using the <a href="qmetaobject.html#Q_ARG">Q_ARG</a>() and <a href="qmetaobject.html#Q_RETURN_ARG">Q_RETURN_ARG</a>() macros. <a href="qmetaobject.html#Q_ARG">Q_ARG</a>() takes a type name and a const reference of that type; <a href="qmetaobject.html#Q_RETURN_ARG">Q_RETURN_ARG</a>() takes a type name and a non-const reference.</p>
<p>You only need to pass the name of the signal or slot to this function, not the entire signature. For example, to asynchronously invoke the <a href="qabstractbutton.html#animateClick">animateClick()</a> slot on a <a href="qpushbutton.html">QPushButton</a>, use the following code:</p>
<pre class="cpp"> <span class="type"><a href="qmetaobject.html">QMetaObject</a></span><span class="operator">::</span>invokeMethod(pushButton<span class="operator">,</span> <span class="string">&quot;animateClick&quot;</span><span class="operator">,</span>
                           <span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>QueuedConnection);</pre>
<p>With asynchronous method invocations, the parameters must be of types that are known to Qt's meta-object system, because Qt needs to copy the arguments to store them in an event behind the scenes. If you try to use a queued connection and get the error message</p>
<pre class="cpp"> <span class="type"><a href="qmetaobject.html">QMetaObject</a></span><span class="operator">::</span>invokeMethod: Unable to handle unregistered datatype <span class="char">'MyType'</span></pre>
<p>call <a href="qmetatype.html#qRegisterMetaType">qRegisterMetaType</a>() to register the data type before you call invokeMethod().</p>
<p>To synchronously invoke the <tt>compute(QString, int, double)</tt> slot on some arbitrary object <tt>obj</tt> retrieve its return value:</p>
<pre class="cpp"> <span class="type"><a href="qstring.html">QString</a></span> retVal;
 <span class="type"><a href="qmetaobject.html">QMetaObject</a></span><span class="operator">::</span>invokeMethod(obj<span class="operator">,</span> <span class="string">&quot;compute&quot;</span><span class="operator">,</span> <span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>DirectConnection<span class="operator">,</span>
                           Q_RETURN_ARG(<span class="type"><a href="qstring.html">QString</a></span><span class="operator">,</span> retVal)<span class="operator">,</span>
                           Q_ARG(<span class="type"><a href="qstring.html">QString</a></span><span class="operator">,</span> <span class="string">&quot;sqrt&quot;</span>)<span class="operator">,</span>
                           Q_ARG(<span class="type">int</span><span class="operator">,</span> <span class="number">42</span>)<span class="operator">,</span>
                           Q_ARG(<span class="type">double</span><span class="operator">,</span> <span class="number">9.7</span>));</pre>
<p>If the &quot;compute&quot; slot does not take exactly one <a href="qstring.html">QString</a>, one int and one double in the specified order, the call will fail.</p>
<p><b>See also </b><a href="qmetaobject.html#Q_ARG">Q_ARG</a>(), <a href="qmetaobject.html#Q_RETURN_ARG">Q_RETURN_ARG</a>(), <a href="qmetatype.html#qRegisterMetaType">qRegisterMetaType</a>(), and <a href="qmetamethod.html#invoke">QMetaMethod::invoke</a>().</p>
<!-- @@@invokeMethod -->
<!-- $$$invokeMethod$$$invokeMethodQObject*constchar*QGenericReturnArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgument -->
<h3 class="fn"><a name="invokeMethod-2"></a><span class="type">bool</span> QMetaObject::<span class="name">invokeMethod</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>obj</i>, const <span class="type">char</span> * <i>member</i>, <span class="type"><a href="qgenericreturnargument.html">QGenericReturnArgument</a></span> <i>ret</i>, <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val0</i> = QGenericArgument( 0 ), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val1</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val2</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val3</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val4</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val5</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val6</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val7</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val8</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val9</i> = QGenericArgument() )<tt> [static]</tt></h3>
<p>This function overloads <a href="qmetaobject.html#invokeMethod">invokeMethod</a>().</p>
<p>This overload always invokes the member using the connection type <a href="qt.html#ConnectionType-enum">Qt::AutoConnection</a>.</p>
<!-- @@@invokeMethod -->
<!-- $$$invokeMethod$$$invokeMethodQObject*constchar*Qt::ConnectionTypeQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgument -->
<h3 class="fn"><a name="invokeMethod-3"></a><span class="type">bool</span> QMetaObject::<span class="name">invokeMethod</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>obj</i>, const <span class="type">char</span> * <i>member</i>, <span class="type"><a href="qt.html#ConnectionType-enum">Qt::ConnectionType</a></span> <i>type</i>, <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val0</i> = QGenericArgument( 0 ), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val1</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val2</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val3</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val4</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val5</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val6</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val7</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val8</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val9</i> = QGenericArgument() )<tt> [static]</tt></h3>
<p>This function overloads <a href="qmetaobject.html#invokeMethod">invokeMethod</a>().</p>
<p>This overload can be used if the return value of the member is of no interest.</p>
<!-- @@@invokeMethod -->
<!-- $$$invokeMethod$$$invokeMethodQObject*constchar*QGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgument -->
<h3 class="fn"><a name="invokeMethod-4"></a><span class="type">bool</span> QMetaObject::<span class="name">invokeMethod</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>obj</i>, const <span class="type">char</span> * <i>member</i>, <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val0</i> = QGenericArgument( 0 ), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val1</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val2</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val3</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val4</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val5</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val6</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val7</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val8</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val9</i> = QGenericArgument() )<tt> [static]</tt></h3>
<p>This function overloads <a href="qmetaobject.html#invokeMethod">invokeMethod</a>().</p>
<p>This overload invokes the member using the connection type <a href="qt.html#ConnectionType-enum">Qt::AutoConnection</a> and ignores return values.</p>
<!-- @@@invokeMethod -->
<!-- $$$method[overload1]$$$methodint -->
<h3 class="fn"><a name="method"></a><span class="type"><a href="qmetamethod.html">QMetaMethod</a></span> QMetaObject::<span class="name">method</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the meta-data for the method with the given <i>index</i>.</p>
<p><b>See also </b><a href="qmetaobject.html#methodCount">methodCount</a>(), <a href="qmetaobject.html#methodOffset">methodOffset</a>(), and <a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>().</p>
<!-- @@@method -->
<!-- $$$methodCount[overload1]$$$methodCount -->
<h3 class="fn"><a name="methodCount"></a><span class="type">int</span> QMetaObject::<span class="name">methodCount</span> () const</h3>
<p>Returns the number of methods known to the meta-object system in this class, including the number of properties provided by each base class. These include signals and slots as well as member functions declared with the <a href="qobject.html#Q_INVOKABLE">Q_INVOKABLE</a> macro.</p>
<p>Use code like the following to obtain a <a href="qstringlist.html">QStringList</a> containing the methods specific to a given class:</p>
<pre class="cpp"> <span class="keyword">const</span> <span class="type"><a href="qmetaobject.html">QMetaObject</a></span><span class="operator">*</span> metaObject <span class="operator">=</span> obj<span class="operator">-</span><span class="operator">&gt;</span>metaObject();
 <span class="type"><a href="qstringlist.html">QStringList</a></span> methods;
 <span class="keyword">for</span>(<span class="type">int</span> i <span class="operator">=</span> metaObject<span class="operator">-</span><span class="operator">&gt;</span>methodOffset(); i <span class="operator">&lt;</span> metaObject<span class="operator">-</span><span class="operator">&gt;</span>methodCount(); <span class="operator">+</span><span class="operator">+</span>i)
     methods <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="type"><a href="qstring.html">QString</a></span><span class="operator">::</span>fromLatin1(metaObject<span class="operator">-</span><span class="operator">&gt;</span>method(i)<span class="operator">.</span>signature());</pre>
<p><b>See also </b><a href="qmetaobject.html#method">method</a>(), <a href="qmetaobject.html#methodOffset">methodOffset</a>(), and <a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>().</p>
<!-- @@@methodCount -->
<!-- $$$methodOffset[overload1]$$$methodOffset -->
<h3 class="fn"><a name="methodOffset"></a><span class="type">int</span> QMetaObject::<span class="name">methodOffset</span> () const</h3>
<p>Returns the method offset for this class; i.e&#x2e; the index position of this class's first member function.</p>
<p>The offset is the sum of all the methods in the class's superclasses (which is always positive since <a href="qobject.html">QObject</a> has the deleteLater() slot and a destroyed() signal).</p>
<p><b>See also </b><a href="qmetaobject.html#method">method</a>(), <a href="qmetaobject.html#methodCount">methodCount</a>(), and <a href="qmetaobject.html#indexOfMethod">indexOfMethod</a>().</p>
<!-- @@@methodOffset -->
<!-- $$$newInstance[overload1]$$$newInstanceQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgumentQGenericArgument -->
<h3 class="fn"><a name="newInstance"></a><span class="type"><a href="qobject.html">QObject</a></span> * QMetaObject::<span class="name">newInstance</span> ( <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val0</i> = QGenericArgument( 0 ), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val1</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val2</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val3</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val4</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val5</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val6</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val7</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val8</i> = QGenericArgument(), <span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <i>val9</i> = QGenericArgument() ) const</h3>
<p>Constructs a new instance of this class. You can pass up to ten arguments (<i>val0</i>, <i>val1</i>, <i>val2</i>, <i>val3</i>, <i>val4</i>, <i>val5</i>, <i>val6</i>, <i>val7</i>, <i>val8</i>, and <i>val9</i>) to the constructor. Returns the new object, or 0 if no suitable constructor is available.</p>
<p>Note that only constructors that are declared with the <a href="qobject.html#Q_INVOKABLE">Q_INVOKABLE</a> modifier are made available through the meta-object system.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qmetaobject.html#Q_ARG">Q_ARG</a>() and <a href="qmetaobject.html#constructor">constructor</a>().</p>
<!-- @@@newInstance -->
<!-- $$$normalizedSignature[overload1]$$$normalizedSignatureconstchar* -->
<h3 class="fn"><a name="normalizedSignature"></a><span class="type"><a href="qbytearray.html">QByteArray</a></span> QMetaObject::<span class="name">normalizedSignature</span> ( const <span class="type">char</span> * <i>method</i> )<tt> [static]</tt></h3>
<p>Normalizes the signature of the given <i>method</i>.</p>
<p>Qt uses normalized signatures to decide whether two given signals and slots are compatible. Normalization reduces whitespace to a minimum, moves 'const' to the front where appropriate, removes 'const' from value types and replaces const references with values.</p>
<p><b>See also </b><a href="qmetaobject.html#checkConnectArgs">checkConnectArgs</a>() and <a href="qmetaobject.html#normalizedType">normalizedType</a>().</p>
<!-- @@@normalizedSignature -->
<!-- $$$normalizedType[overload1]$$$normalizedTypeconstchar* -->
<h3 class="fn"><a name="normalizedType"></a><span class="type"><a href="qbytearray.html">QByteArray</a></span> QMetaObject::<span class="name">normalizedType</span> ( const <span class="type">char</span> * <i>type</i> )<tt> [static]</tt></h3>
<p>Normalizes a <i>type</i>.</p>
<p>See <a href="qmetaobject.html#normalizedSignature">QMetaObject::normalizedSignature</a>() for a description on how Qt normalizes.</p>
<p>Example:</p>
<pre class="cpp"> <span class="type"><a href="qbytearray.html">QByteArray</a></span> normType <span class="operator">=</span> <span class="type"><a href="qmetaobject.html">QMetaObject</a></span><span class="operator">::</span>normalizedType(<span class="string">&quot; int    const  *&quot;</span>);
 <span class="comment">// normType is now &quot;const int*&quot;</span></pre>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qmetaobject.html#normalizedSignature">normalizedSignature</a>().</p>
<!-- @@@normalizedType -->
<!-- $$$property[overload1]$$$propertyint -->
<h3 class="fn"><a name="property"></a><span class="type"><a href="qmetaproperty.html">QMetaProperty</a></span> QMetaObject::<span class="name">property</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Returns the meta-data for the property with the given <i>index</i>. If no such property exists, a null <a href="qmetaproperty.html">QMetaProperty</a> is returned.</p>
<p><b>See also </b><a href="qmetaobject.html#propertyCount">propertyCount</a>(), <a href="qmetaobject.html#propertyOffset">propertyOffset</a>(), and <a href="qmetaobject.html#indexOfProperty">indexOfProperty</a>().</p>
<!-- @@@property -->
<!-- $$$propertyCount[overload1]$$$propertyCount -->
<h3 class="fn"><a name="propertyCount"></a><span class="type">int</span> QMetaObject::<span class="name">propertyCount</span> () const</h3>
<p>Returns the number of properties in this class, including the number of properties provided by each base class.</p>
<p>Use code like the following to obtain a <a href="qstringlist.html">QStringList</a> containing the properties specific to a given class:</p>
<pre class="cpp"> <span class="keyword">const</span> <span class="type"><a href="qmetaobject.html">QMetaObject</a></span><span class="operator">*</span> metaObject <span class="operator">=</span> obj<span class="operator">-</span><span class="operator">&gt;</span>metaObject();
 <span class="type"><a href="qstringlist.html">QStringList</a></span> properties;
 <span class="keyword">for</span>(<span class="type">int</span> i <span class="operator">=</span> metaObject<span class="operator">-</span><span class="operator">&gt;</span>propertyOffset(); i <span class="operator">&lt;</span> metaObject<span class="operator">-</span><span class="operator">&gt;</span>propertyCount(); <span class="operator">+</span><span class="operator">+</span>i)
     properties <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="type"><a href="qstring.html">QString</a></span><span class="operator">::</span>fromLatin1(metaObject<span class="operator">-</span><span class="operator">&gt;</span>property(i)<span class="operator">.</span>name());</pre>
<p><b>See also </b><a href="qmetaobject.html#property">property</a>(), <a href="qmetaobject.html#propertyOffset">propertyOffset</a>(), and <a href="qmetaobject.html#indexOfProperty">indexOfProperty</a>().</p>
<!-- @@@propertyCount -->
<!-- $$$propertyOffset[overload1]$$$propertyOffset -->
<h3 class="fn"><a name="propertyOffset"></a><span class="type">int</span> QMetaObject::<span class="name">propertyOffset</span> () const</h3>
<p>Returns the property offset for this class; i.e&#x2e; the index position of this class's first property.</p>
<p>The offset is the sum of all the properties in the class's superclasses (which is always positive since <a href="qobject.html">QObject</a> has the name() property).</p>
<p><b>See also </b><a href="qmetaobject.html#property">property</a>(), <a href="qmetaobject.html#propertyCount">propertyCount</a>(), and <a href="qmetaobject.html#indexOfProperty">indexOfProperty</a>().</p>
<!-- @@@propertyOffset -->
<!-- $$$superClass[overload1]$$$superClass -->
<h3 class="fn"><a name="superClass"></a>const <span class="type">QMetaObject</span> * QMetaObject::<span class="name">superClass</span> () const</h3>
<p>Returns the meta-object of the superclass, or 0 if there is no such object.</p>
<p><b>See also </b><a href="qmetaobject.html#className">className</a>().</p>
<!-- @@@superClass -->
<!-- $$$userProperty[overload1]$$$userProperty -->
<h3 class="fn"><a name="userProperty"></a><span class="type"><a href="qmetaproperty.html">QMetaProperty</a></span> QMetaObject::<span class="name">userProperty</span> () const</h3>
<p>Returns the property that has the <tt>USER</tt> flag set to true.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qmetaproperty.html#isUser">QMetaProperty::isUser</a>().</p>
<!-- @@@userProperty -->
</div>
<div class="macros">
<h2>Macro Documentation</h2>
<!-- $$$Q_ARG[overload1]$$$Q_ARGconstType& -->
<h3 class="fn"><a name="Q_ARG"></a><span class="type"><a href="qgenericargument.html">QGenericArgument</a></span> <span class="name">Q_ARG</span> (  <i>Type</i>, const <span class="type">Type</span> &amp; <i>value</i> )</h3>
<p>This macro takes a <i>Type</i> and a <i>value</i> of that type and returns a <a href="qgenericargument.html">QGenericArgument</a> object that can be passed to <a href="qmetaobject.html#invokeMethod">QMetaObject::invokeMethod</a>().</p>
<p><b>See also </b><a href="qmetaobject.html#Q_RETURN_ARG">Q_RETURN_ARG</a>().</p>
<!-- @@@Q_ARG -->
<!-- $$$Q_RETURN_ARG[overload1]$$$Q_RETURN_ARGType& -->
<h3 class="fn"><a name="Q_RETURN_ARG"></a><span class="type"><a href="qgenericreturnargument.html">QGenericReturnArgument</a></span> <span class="name">Q_RETURN_ARG</span> (  <i>Type</i>, <span class="type">Type</span> &amp; <i>value</i> )</h3>
<p>This macro takes a <i>Type</i> and a non-const reference to a <i>value</i> of that type and returns a <a href="qgenericreturnargument.html">QGenericReturnArgument</a> object that can be passed to <a href="qmetaobject.html#invokeMethod">QMetaObject::invokeMethod</a>().</p>
<p><b>See also </b><a href="qmetaobject.html#Q_ARG">Q_ARG</a>().</p>
<!-- @@@Q_RETURN_ARG -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Digia, Qt and their respective logos are trademarks of Digia Plc 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>