Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates > by-pkgid > 6e2327ca1c896c6d674ae53117299f21 > files > 1098

qtdeclarative5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickevents.cpp -->
  <title>PointerDevice QML Type | Qt Quick 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtquick-index.html">Qt Quick</a></td><td ><a href="qtquick-qmlmodule.html">QML Types</a></td><td >PointerDevice QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtquick-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">PointerDevice QML Type</h1>
<span class="subtitle"></span>
<!-- $$$PointerDevice-brief -->
<p>Provides information about a pointing device. <a href="#details">More...</a></p>
<!-- @@@PointerDevice -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtQuick 2.12</td></tr></table></div><ul>
<li><a href="qml-qtquick-pointerdevice-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtquick-pointerdevice.html#capabilities-prop">capabilities</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtquick-pointerdevice.html#pointerType-prop">pointerType</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtquick-pointerdevice.html#type-prop">type</a></b></b> : enumeration</li>
</ul>
<!-- $$$PointerDevice-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>A pointing device can be a mouse, a touchscreen, or a stylus on a graphics tablet.</p>
<p><b>See also </b><a href="qml-qtquick-pointerevent.html">PointerEvent</a> and <a href="qml-qtquick-pointerhandler.html">PointerHandler</a>.</p>
<!-- @@@PointerDevice -->
<h2>Property Documentation</h2>
<!-- $$$capabilities -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="capabilities-prop">
<td class="tblQmlPropNode"><p>
<a name="capabilities-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">capabilities</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds a bitwise combination of the capabilities of the pointing device. It tells you under which conditions events are sent, and which properties of <a href="qml-qtquick-pointerevent.html">PointerEvent</a> are expected to be valid.</p>
<p>Valid values are:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>CapabilityFlag.Position</code></td><td class="topAlign">the <a href="qml-qtquick-eventpoint.html#position-prop">position</a> and <a href="qml-qtquick-eventpoint.html#scenePosition-prop">scenePosition</a> properties</td></tr>
<tr><td class="topAlign"><code>CapabilityFlag.Area</code></td><td class="topAlign">the <a href="qml-qtquick-eventtouchpoint.html#ellipseDiameters-prop">ellipseDiameters</a> property</td></tr>
<tr><td class="topAlign"><code>CapabilityFlag.Pressure</code></td><td class="topAlign">the <a href="qml-qtquick-eventtouchpoint.html#pressure-prop">pressure</a> property</td></tr>
<tr><td class="topAlign"><code>CapabilityFlag.Velocity</code></td><td class="topAlign">the <a href="qml-qtquick-eventpoint.html#velocity-prop">velocity</a> property</td></tr>
<tr><td class="topAlign"><code>CapabilityFlag.Scroll</code></td><td class="topAlign">a <a href="qml-qtquick-pointerdevice.html#type-prop">Mouse</a> has a wheel, or the operating system recognizes scroll gestures on a <a href="qml-qtquick-pointerdevice.html#type-prop">TouchPad</a></td></tr>
<tr><td class="topAlign"><code>CapabilityFlag.Hover</code></td><td class="topAlign">events are sent even when no button is pressed, or the finger or stylus is not in contact with the surface</td></tr>
<tr><td class="topAlign"><code>CapabilityFlag.Rotation</code></td><td class="topAlign">the <a href="qml-qtquick-eventtouchpoint.html#rotation-prop">rotation</a> property</td></tr>
<tr><td class="topAlign"><code>CapabilityFlag.XTilt</code></td><td class="topAlign">horizontal angle between a stylus and the axis perpendicular to the surface</td></tr>
<tr><td class="topAlign"><code>CapabilityFlag.YTilt</code></td><td class="topAlign">vertical angle between a stylus and the axis perpendicular to the surface</td></tr>
</table></div>
<p><b>See also </b>QTouchDevice::capabilities.</p>
</div></div><!-- @@@capabilities -->
<br/>
<!-- $$$pointerType -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointerType-prop">
<td class="tblQmlPropNode"><p>
<a name="pointerType-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">pointerType</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds a value indicating what is interacting with the device. Think of the device as having a planar 2D surface, and the value of this property as identifying what interacts with the device.</p>
<p>There is some redundancy between this property and <a href="qml-qtquick-pointerdevice.html#type-prop">PointerDevice::type</a>. If a tocuchscreen is used, then the device is TouchScreen and pointerType is Finger (always).</p>
<p>Valid values are:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>PointerDevice.GenericPointer</code></td><td class="topAlign">a mouse or something acting like a mouse (the core pointer on X11)</td></tr>
<tr><td class="topAlign"><code>PointerDevice.Finger</code></td><td class="topAlign">the user's finger</td></tr>
<tr><td class="topAlign"><code>PointerDevice.Pen</code></td><td class="topAlign">the drawing end of a stylus</td></tr>
<tr><td class="topAlign"><code>PointerDevice.Eraser</code></td><td class="topAlign">the other end of the stylus (if it has a virtual eraser on the other end)</td></tr>
<tr><td class="topAlign"><code>PointerDevice.Cursor</code></td><td class="topAlign">a cursor in the pre-computer sense of the word</td></tr>
<tr><td class="topAlign"><code>PointerDevice.AllPointerTypes</code></td><td class="topAlign">any of the above (used as a default value in constructors)</td></tr>
</table></div>
</div></div><!-- @@@pointerType -->
<br/>
<!-- $$$type -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="type-prop">
<td class="tblQmlPropNode"><p>
<a name="type-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">type</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the type of the pointing device.</p>
<p>Valid values are:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>DeviceType.UnknownDevice</code></td><td class="topAlign">the device cannot be identified</td></tr>
<tr><td class="topAlign"><code>DeviceType.Mouse</code></td><td class="topAlign">a mouse</td></tr>
<tr><td class="topAlign"><code>DeviceType.TouchScreen</code></td><td class="topAlign">a touchscreen providing absolute coordinates</td></tr>
<tr><td class="topAlign"><code>DeviceType.TouchPad</code></td><td class="topAlign">a trackpad or touchpad providing relative coordinates</td></tr>
<tr><td class="topAlign"><code>DeviceType.Stylus</code></td><td class="topAlign">a pen-like device</td></tr>
<tr><td class="topAlign"><code>DeviceType.Airbrush</code></td><td class="topAlign">a stylus with a thumbwheel to adjust tangentialPressure</td></tr>
<tr><td class="topAlign"><code>DeviceType.Puck</code></td><td class="topAlign">a device that is similar to a flat mouse with a transparent circle with cross-hairs (same as Puck)</td></tr>
<tr><td class="topAlign"><code>DeviceType.AllDevices</code></td><td class="topAlign">any of the above; used as a default value for construction</td></tr>
</table></div>
<p><b>See also </b>QTouchDevice::DeviceType.</p>
</div></div><!-- @@@type -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    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.<br/>    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. </p>
</div>
</body>
</html>