Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 1386

qt-mobility-doc-1.2.0-13.mga5.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" />
<!-- sensors.cpp -->
  <title>Qt Mobility 1.2: QML OrientationReading Element</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="http://qt.nokia.com/doc/4.7/qdeclarativeelements.html">QML Elements</a></li>
<li>QML OrientationReading Element</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<p class="naviNextPrevious headerNavi">
</p><p/>
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QML OrientationReading Element</h1>
<span class="subtitle"></span>
<!-- $$$OrientationReading-brief -->
<p>The OrientationReading element holds the most recent <a href="qml-orientationsensor.html">OrientationSensor</a> reading. <a href="#details">More...</a></p>
<!-- @@@OrientationReading -->
<p>Inherits <a href="qml-sensorreading.html">SensorReading</a></p>
<p>OrientationReading instantiates the C++ class <a href="qorientationreading.html">QOrientationReading</a></p>
<p>This element was introduced in  Mobility 1.1.</p>
<ul>
<li><a href="qml-orientationreading-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-orientationreading.html#orientation-prop">orientation</a></b></b> : QOrientationReading::Orientation</li>
</ul>
<!-- $$$OrientationReading-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>The OrientationReading element holds the most recent <a href="qml-orientationsensor.html">OrientationSensor</a> reading.</p>
<p>This element wraps the <a href="qorientationreading.html">QOrientationReading</a> class. Please see the documentation for <a href="qorientationreading.html">QOrientationReading</a> for details.</p>
<p>This element cannot be directly created.</p>
<!-- @@@OrientationReading -->
<h2>Property Documentation</h2>
<!-- $$$orientation -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="orientation-prop"></a><span class="qmlreadonly">read-only</span><span class="name">orientation</span> : <span class="type"><a href="qorientationreading.html#Orientation-enum">QOrientationReading::Orientation</a></span></p></td></tr></table></div><div class="qmldoc"><p>Please see <a href="qorientationreading.html#orientation-prop">QOrientationReading::orientation</a> for information about this property.</p>
<p>Orientation constants are exposed through the <a href="qml-orientationreading.html">OrientationReading</a> class.</p>
<pre class="cpp"> OrientationSensor {
     onReadingChanged: {
         <span class="keyword">if</span> (reading<span class="operator">.</span>orientation <span class="operator">=</span><span class="operator">=</span> OrientationReading<span class="operator">.</span>TopUp)
             <span class="comment">// do something</span>
     }
 }</pre>
<p>This property group was introduced in  Mobility 1.2.</p>
</div></div><!-- @@@orientation -->
<br/>
<p class="naviNextPrevious footerNavi">
</p>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used 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>
</div>
</body>
</html>