Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5758

qt4-doc-4.8.7-26.2.mga7.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: QMetaProperty 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>QMetaProperty</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="#details">Detailed Description</a></li>
<li class="level2"><a href="#property-meta-data">Property Meta-Data</a></li>
<li class="level2"><a href="#copying-and-assignment">Copying and Assignment</a></li>
</ul>
</div>
<h1 class="title">QMetaProperty Class Reference</h1>
<!-- $$$QMetaProperty-brief -->
<p>The QMetaProperty class provides meta-data about a property. <a href="#details">More...</a></p>
<!-- @@@QMetaProperty -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QMetaProperty&gt;</span></pre><ul>
<li><a href="qmetaproperty-members.html">List of all members, including inherited members</a></li>
<li><a href="qmetaproperty-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QMetaEnum </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#enumerator">enumerator</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#hasNotifySignal">hasNotifySignal</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isConstant">isConstant</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isDesignable">isDesignable</a></b> ( const QObject * <i>object</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isEnumType">isEnumType</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isFinal">isFinal</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isFlagType">isFlagType</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isReadable">isReadable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isResettable">isResettable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isScriptable">isScriptable</a></b> ( const QObject * <i>object</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isStored">isStored</a></b> ( const QObject * <i>object</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isUser">isUser</a></b> ( const QObject * <i>object</i> = 0 ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isValid">isValid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#isWritable">isWritable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const char * </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#name">name</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMetaMethod </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#notifySignal">notifySignal</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#notifySignalIndex">notifySignalIndex</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#propertyIndex">propertyIndex</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#read">read</a></b> ( const QObject * <i>object</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#reset">reset</a></b> ( QObject * <i>object</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant::Type </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#type">type</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const char * </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#typeName">typeName</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#userType">userType</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmetaproperty.html#write">write</a></b> ( QObject * <i>object</i>, const QVariant &amp; <i>value</i> ) const</td></tr>
</table>
<a name="details"></a>
<!-- $$$QMetaProperty-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QMetaProperty class provides meta-data about a property.</p>
<p>Property meta-data is obtained from an object's meta-object. See <a href="qmetaobject.html#property">QMetaObject::property</a>() and <a href="qmetaobject.html#propertyCount">QMetaObject::propertyCount</a>() for details.</p>
<a name="property-meta-data"></a>
<h3>Property Meta-Data</h3>
<p>A property has a <a href="qmetaproperty.html#name">name</a>() and a <a href="qmetaproperty.html#type">type</a>(), as well as various attributes that specify its behavior: <a href="qmetaproperty.html#isReadable">isReadable</a>(), <a href="qmetaproperty.html#isWritable">isWritable</a>(), <a href="qmetaproperty.html#isDesignable">isDesignable</a>(), <a href="qmetaproperty.html#isScriptable">isScriptable</a>(), and <a href="qmetaproperty.html#isStored">isStored</a>().</p>
<p>If the property is an enumeration, <a href="qmetaproperty.html#isEnumType">isEnumType</a>() returns true; if the property is an enumeration that is also a flag (i.e&#x2e; its values can be combined using the OR operator), <a href="qmetaproperty.html#isEnumType">isEnumType</a>() and <a href="qmetaproperty.html#isFlagType">isFlagType</a>() both return true. The enumerator for these types is available from <a href="qmetaproperty.html#enumerator">enumerator</a>().</p>
<p>The property's values are set and retrieved with <a href="qmetaproperty.html#read">read</a>(), <a href="qmetaproperty.html#write">write</a>(), and <a href="qmetaproperty.html#reset">reset</a>(); they can also be changed through <a href="qobject.html">QObject</a>'s set and get functions. See <a href="qobject.html#setProperty">QObject::setProperty</a>() and <a href="qobject.html#property">QObject::property</a>() for details.</p>
<a name="copying-and-assignment"></a>
<h3>Copying and Assignment</h3>
<p>QMetaProperty objects can be copied by value. However, each copy will refer to the same underlying property meta-data.</p>
</div>
<p><b>See also </b><a href="qmetaobject.html">QMetaObject</a>, <a href="qmetaenum.html">QMetaEnum</a>, <a href="qmetamethod.html">QMetaMethod</a>, and <a href="properties.html#qt-s-property-system">Qt's Property System</a>.</p>
<!-- @@@QMetaProperty -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$enumerator[overload1]$$$enumerator -->
<h3 class="fn"><a name="enumerator"></a><span class="type"><a href="qmetaenum.html">QMetaEnum</a></span> QMetaProperty::<span class="name">enumerator</span> () const</h3>
<p>Returns the enumerator if this property's type is an enumerator type; otherwise the returned value is undefined.</p>
<p><b>See also </b><a href="qmetaproperty.html#isEnumType">isEnumType</a>() and <a href="qmetaproperty.html#isFlagType">isFlagType</a>().</p>
<!-- @@@enumerator -->
<!-- $$$hasNotifySignal[overload1]$$$hasNotifySignal -->
<h3 class="fn"><a name="hasNotifySignal"></a><span class="type">bool</span> QMetaProperty::<span class="name">hasNotifySignal</span> () const</h3>
<p>Returns true if this property has a corresponding change notify signal; otherwise returns false.</p>
<p><b>See also </b><a href="qmetaproperty.html#notifySignal">notifySignal</a>().</p>
<!-- @@@hasNotifySignal -->
<!-- $$$isConstant[overload1]$$$isConstant -->
<h3 class="fn"><a name="isConstant"></a><span class="type">bool</span> QMetaProperty::<span class="name">isConstant</span> () const</h3>
<p>Returns true if the property is constant; otherwise returns false.</p>
<p>A property is constant if the <tt>Q_PROPERTY()</tt>'s <tt>CONSTANT</tt> attribute is set.</p>
<p>This function was introduced in Qt 4.6.</p>
<!-- @@@isConstant -->
<!-- $$$isDesignable[overload1]$$$isDesignableconstQObject* -->
<h3 class="fn"><a name="isDesignable"></a><span class="type">bool</span> QMetaProperty::<span class="name">isDesignable</span> ( const <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> = 0 ) const</h3>
<p>Returns true if this property is designable for the given <i>object</i>; otherwise returns false.</p>
<p>If no <i>object</i> is given, the function returns false if the <tt>Q_PROPERTY()</tt>'s <tt>DESIGNABLE</tt> attribute is false; otherwise returns true (if the attribute is true or is a function or expression).</p>
<p><b>See also </b><a href="qmetaproperty.html#isScriptable">isScriptable</a>() and <a href="qmetaproperty.html#isStored">isStored</a>().</p>
<!-- @@@isDesignable -->
<!-- $$$isEnumType[overload1]$$$isEnumType -->
<h3 class="fn"><a name="isEnumType"></a><span class="type">bool</span> QMetaProperty::<span class="name">isEnumType</span> () const</h3>
<p>Returns true if the property's type is an enumeration value; otherwise returns false.</p>
<p><b>See also </b><a href="qmetaproperty.html#enumerator">enumerator</a>() and <a href="qmetaproperty.html#isFlagType">isFlagType</a>().</p>
<!-- @@@isEnumType -->
<!-- $$$isFinal[overload1]$$$isFinal -->
<h3 class="fn"><a name="isFinal"></a><span class="type">bool</span> QMetaProperty::<span class="name">isFinal</span> () const</h3>
<p>Returns true if the property is final; otherwise returns false.</p>
<p>A property is final if the <tt>Q_PROPERTY()</tt>'s <tt>FINAL</tt> attribute is set.</p>
<p>This function was introduced in Qt 4.6.</p>
<!-- @@@isFinal -->
<!-- $$$isFlagType[overload1]$$$isFlagType -->
<h3 class="fn"><a name="isFlagType"></a><span class="type">bool</span> QMetaProperty::<span class="name">isFlagType</span> () const</h3>
<p>Returns true if the property's type is an enumeration value that is used as a flag; otherwise returns false.</p>
<p>Flags can be combined using the OR operator. A flag type is implicitly also an enum type.</p>
<p><b>See also </b><a href="qmetaproperty.html#isEnumType">isEnumType</a>(), <a href="qmetaproperty.html#enumerator">enumerator</a>(), and <a href="qmetaenum.html#isFlag">QMetaEnum::isFlag</a>().</p>
<!-- @@@isFlagType -->
<!-- $$$isReadable[overload1]$$$isReadable -->
<h3 class="fn"><a name="isReadable"></a><span class="type">bool</span> QMetaProperty::<span class="name">isReadable</span> () const</h3>
<p>Returns true if this property is readable; otherwise returns false.</p>
<p><b>See also </b><a href="qmetaproperty.html#isWritable">isWritable</a>(), <a href="qmetaproperty.html#read">read</a>(), and <a href="qmetaproperty.html#isValid">isValid</a>().</p>
<!-- @@@isReadable -->
<!-- $$$isResettable[overload1]$$$isResettable -->
<h3 class="fn"><a name="isResettable"></a><span class="type">bool</span> QMetaProperty::<span class="name">isResettable</span> () const</h3>
<p>Returns true if this property can be reset to a default value; otherwise returns false.</p>
<p><b>See also </b><a href="qmetaproperty.html#reset">reset</a>().</p>
<!-- @@@isResettable -->
<!-- $$$isScriptable[overload1]$$$isScriptableconstQObject* -->
<h3 class="fn"><a name="isScriptable"></a><span class="type">bool</span> QMetaProperty::<span class="name">isScriptable</span> ( const <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> = 0 ) const</h3>
<p>Returns true if the property is scriptable for the given <i>object</i>; otherwise returns false.</p>
<p>If no <i>object</i> is given, the function returns false if the <tt>Q_PROPERTY()</tt>'s <tt>SCRIPTABLE</tt> attribute is false; otherwise returns true (if the attribute is true or is a function or expression).</p>
<p><b>See also </b><a href="qmetaproperty.html#isDesignable">isDesignable</a>() and <a href="qmetaproperty.html#isStored">isStored</a>().</p>
<!-- @@@isScriptable -->
<!-- $$$isStored[overload1]$$$isStoredconstQObject* -->
<h3 class="fn"><a name="isStored"></a><span class="type">bool</span> QMetaProperty::<span class="name">isStored</span> ( const <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> = 0 ) const</h3>
<p>Returns true if the property is stored for <i>object</i>; otherwise returns false.</p>
<p>If no <i>object</i> is given, the function returns false if the <tt>Q_PROPERTY()</tt>'s <tt>STORED</tt> attribute is false; otherwise returns true (if the attribute is true or is a function or expression).</p>
<p><b>See also </b><a href="qmetaproperty.html#isDesignable">isDesignable</a>() and <a href="qmetaproperty.html#isScriptable">isScriptable</a>().</p>
<!-- @@@isStored -->
<!-- $$$isUser[overload1]$$$isUserconstQObject* -->
<h3 class="fn"><a name="isUser"></a><span class="type">bool</span> QMetaProperty::<span class="name">isUser</span> ( const <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> = 0 ) const</h3>
<p>Returns true if this property is designated as the <tt>USER</tt> property, i.e&#x2e;, the one that the user can edit for <i>object</i> or that is significant in some other way. Otherwise it returns false. e.g&#x2e;, the <tt>text</tt> property is the <tt>USER</tt> editable property of a <a href="qlineedit.html">QLineEdit</a>.</p>
<p>If <i>object</i> is null, the function returns false if the <tt>Q_PROPERTY()</tt>'s <tt>USER</tt> attribute is false. Otherwise it returns true.</p>
<p><b>See also </b><a href="qmetaobject.html#userProperty">QMetaObject::userProperty</a>(), <a href="qmetaproperty.html#isDesignable">isDesignable</a>(), and <a href="qmetaproperty.html#isScriptable">isScriptable</a>().</p>
<!-- @@@isUser -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QMetaProperty::<span class="name">isValid</span> () const</h3>
<p>Returns true if this property is valid (readable); otherwise returns false.</p>
<p><b>See also </b><a href="qmetaproperty.html#isReadable">isReadable</a>().</p>
<!-- @@@isValid -->
<!-- $$$isWritable[overload1]$$$isWritable -->
<h3 class="fn"><a name="isWritable"></a><span class="type">bool</span> QMetaProperty::<span class="name">isWritable</span> () const</h3>
<p>Returns true if this property is writable; otherwise returns false.</p>
<p><b>See also </b><a href="qmetaproperty.html#isReadable">isReadable</a>() and <a href="qmetaproperty.html#write">write</a>().</p>
<!-- @@@isWritable -->
<!-- $$$name[overload1]$$$name -->
<h3 class="fn"><a name="name"></a>const <span class="type">char</span> * QMetaProperty::<span class="name">name</span> () const</h3>
<p>Returns this property's name.</p>
<p><b>See also </b><a href="qmetaproperty.html#type">type</a>() and <a href="qmetaproperty.html#typeName">typeName</a>().</p>
<!-- @@@name -->
<!-- $$$notifySignal[overload1]$$$notifySignal -->
<h3 class="fn"><a name="notifySignal"></a><span class="type"><a href="qmetamethod.html">QMetaMethod</a></span> QMetaProperty::<span class="name">notifySignal</span> () const</h3>
<p>Returns the <a href="qmetamethod.html">QMetaMethod</a> instance of the property change notifying signal if one was specified, otherwise returns an invalid <a href="qmetamethod.html">QMetaMethod</a>.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qmetaproperty.html#hasNotifySignal">hasNotifySignal</a>().</p>
<!-- @@@notifySignal -->
<!-- $$$notifySignalIndex[overload1]$$$notifySignalIndex -->
<h3 class="fn"><a name="notifySignalIndex"></a><span class="type">int</span> QMetaProperty::<span class="name">notifySignalIndex</span> () const</h3>
<p>Returns the index of the property change notifying signal if one was specified, otherwise returns -1.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qmetaproperty.html#hasNotifySignal">hasNotifySignal</a>().</p>
<!-- @@@notifySignalIndex -->
<!-- $$$propertyIndex[overload1]$$$propertyIndex -->
<h3 class="fn"><a name="propertyIndex"></a><span class="type">int</span> QMetaProperty::<span class="name">propertyIndex</span> () const</h3>
<p>Returns this property's index.</p>
<p>This function was introduced in Qt 4.6.</p>
<!-- @@@propertyIndex -->
<!-- $$$read[overload1]$$$readconstQObject* -->
<h3 class="fn"><a name="read"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QMetaProperty::<span class="name">read</span> ( const <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> ) const</h3>
<p>Reads the property's value from the given <i>object</i>. Returns the value if it was able to read it; otherwise returns an invalid variant.</p>
<p><b>See also </b><a href="qmetaproperty.html#write">write</a>(), <a href="qmetaproperty.html#reset">reset</a>(), and <a href="qmetaproperty.html#isReadable">isReadable</a>().</p>
<!-- @@@read -->
<!-- $$$reset[overload1]$$$resetQObject* -->
<h3 class="fn"><a name="reset"></a><span class="type">bool</span> QMetaProperty::<span class="name">reset</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> ) const</h3>
<p>Resets the property for the given <i>object</i> with a reset method. Returns true if the reset worked; otherwise returns false.</p>
<p>Reset methods are optional; only a few properties support them.</p>
<p><b>See also </b><a href="qmetaproperty.html#read">read</a>() and <a href="qmetaproperty.html#write">write</a>().</p>
<!-- @@@reset -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type"><a href="qvariant.html#Type-enum">QVariant::Type</a></span> QMetaProperty::<span class="name">type</span> () const</h3>
<p>Returns this property's type. The return value is one of the values of the <a href="qvariant.html#Type-enum">QVariant::Type</a> enumeration.</p>
<p><b>See also </b><a href="qmetaproperty.html#userType">userType</a>(), <a href="qmetaproperty.html#typeName">typeName</a>(), and <a href="qmetaproperty.html#name">name</a>().</p>
<!-- @@@type -->
<!-- $$$typeName[overload1]$$$typeName -->
<h3 class="fn"><a name="typeName"></a>const <span class="type">char</span> * QMetaProperty::<span class="name">typeName</span> () const</h3>
<p>Returns the name of this property's type.</p>
<p><b>See also </b><a href="qmetaproperty.html#type">type</a>() and <a href="qmetaproperty.html#name">name</a>().</p>
<!-- @@@typeName -->
<!-- $$$userType[overload1]$$$userType -->
<h3 class="fn"><a name="userType"></a><span class="type">int</span> QMetaProperty::<span class="name">userType</span> () const</h3>
<p>Returns this property's user type. The return value is one of the values that are registered with <a href="qmetatype.html">QMetaType</a>, or 0 if the type is not registered.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qmetaproperty.html#type">type</a>(), <a href="qmetatype.html">QMetaType</a>, and <a href="qmetaproperty.html#typeName">typeName</a>().</p>
<!-- @@@userType -->
<!-- $$$write[overload1]$$$writeQObject*constQVariant& -->
<h3 class="fn"><a name="write"></a><span class="type">bool</span> QMetaProperty::<span class="name">write</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i>, const <span class="type"><a href="qvariant.html">QVariant</a></span> &amp; <i>value</i> ) const</h3>
<p>Writes <i>value</i> as the property's value to the given <i>object</i>. Returns true if the write succeeded; otherwise returns false.</p>
<p><b>See also </b><a href="qmetaproperty.html#read">read</a>(), <a href="qmetaproperty.html#reset">reset</a>(), and <a href="qmetaproperty.html#isWritable">isWritable</a>().</p>
<!-- @@@write -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      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>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      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>