Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5096

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" />
<!-- qdeclarativeitem.cpp -->
  <title>Qt 4.8: QDeclarativeItem 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="qtdeclarative.html">QtDeclarative</a></li>
<li>QDeclarativeItem</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-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QDeclarativeItem Class Reference</h1>
<!-- $$$QDeclarativeItem-brief -->
<p>The QDeclarativeItem class provides the most basic of all visual items in QML. <a href="#details">More...</a></p>
<!-- @@@QDeclarativeItem -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QDeclarativeItem&gt;</span></pre><p><b>Inherits: </b><a href="qgraphicsobject.html">QGraphicsObject</a> and <a href="qdeclarativeparserstatus.html">QDeclarativeParserStatus</a>.</p>
<p>This class was introduced in Qt 4.7.</p>
<ul>
<li><a href="qdeclarativeitem-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#TransformOrigin-enum">TransformOrigin</a></b> { TopLeft, Top, TopRight, Left, ..., BottomRight }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qdeclarativeitem.html#baselineOffset-prop">baselineOffset</a></b> : qreal</li>
<li class="fn"><b><a href="qdeclarativeitem.html#childrenRect-prop">childrenRect</a></b> : const QRectF</li>
<li class="fn"><b><a href="qdeclarativeitem.html#clip-prop">clip</a></b> : bool</li>
<li class="fn"><b><a href="qdeclarativeitem.html#implicitHeight-prop">implicitHeight</a></b> : const qreal</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qdeclarativeitem.html#implicitWidth-prop">implicitWidth</a></b> : const qreal</li>
<li class="fn"><b><a href="qdeclarativeitem.html#parent-prop">parent</a></b> : QDeclarativeItem *</li>
<li class="fn"><b><a href="qdeclarativeitem.html#smooth-prop">smooth</a></b> : bool</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">12 properties inherited from <a href="qgraphicsobject.html#properties">QGraphicsObject</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#QDeclarativeItem">QDeclarativeItem</a></b> ( QDeclarativeItem * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#dtor.QDeclarativeItem">~QDeclarativeItem</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#baselineOffset-prop">baselineOffset</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDeclarativeItem * </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#childAt">childAt</a></b> ( qreal <i>x</i>, qreal <i>y</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#childrenRect-prop">childrenRect</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#clip-prop">clip</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#forceActiveFocus">forceActiveFocus</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#implicitHeight-prop">implicitHeight</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#implicitWidth-prop">implicitWidth</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#keepMouseGrab">keepMouseGrab</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QScriptValue </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#mapFromItem">mapFromItem</a></b> ( const QScriptValue &amp; <i>item</i>, qreal <i>x</i>, qreal <i>y</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QScriptValue </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#mapToItem">mapToItem</a></b> ( const QScriptValue &amp; <i>item</i>, qreal <i>x</i>, qreal <i>y</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDeclarativeItem * </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#parent-prop">parentItem</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#baselineOffset-prop">setBaselineOffset</a></b> ( qreal )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#clip-prop">setClip</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#setKeepMouseGrab">setKeepMouseGrab</a></b> ( bool <i>keep</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#parent-prop">setParentItem</a></b> ( QDeclarativeItem * <i>parent</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#smooth-prop">setSmooth</a></b> ( bool <i>smooth</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#setTransformOrigin">setTransformOrigin</a></b> ( TransformOrigin <i>origin</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#smooth-prop">smooth</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> TransformOrigin </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#transformOrigin">transformOrigin</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">2 public functions inherited from <a href="qgraphicsobject.html#public-functions">QGraphicsObject</a></li>
<li class="fn">2 public functions inherited from <a href="qdeclarativeparserstatus.html#public-functions">QDeclarativeParserStatus</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">177 public functions inherited from <a href="qgraphicsitem.html#public-functions">QGraphicsItem</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#Q_REVISION">Q_REVISION</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#Q_REVISION-2">Q_REVISION</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">9 signals inherited from <a href="qgraphicsobject.html#signals">QGraphicsObject</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#geometryChanged">geometryChanged</a></b> ( const QRectF &amp; <i>newGeometry</i>, const QRectF &amp; <i>oldGeometry</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#heightValid">heightValid</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#isComponentComplete">isComponentComplete</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#setImplicitHeight">setImplicitHeight</a></b> ( qreal <i>h</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#setImplicitWidth">setImplicitWidth</a></b> ( qreal <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qdeclarativeitem.html#widthValid">widthValid</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">24 protected functions inherited from <a href="qgraphicsitem.html#protected-functions">QGraphicsItem</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">2 static public members inherited from <a href="qgraphicsitem.html#static-public-members">QGraphicsItem</a></li>
<li class="fn">1 protected slot inherited from <a href="qgraphicsobject.html#protected-slots">QGraphicsObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QDeclarativeItem-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QDeclarativeItem class provides the most basic of all visual items in QML.</p>
<p>All visual items in Qt Declarative inherit from QDeclarativeItem. Although QDeclarativeItem has no visual appearance, it defines all the properties that are common across visual items - such as the x and y position, the width and height, <a href="qml-anchor-layout.html#anchor-layout">anchoring</a> and key handling.</p>
<p>You can subclass QDeclarativeItem to provide your own custom visual item that inherits these features. Note that, because it does not draw anything, QDeclarativeItem sets the <a href="qgraphicsitem.html#GraphicsItemFlag-enum">QGraphicsItem::ItemHasNoContents</a> flag. If you subclass QDeclarativeItem to create a visual item, you will need to unset this flag.</p>
</div>
<!-- @@@QDeclarativeItem -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$TransformOrigin$$$TopLeft$$$Top$$$TopRight$$$Left$$$Center$$$Right$$$BottomLeft$$$Bottom$$$BottomRight -->
<h3 class="fn"><a name="TransformOrigin-enum"></a>enum QDeclarativeItem::<span class="name">TransformOrigin</span></h3>
<p>Controls the point about which simple transforms like scale apply.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::TopLeft</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The top-left corner of the item.</td></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::Top</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The center point of the top of the item.</td></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::TopRight</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The top-right corner of the item.</td></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::Left</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The left most point of the vertical middle.</td></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::Center</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The center of the item.</td></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::Right</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">The right most point of the vertical middle.</td></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::BottomLeft</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">The bottom-left corner of the item.</td></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::Bottom</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">The center point of the bottom of the item.</td></tr>
<tr><td class="topAlign"><tt>QDeclarativeItem::BottomRight</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">The bottom-right corner of the item.</td></tr>
</table>
<!-- @@@TransformOrigin -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$baselineOffset-prop$$$baselineOffset$$$setBaselineOffsetqreal -->
<h3 class="fn"><a name="baselineOffset-prop"></a><span class="name">baselineOffset</span> : <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p>This property holds the position of the item's baseline in local coordinates.</p>
<p>The baseline of a <a href="qml-text.html">Text</a> item is the imaginary line on which the text sits. Controls containing text usually set their baseline to the baseline of their text.</p>
<p>For non-text items, a default baseline offset of 0 is used.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>baselineOffset</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBaselineOffset</b></span> ( qreal )</td></tr>
</table>
<!-- @@@baselineOffset -->
<!-- $$$childrenRect-prop$$$childrenRect -->
<h3 class="fn"><a name="childrenRect-prop"></a><span class="name">childrenRect</span> : const <span class="type"><a href="qrectf.html">QRectF</a></span></h3>
<p>This property holds the geometry of an item's children.</p>
<p>This property holds the (collective) position and size of the item's children.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QRectF </td><td class="memItemRight bottomAlign"><span class="name"><b>childrenRect</b></span> ()</td></tr>
</table>
<!-- @@@childrenRect -->
<!-- $$$clip-prop$$$clip$$$setClipbool -->
<h3 class="fn"><a name="clip-prop"></a><span class="name">clip</span> : <span class="type">bool</span></h3>
<p>This property holds whether clipping is enabled. The default clip value is <tt>false</tt>.</p>
<p>If clipping is enabled, an item will clip its own painting, as well as the painting of its children, to its bounding rectangle. If you set clipping during an item's paint operation, remember to re-set it to prevent clipping the rest of your scene.</p>
<p>Non-rectangular clipping regions are not supported for performance reasons.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>clip</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setClip</b></span> ( bool )</td></tr>
</table>
<!-- @@@clip -->
<!-- $$$implicitHeight-prop$$$implicitHeight -->
<h3 class="fn"><a name="implicitHeight-prop"></a><span class="name">implicitHeight</span> : const <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>implicitHeight</b></span> () const</td></tr>
</table>
<!-- @@@implicitHeight -->
<!-- $$$implicitWidth-prop$$$implicitWidth -->
<h3 class="fn"><a name="implicitWidth-prop"></a><span class="name">implicitWidth</span> : const <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>implicitWidth</b></span> () const</td></tr>
</table>
<!-- @@@implicitWidth -->
<!-- $$$parent-prop$$$parentItem$$$setParentItemQDeclarativeItem*$$$parentChanged -->
<h3 class="fn"><a name="parent-prop"></a><span class="name">parent</span> : <span class="type">QDeclarativeItem</span> *</h3>
<p>This property holds the parent of the item.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QDeclarativeItem * </td><td class="memItemRight bottomAlign"><span class="name"><b>parentItem</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setParentItem</b></span> ( QDeclarativeItem * <i>parent</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qgraphicsobject.html#parentChanged">parentChanged</a></b></span> ()</td></tr>
</table>
<!-- @@@parent -->
<!-- $$$smooth-prop$$$smooth$$$setSmoothbool -->
<h3 class="fn"><a name="smooth-prop"></a><span class="name">smooth</span> : <span class="type">bool</span></h3>
<p>This property holds whether the item is smoothly transformed.</p>
<p>This property is provided purely for the purpose of optimization. Turning smooth transforms off is faster, but looks worse; turning smooth transformations on is slower, but looks better.</p>
<p>By default smooth transformations are off.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>smooth</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSmooth</b></span> ( bool <i>smooth</i> )</td></tr>
</table>
<!-- @@@smooth -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QDeclarativeItem[overload1]$$$QDeclarativeItemQDeclarativeItem* -->
<h3 class="fn"><a name="QDeclarativeItem"></a>QDeclarativeItem::<span class="name">QDeclarativeItem</span> ( <span class="type">QDeclarativeItem</span> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qdeclarativeitem.html">QDeclarativeItem</a> with the given <i>parent</i>.</p>
<!-- @@@QDeclarativeItem -->
<!-- $$$~QDeclarativeItem[overload1]$$$~QDeclarativeItem -->
<h3 class="fn"><a name="dtor.QDeclarativeItem"></a>QDeclarativeItem::<span class="name">~QDeclarativeItem</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the <a href="qdeclarativeitem.html">QDeclarativeItem</a>.</p>
<!-- @@@~QDeclarativeItem -->
<!-- $$$Q_REVISION[overload1]$$$Q_REVISION -->
<h3 class="fn"><a name="Q_REVISION"></a>QDeclarativeItem::<span class="name">Q_REVISION</span> ()<tt> [signal]</tt></h3>
<!-- @@@Q_REVISION -->
<!-- $$$Q_REVISION$$$Q_REVISION -->
<h3 class="fn"><a name="Q_REVISION-2"></a>QDeclarativeItem::<span class="name">Q_REVISION</span> ()<tt> [signal]</tt></h3>
<!-- @@@Q_REVISION -->
<!-- $$$childAt[overload1]$$$childAtqrealqreal -->
<h3 class="fn"><a name="childAt"></a><span class="type">QDeclarativeItem</span> * QDeclarativeItem::<span class="name">childAt</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>x</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>y</i> ) const</h3>
<p>Returns the visible child item at point (<i>x</i>, <i>y</i>), which is in this item's coordinate system, or 0 if there is no such item.</p>
<!-- @@@childAt -->
<!-- $$$forceActiveFocus[overload1]$$$forceActiveFocus -->
<h3 class="fn"><a name="forceActiveFocus"></a><span class="type">void</span> QDeclarativeItem::<span class="name">forceActiveFocus</span> ()</h3>
<p>Forces active focus on the item.</p>
<p>This method sets focus on the item and makes sure that all the focus scopes higher in the object hierarchy are also given the focus.</p>
<!-- @@@forceActiveFocus -->
<!-- $$$geometryChanged[overload1]$$$geometryChangedconstQRectF&constQRectF& -->
<h3 class="fn"><a name="geometryChanged"></a><span class="type">void</span> QDeclarativeItem::<span class="name">geometryChanged</span> ( const <span class="type"><a href="qrectf.html">QRectF</a></span> &amp; <i>newGeometry</i>, const <span class="type"><a href="qrectf.html">QRectF</a></span> &amp; <i>oldGeometry</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called to handle this item's changes in geometry from <i>oldGeometry</i> to <i>newGeometry</i>. If the two geometries are the same, it doesn't do anything.</p>
<!-- @@@geometryChanged -->
<!-- $$$heightValid[overload1]$$$heightValid -->
<h3 class="fn"><a name="heightValid"></a><span class="type">bool</span> QDeclarativeItem::<span class="name">heightValid</span> () const<tt> [protected]</tt></h3>
<p>Returns whether the height property has been set explicitly.</p>
<!-- @@@heightValid -->
<!-- $$$isComponentComplete[overload1]$$$isComponentComplete -->
<h3 class="fn"><a name="isComponentComplete"></a><span class="type">bool</span> QDeclarativeItem::<span class="name">isComponentComplete</span> () const<tt> [protected]</tt></h3>
<p>Returns true if construction of the QML component is complete; otherwise returns false.</p>
<p>It is often desirable to delay some processing until the component is completed.</p>
<p><b>See also </b><a href="qdeclarativeparserstatus.html#componentComplete">componentComplete</a>().</p>
<!-- @@@isComponentComplete -->
<!-- $$$keepMouseGrab[overload1]$$$keepMouseGrab -->
<h3 class="fn"><a name="keepMouseGrab"></a><span class="type">bool</span> QDeclarativeItem::<span class="name">keepMouseGrab</span> () const</h3>
<p>Returns a value indicating whether mouse input should remain with this item exclusively.</p>
<p><b>See also </b><a href="qdeclarativeitem.html#setKeepMouseGrab">setKeepMouseGrab</a>().</p>
<!-- @@@keepMouseGrab -->
<!-- $$$mapFromItem[overload1]$$$mapFromItemconstQScriptValue&qrealqreal -->
<h3 class="fn"><a name="mapFromItem"></a><span class="type"><a href="qscriptvalue.html">QScriptValue</a></span> QDeclarativeItem::<span class="name">mapFromItem</span> ( const <span class="type"><a href="qscriptvalue.html">QScriptValue</a></span> &amp; <i>item</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>x</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>y</i> ) const</h3>
<p>Maps the point (<i>x</i>, <i>y</i>), which is in <i>item</i>'s coordinate system, to this item's coordinate system, and returns a script value with <tt>x</tt> and <tt>y</tt> properties matching the mapped cooordinate.</p>
<p>If <i>item</i> is a <tt>null</tt> value, this maps the point from the coordinate system of the root QML view.</p>
<p><b>See also </b><a href="qml-item.html#mapFromItem-method">Item::mapFromItem</a>().</p>
<!-- @@@mapFromItem -->
<!-- $$$mapToItem[overload1]$$$mapToItemconstQScriptValue&qrealqreal -->
<h3 class="fn"><a name="mapToItem"></a><span class="type"><a href="qscriptvalue.html">QScriptValue</a></span> QDeclarativeItem::<span class="name">mapToItem</span> ( const <span class="type"><a href="qscriptvalue.html">QScriptValue</a></span> &amp; <i>item</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>x</i>, <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>y</i> ) const</h3>
<p>Maps the point (<i>x</i>, <i>y</i>), which is in this item's coordinate system, to <i>item</i>'s coordinate system, and returns a script value with <tt>x</tt> and <tt>y</tt> properties matching the mapped cooordinate.</p>
<p>If <i>item</i> is a <tt>null</tt> value, this maps <i>x</i> and <i>y</i> to the coordinate system of the root QML view.</p>
<p><b>See also </b><a href="qml-item.html#mapToItem-method">Item::mapToItem</a>().</p>
<!-- @@@mapToItem -->
<!-- $$$setImplicitHeight[overload1]$$$setImplicitHeightqreal -->
<h3 class="fn"><a name="setImplicitHeight"></a><span class="type">void</span> QDeclarativeItem::<span class="name">setImplicitHeight</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>h</i> )<tt> [protected]</tt></h3>
<p>Sets the implied height of the item to <i>h</i>. This is the height implied by other properties that determine the content.</p>
<p><b>See also </b><a href="qdeclarativeitem.html#implicitHeight-prop">implicitHeight</a>().</p>
<!-- @@@setImplicitHeight -->
<!-- $$$setImplicitWidth[overload1]$$$setImplicitWidthqreal -->
<h3 class="fn"><a name="setImplicitWidth"></a><span class="type">void</span> QDeclarativeItem::<span class="name">setImplicitWidth</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>w</i> )<tt> [protected]</tt></h3>
<p>Sets the implied width of the item to <i>w</i>. This is the width implied by other properties that determine the content.</p>
<p><b>See also </b><a href="qdeclarativeitem.html#implicitWidth-prop">implicitWidth</a>().</p>
<!-- @@@setImplicitWidth -->
<!-- $$$setKeepMouseGrab[overload1]$$$setKeepMouseGrabbool -->
<h3 class="fn"><a name="setKeepMouseGrab"></a><span class="type">void</span> QDeclarativeItem::<span class="name">setKeepMouseGrab</span> ( <span class="type">bool</span> <i>keep</i> )</h3>
<p>The flag indicating whether the mouse should remain with this item is set to <i>keep</i>.</p>
<p>This is useful for items that wish to grab and keep mouse interaction following a predefined gesture. For example, an item that is interested in horizontal mouse movement may set keepMouseGrab to true once a threshold has been exceeded. Once keepMouseGrab has been set to true, filtering items will not react to mouse events.</p>
<p>If the item does not indicate that it wishes to retain mouse grab, a filtering item may steal the grab. For example, Flickable may attempt to steal a mouse grab if it detects that the user has begun to move the viewport.</p>
<p><b>See also </b><a href="qdeclarativeitem.html#keepMouseGrab">keepMouseGrab</a>().</p>
<!-- @@@setKeepMouseGrab -->
<!-- $$$setTransformOrigin[overload1]$$$setTransformOriginTransformOrigin -->
<h3 class="fn"><a name="setTransformOrigin"></a><span class="type">void</span> QDeclarativeItem::<span class="name">setTransformOrigin</span> ( <span class="type"><a href="qdeclarativeitem.html#TransformOrigin-enum">TransformOrigin</a></span> <i>origin</i> )</h3>
<p>Set the transform <i>origin</i>.</p>
<p><b>See also </b><a href="qdeclarativeitem.html#transformOrigin">transformOrigin</a>().</p>
<!-- @@@setTransformOrigin -->
<!-- $$$transformOrigin[overload1]$$$transformOrigin -->
<h3 class="fn"><a name="transformOrigin"></a><span class="type"><a href="qdeclarativeitem.html#TransformOrigin-enum">TransformOrigin</a></span> QDeclarativeItem::<span class="name">transformOrigin</span> () const</h3>
<p>Returns the current transform origin.</p>
<p><b>See also </b><a href="qdeclarativeitem.html#setTransformOrigin">setTransformOrigin</a>().</p>
<!-- @@@transformOrigin -->
<!-- $$$widthValid[overload1]$$$widthValid -->
<h3 class="fn"><a name="widthValid"></a><span class="type">bool</span> QDeclarativeItem::<span class="name">widthValid</span> () const<tt> [protected]</tt></h3>
<p>Returns whether the width property has been set explicitly.</p>
<!-- @@@widthValid -->
</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>