Sophie

Sophie

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

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" />
<!-- qaccessible.cpp -->
  <title>Qt 4.8: QAccessibleInterface 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="qtgui.html">QtGui</a></li>
<li>QAccessibleInterface</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="#relationships-and-navigation">Relationships and Navigation</a></li>
<li class="level2"><a href="#properties">Properties</a></li>
<li class="level2"><a href="#actions-and-selection">Actions and Selection</a></li>
<li class="level3"><a href="#objects-and-children">Objects and children</a></li>
</ul>
</div>
<h1 class="title">QAccessibleInterface Class Reference</h1>
<!-- $$$QAccessibleInterface-brief -->
<p>The QAccessibleInterface class defines an interface that exposes information about accessible objects. <a href="#details">More...</a></p>
<!-- @@@QAccessibleInterface -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QAccessibleInterface&gt;</span></pre><p><b>Inherits: </b><a href="qaccessible.html">QAccessible</a>.</p>
<p><b>Inherited by: </b><a href="qaccessibleobject.html">QAccessibleObject</a>.</p>
<ul>
<li><a href="qaccessibleinterface-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"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#dtor.QAccessibleInterface">~QAccessibleInterface</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#actionText">actionText</a></b> ( int <i>action</i>, Text <i>t</i>, int <i>child</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#childAt">childAt</a></b> ( int <i>x</i>, int <i>y</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#childCount">childCount</a></b> () const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#doAction">doAction</a></b> ( int <i>action</i>, int <i>child</i>, const QVariantList &amp; <i>params</i> = QVariantList() ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#indexOfChild">indexOfChild</a></b> ( const QAccessibleInterface * <i>child</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#invokeMethod">invokeMethod</a></b> ( Method <i>method</i>, int <i>child</i> = 0, const QVariantList &amp; <i>params</i> = QVariantList() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#isValid">isValid</a></b> () const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#navigate">navigate</a></b> ( RelationFlag <i>relation</i>, int <i>entry</i>, QAccessibleInterface ** <i>target</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QObject * </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#object">object</a></b> () const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QRect </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#rect">rect</a></b> ( int <i>child</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Relation </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#relationTo">relationTo</a></b> ( int <i>child</i>, const QAccessibleInterface * <i>other</i>, int <i>otherChild</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Role </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#role">role</a></b> ( int <i>child</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#setText">setText</a></b> ( Text <i>t</i>, int <i>child</i>, const QString &amp; <i>text</i> ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual State </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#state">state</a></b> ( int <i>child</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSet&lt;Method&gt; </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#supportedMethods">supportedMethods</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#text">text</a></b> ( Text <i>t</i>, int <i>child</i> ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleinterface.html#userActionCount">userActionCount</a></b> ( int <i>child</i> ) const = 0</td></tr>
</table>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">7 static public members inherited from <a href="qaccessible.html#static-public-members">QAccessible</a></li>
</ul>
<a name="details"></a>
<!-- $$$QAccessibleInterface-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QAccessibleInterface class defines an interface that exposes information about accessible objects.</p>
<p>Accessibility tools (also called AT Clients), such as screen readers or braille displays, require high-level information about accessible objects in an application. Accessible objects provide specialized input and output methods, making it possible for users to use accessibility tools with enabled applications (AT Servers).</p>
<p>Every element that the user needs to interact with or react to is an accessible object, and should provide this information. These are mainly visual objects, such as widgets and widget elements, but can also be content, such as sounds.</p>
<p>The AT client uses three basic concepts to acquire information about any accessible object in an application:</p>
<ul>
<li><i>Properties</i> The client can read information about accessible objects. In some cases the client can also modify these properties; such as text in a line edit.</li>
<li><i>Actions</i> The client can invoke actions like pressing a button or .</li>
<li><i>Relationships and Navigation</i> The client can traverse from one accessible object to another, using the relationships between objects.</li>
</ul>
<p>The QAccessibleInterface defines the API for these three concepts.</p>
<a name="relationships-and-navigation"></a>
<h3>Relationships and Navigation</h3>
<p>The functions <a href="qaccessibleinterface.html#childCount">childCount</a>() and <a href="qaccessibleinterface.html#indexOfChild">indexOfChild</a>() return the number of children of an accessible object and the index a child object has in its parent. The <a href="qaccessibleinterface.html#childAt">childAt</a>() function returns the index of a child at a given position.</p>
<p>The <a href="qaccessibleinterface.html#relationTo">relationTo</a>() function provides information about how two different objects relate to each other, and <a href="qaccessibleinterface.html#navigate">navigate</a>() allows traversing from one object to another object with a given relationship.</p>
<a name="properties"></a>
<h3>Properties</h3>
<p>The central property of an accessible objects is what <a href="qaccessibleinterface.html#role">role</a>() it has. Different objects can have the same role, e.g&#x2e; both the &quot;Add line&quot; element in a scroll bar and the <tt>OK</tt> button in a dialog have the same role, &quot;button&quot;. The role implies what kind of interaction the user can perform with the user interface element.</p>
<p>An object's <a href="qaccessibleinterface.html#state">state</a>() property is a combination of different state flags and can describe both how the object's state differs from a &quot;normal&quot; state, e.g&#x2e; it might be unavailable, and also how it behaves, e.g&#x2e; it might be selectable.</p>
<p>The <a href="qaccessibleinterface.html#text">text</a>() property provides textual information about the object. An object usually has a name, but can provide extended information such as a description, help text, or information about any keyboard accelerators it provides. Some objects allow changing the <a href="qaccessibleinterface.html#text">text</a>() property through the <a href="qaccessibleinterface.html#setText">setText</a>() function, but this information is in most cases read-only.</p>
<p>The <a href="qaccessibleinterface.html#rect">rect</a>() property provides information about the geometry of an accessible object. This information is usually only available for visual objects.</p>
<a name="actions-and-selection"></a>
<h3>Actions and Selection</h3>
<p>To enable the user to interact with an accessible object the object must expose information about the actions that it can perform. <a href="qaccessibleinterface.html#userActionCount">userActionCount</a>() returns the number of actions supported by an accessible object, and <a href="qaccessibleinterface.html#actionText">actionText</a>() returns textual information about those actions. <a href="qaccessibleinterface.html#doAction">doAction</a>() invokes an action.</p>
<p>Objects that support selections can define actions to change the selection.</p>
<a name="objects-and-children"></a>
<h4>Objects and children</h4>
<p>A QAccessibleInterface provides information about the accessible object, and can also provide information for the children of that object if those children don't provide a QAccessibleInterface implementation themselves. This is practical if the object has many similar children (e.g&#x2e; items in a list view), or if the children are an integral part of the object itself, for example, the different sections in a scroll bar.</p>
<p>If an accessible object provides information about its children through one QAccessibleInterface, the children are referenced using indexes. The index is 1-based for the children, i.e&#x2e; 0 refers to the object itself, 1 to the first child, 2 to the second child, and so on.</p>
<p>All functions in QAccessibleInterface that take a child index relate to the object itself if the index is 0, or to the child specified. If a child provides its own interface implementation (which can be retrieved through navigation) asking the parent for information about that child will usually not succeed.</p>
</div>
<p><b>See also </b><a href="qaccessible.html">QAccessible</a>.</p>
<!-- @@@QAccessibleInterface -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QAccessibleInterface[overload1]$$$~QAccessibleInterface -->
<h3 class="fn"><a name="dtor.QAccessibleInterface"></a>QAccessibleInterface::<span class="name">~QAccessibleInterface</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the object.</p>
<!-- @@@~QAccessibleInterface -->
<!-- $$$actionText[overload1]$$$actionTextintTextint -->
<h3 class="fn"><a name="actionText"></a><span class="type"><a href="qstring.html">QString</a></span> QAccessibleInterface::<span class="name">actionText</span> ( <span class="type">int</span> <i>action</i>, <span class="type"><a href="qaccessible.html#Text-enum">Text</a></span> <i>t</i>, <span class="type">int</span> <i>child</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the text property <i>t</i> of the action <i>action</i> supported by the object, or of the object's child if <i>child</i> is not 0.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#text">text</a>() and <a href="qaccessibleinterface.html#userActionCount">userActionCount</a>().</p>
<!-- @@@actionText -->
<!-- $$$childAt[overload1]$$$childAtintint -->
<h3 class="fn"><a name="childAt"></a><span class="type">int</span> QAccessibleInterface::<span class="name">childAt</span> ( <span class="type">int</span> <i>x</i>, <span class="type">int</span> <i>y</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the 1-based index of the child that contains the screen coordinates (<i>x</i>, <i>y</i>). This function returns 0 if the point is positioned on the object itself. If the tested point is outside the boundaries of the object this function returns -1.</p>
<p>This function is only relyable for visible objects (invisible object might not be laid out correctly).</p>
<p>All visual objects provide this information.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#rect">rect</a>().</p>
<!-- @@@childAt -->
<!-- $$$childCount[overload1]$$$childCount -->
<h3 class="fn"><a name="childCount"></a><span class="type">int</span> QAccessibleInterface::<span class="name">childCount</span> () const<tt> [pure virtual]</tt></h3>
<p>Returns the number of children that belong to this object. A child can provide accessibility information on its own (e.g&#x2e; a child widget), or be a sub-element of this accessible object.</p>
<p>All objects provide this information.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#indexOfChild">indexOfChild</a>().</p>
<!-- @@@childCount -->
<!-- $$$doAction[overload1]$$$doActionintintconstQVariantList& -->
<h3 class="fn"><a name="doAction"></a><span class="type">bool</span> QAccessibleInterface::<span class="name">doAction</span> ( <span class="type">int</span> <i>action</i>, <span class="type">int</span> <i>child</i>, const <span class="type"><a href="qvariant.html#QVariantList-typedef">QVariantList</a></span> &amp; <i>params</i> = QVariantList() )<tt> [pure virtual]</tt></h3>
<p>Asks the object, or the object's <i>child</i> if <i>child</i> is not 0, to execute <i>action</i> using the parameters, <i>params</i>. Returns true if the action could be executed; otherwise returns false.</p>
<p><i>action</i> can be a predefined or a custom action.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#userActionCount">userActionCount</a>() and <a href="qaccessibleinterface.html#actionText">actionText</a>().</p>
<!-- @@@doAction -->
<!-- $$$indexOfChild[overload1]$$$indexOfChildconstQAccessibleInterface* -->
<h3 class="fn"><a name="indexOfChild"></a><span class="type">int</span> QAccessibleInterface::<span class="name">indexOfChild</span> ( const <span class="type">QAccessibleInterface</span> * <i>child</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the 1-based index of the object <i>child</i> in this object's children list, or -1 if <i>child</i> is not a child of this object. 0 is not a possible return value.</p>
<p>All objects provide this information about their children.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#childCount">childCount</a>().</p>
<!-- @@@indexOfChild -->
<!-- $$$invokeMethod[overload1]$$$invokeMethodMethodintconstQVariantList& -->
<h3 class="fn"><a name="invokeMethod"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QAccessibleInterface::<span class="name">invokeMethod</span> ( <span class="type"><a href="qaccessible.html#Method-enum">Method</a></span> <i>method</i>, <span class="type">int</span> <i>child</i> = 0, const <span class="type"><a href="qvariant.html#QVariantList-typedef">QVariantList</a></span> &amp; <i>params</i> = QVariantList() )</h3>
<p>Invokes a <i>method</i> on <i>child</i> with the given parameters <i>params</i> and returns the result of the operation as <a href="qvariant.html">QVariant</a>.</p>
<p>Note that the type of the returned <a href="qvariant.html">QVariant</a> depends on the action.</p>
<p>Returns an invalid <a href="qvariant.html">QVariant</a> if the object doesn't support the action.</p>
<p>This function was introduced in Qt 4.2.</p>
<!-- @@@invokeMethod -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn"><a name="isValid"></a><span class="type">bool</span> QAccessibleInterface::<span class="name">isValid</span> () const<tt> [pure virtual]</tt></h3>
<p>Returns true if all the data necessary to use this interface implementation is valid (e.g&#x2e; all pointers are non-null); otherwise returns false.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#object">object</a>().</p>
<!-- @@@isValid -->
<!-- $$$navigate[overload1]$$$navigateRelationFlagintQAccessibleInterface** -->
<h3 class="fn"><a name="navigate"></a><span class="type">int</span> QAccessibleInterface::<span class="name">navigate</span> ( <span class="type"><a href="qaccessible.html#RelationFlag-enum">RelationFlag</a></span> <i>relation</i>, <span class="type">int</span> <i>entry</i>, <span class="type">QAccessibleInterface</span> ** <i>target</i> ) const<tt> [pure virtual]</tt></h3>
<p>Navigates from this object to an object that has a relationship <i>relation</i> to this object, and returns the respective object in <i>target</i>. It is the caller's responsibility to delete *<i>target</i> after use.</p>
<p>If an object is found, <i>target</i> is set to point to the object, and the index of the child of <i>target</i> is returned. The return value is 0 if <i>target</i> itself is the requested object. <i>target</i> is set to null if this object is the target object (i.e&#x2e; the requested object is a handled by this object).</p>
<p>If no object is found <i>target</i> is set to null, and the return value is -1.</p>
<p>The <i>entry</i> parameter has two different meanings:</p>
<ul>
<li><i>Hierarchical and Logical relationships</i> -- if multiple objects with the requested relationship exist <i>entry</i> specifies which one to return. <i>entry</i> is 1-based, e.g&#x2e; use 1 to get the first (and possibly only) object with the requested relationship.<p>The following code demonstrates how to use this function to navigate to the first child of an object:</p>
<pre class="cpp"> <span class="type"><a href="qaccessibleinterface.html">QAccessibleInterface</a></span> <span class="operator">*</span>child <span class="operator">=</span> <span class="number">0</span>;
 <span class="type">int</span> targetChild <span class="operator">=</span> object<span class="operator">-</span><span class="operator">&gt;</span>navigate(Accessible<span class="operator">::</span>Child<span class="operator">,</span> <span class="number">1</span><span class="operator">,</span> <span class="operator">&amp;</span>child);
 <span class="keyword">if</span> (child) {
     <span class="comment">// ...</span>
     <span class="keyword">delete</span> child;
 }</pre>
</li>
<li><i>Geometric relationships</i> -- the index of the child from which to start navigating in the specified direction. <i>entry</i> can be 0 to navigate to a sibling of this object, or non-null to navigate within contained children that don't provide their own accessible information.</li>
</ul>
<p>Note that the <tt>Descendent</tt> value for <i>relation</i> is not supported.</p>
<p>All objects support navigation.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#relationTo">relationTo</a>() and <a href="qaccessibleinterface.html#childCount">childCount</a>().</p>
<!-- @@@navigate -->
<!-- $$$object[overload1]$$$object -->
<h3 class="fn"><a name="object"></a><span class="type"><a href="qobject.html">QObject</a></span> * QAccessibleInterface::<span class="name">object</span> () const<tt> [pure virtual]</tt></h3>
<p>Returns a pointer to the <a href="qobject.html">QObject</a> this interface implementation provides information for.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#isValid">isValid</a>().</p>
<!-- @@@object -->
<!-- $$$rect[overload1]$$$rectint -->
<h3 class="fn"><a name="rect"></a><span class="type"><a href="qrect.html">QRect</a></span> QAccessibleInterface::<span class="name">rect</span> ( <span class="type">int</span> <i>child</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the geometry of the object, or of the object's child if <i>child</i> is not 0. The geometry is in screen coordinates.</p>
<p>This function is only reliable for visible objects (invisible objects might not be laid out correctly).</p>
<p>All visual objects provide this information.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#childAt">childAt</a>().</p>
<!-- @@@rect -->
<!-- $$$relationTo[overload1]$$$relationTointconstQAccessibleInterface*int -->
<h3 class="fn"><a name="relationTo"></a><span class="type"><a href="qaccessible.html#RelationFlag-enum">Relation</a></span> QAccessibleInterface::<span class="name">relationTo</span> ( <span class="type">int</span> <i>child</i>, const <span class="type">QAccessibleInterface</span> * <i>other</i>, <span class="type">int</span> <i>otherChild</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the relationship between this object's <i>child</i> and the <i>other</i> object's <i>otherChild</i>. If <i>child</i> is 0 the object's own relation is returned.</p>
<p>The returned value indicates the relation of the called object to the <i>other</i> object, e.g&#x2e; if this object is a child of <i>other</i> the return value will be <tt>Child</tt>.</p>
<p>The return value is a combination of the bit flags in the <a href="qaccessible.html#RelationFlag-enum">QAccessible::Relation</a> enumeration.</p>
<p>All objects provide this information.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#indexOfChild">indexOfChild</a>() and <a href="qaccessibleinterface.html#navigate">navigate</a>().</p>
<!-- @@@relationTo -->
<!-- $$$role[overload1]$$$roleint -->
<h3 class="fn"><a name="role"></a><span class="type"><a href="qaccessible.html#Role-enum">Role</a></span> QAccessibleInterface::<span class="name">role</span> ( <span class="type">int</span> <i>child</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the role of the object, or of the object's child if <i>child</i> is not 0. The role of an object is usually static.</p>
<p>All accessible objects have a role.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#text">text</a>() and <a href="qaccessibleinterface.html#state">state</a>().</p>
<!-- @@@role -->
<!-- $$$setText[overload1]$$$setTextTextintconstQString& -->
<h3 class="fn"><a name="setText"></a><span class="type">void</span> QAccessibleInterface::<span class="name">setText</span> ( <span class="type"><a href="qaccessible.html#Text-enum">Text</a></span> <i>t</i>, <span class="type">int</span> <i>child</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )<tt> [pure virtual]</tt></h3>
<p>Sets the text property <i>t</i> of the object, or of the object's child if <i>child</i> is not 0, to <i>text</i>.</p>
<p>Note that the text properties of most objects are read-only.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#text">text</a>().</p>
<!-- @@@setText -->
<!-- $$$state[overload1]$$$stateint -->
<h3 class="fn"><a name="state"></a><span class="type"><a href="qaccessible.html#StateFlag-enum">State</a></span> QAccessibleInterface::<span class="name">state</span> ( <span class="type">int</span> <i>child</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the current state of the object, or of the object's child if <i>child</i> is not 0. The returned value is a combination of the flags in the <a href="qaccessible.html#StateFlag-enum">QAccessible::StateFlag</a> enumeration.</p>
<p>All accessible objects have a state.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#text">text</a>() and <a href="qaccessibleinterface.html#role">role</a>().</p>
<!-- @@@state -->
<!-- $$$supportedMethods[overload1]$$$supportedMethods -->
<h3 class="fn"><a name="supportedMethods"></a><span class="type"><a href="qset.html">QSet</a></span>&lt;<span class="type"><a href="qaccessible.html#Method-enum">Method</a></span>&gt; QAccessibleInterface::<span class="name">supportedMethods</span> ()</h3>
<p>Returns a <a href="qset.html">QSet</a> of <a href="qaccessible.html#Method-enum">Method</a>s that are supported by this accessible interface.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also </b><a href="qaccessible.html#Method-enum">QAccessible::Method</a> and <a href="qaccessibleinterface.html#invokeMethod">invokeMethod</a>().</p>
<!-- @@@supportedMethods -->
<!-- $$$text[overload1]$$$textTextint -->
<h3 class="fn"><a name="text"></a><span class="type"><a href="qstring.html">QString</a></span> QAccessibleInterface::<span class="name">text</span> ( <span class="type"><a href="qaccessible.html#Text-enum">Text</a></span> <i>t</i>, <span class="type">int</span> <i>child</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the value of the text property <i>t</i> of the object, or of the object's child if <i>child</i> is not 0.</p>
<p>The <a href="qaccessible.html#Text-enum">Name</a> is a string used by clients to identify, find, or announce an accessible object for the user. All objects must have a name that is unique within their container. The name can be used differently by clients, so the name should both give a short description of the object and be unique.</p>
<p>An accessible object's <a href="qaccessible.html#Text-enum">Description</a> provides textual information about an object's visual appearance. The description is primarily used to provide greater context for vision-impaired users, but is also used for context searching or other applications. Not all objects have a description. An &quot;OK&quot; button would not need a description, but a tool button that shows a picture of a smiley would.</p>
<p>The <a href="qaccessible.html#Text-enum">Value</a> of an accessible object represents visual information contained by the object, e.g&#x2e; the text in a line edit. Usually, the value can be modified by the user. Not all objects have a value, e.g&#x2e; static text labels don't, and some objects have a state that already is the value, e.g&#x2e; toggle buttons.</p>
<p>The <a href="qaccessible.html#Text-enum">Help</a> text provides information about the function and usage of an accessible object. Not all objects provide this information.</p>
<p>The <a href="qaccessible.html#Text-enum">Accelerator</a> is a keyboard shortcut that activates the object's default action. A keyboard shortcut is the underlined character in the text of a menu, menu item or widget, and is either the character itself, or a combination of this character and a modifier key like Alt, Ctrl or Shift. Command controls like tool buttons also have shortcut keys and usually display them in their tooltip.</p>
<p>All objects provide a string for <a href="qaccessible.html#Text-enum">Name</a>.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#setText">setText</a>(), <a href="qaccessibleinterface.html#role">role</a>(), and <a href="qaccessibleinterface.html#state">state</a>().</p>
<!-- @@@text -->
<!-- $$$userActionCount[overload1]$$$userActionCountint -->
<h3 class="fn"><a name="userActionCount"></a><span class="type">int</span> QAccessibleInterface::<span class="name">userActionCount</span> ( <span class="type">int</span> <i>child</i> ) const<tt> [pure virtual]</tt></h3>
<p>Returns the number of custom actions of the object, or of the object's child if <i>child</i> is not 0.</p>
<p>The <tt>Action</tt> type enumerates predefined actions: these are not included in the returned value.</p>
<p><b>See also </b><a href="qaccessibleinterface.html#actionText">actionText</a>() and <a href="qaccessibleinterface.html#doAction">doAction</a>().</p>
<!-- @@@userActionCount -->
</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>