Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 4149

qtbase5-doc-5.12.6-2.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" />
<!-- qgesture.cpp -->
  <title>QTapAndHoldGesture Class | Qt Widgets 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="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QTapAndHoldGesture</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtwidgets-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="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</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">QTapAndHoldGesture Class</h1>
<!-- $$$QTapAndHoldGesture-brief -->
<p>The <a href="qtapandholdgesture.html">QTapAndHoldGesture</a> class describes a tap-and-hold (aka LongTap) gesture made by the user. <a href="#details">More...</a></p>
<!-- @@@QTapAndHoldGesture -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QTapAndHoldGesture&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.6</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qgesture.html">QGesture</a></td></tr></table></div><ul>
<li><a href="qtapandholdgesture-members.html">List of all members, including inherited members</a></li>
<li><a href="qtapandholdgesture-obsolete.html">Obsolete members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qtapandholdgesture.html#position-prop">position</a></b> : QPointF</li>
</ul>
<ul>
<li class="fn">5 properties inherited from <a href="qgesture.html#properties">QGesture</a></li>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qtapandholdgesture.html#dtor.QTapAndHoldGesture">~QTapAndHoldGesture</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qtapandholdgesture.html#position-prop">position</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtapandholdgesture.html#position-prop">setPosition</a></b>(const QPointF &amp;<i>pos</i>)</td></tr>
</table></div>
<ul>
<li class="fn">8 public functions inherited from <a href="qgesture.html#public-functions">QGesture</a></li>
<li class="fn">31 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtapandholdgesture.html#setTimeout">setTimeout</a></b>(int <i>msecs</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qtapandholdgesture.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtapandholdgesture.html#timeout">timeout</a></b>()</td></tr>
</table></div>
<ul>
<li class="fn">9 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QTapAndHoldGesture-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qtapandholdgesture.html">QTapAndHoldGesture</a> class describes a tap-and-hold (aka LongTap) gesture made by the user.</p>
<p>For an overview of gesture handling in Qt and information on using gestures in your applications, see the <a href="gestures-overview.html">Gestures in Widgets and Graphics View</a> document.</p>
</div>
<p><b>See also </b><a href="qpangesture.html">QPanGesture</a> and <a href="qpinchgesture.html">QPinchGesture</a>.</p>
<!-- @@@QTapAndHoldGesture -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$position-prop$$$position$$$setPositionconstQPointF& -->
<h3 class="fn" id="position-prop"><a name="position-prop"></a><span class="name">position</span> : <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span></h3>
<p>This property holds the position of the tap</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QPointF </td><td class="memItemRight bottomAlign"><span class="name"><b>position</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setPosition</b></span>(const QPointF &amp;<i>pos</i>)</td></tr>
</table></div>
<!-- @@@position -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QTapAndHoldGesture[overload1]$$$~QTapAndHoldGesture -->
<h3 class="fn" id="dtor.QTapAndHoldGesture"><a name="dtor.QTapAndHoldGesture"></a><code>[virtual] </code>QTapAndHoldGesture::<span class="name">~QTapAndHoldGesture</span>()</h3>
<p>Destructor.</p>
<!-- @@@~QTapAndHoldGesture -->
<!-- $$$setTimeout[overload1]$$$setTimeoutint -->
<h3 class="fn" id="setTimeout"><a name="setTimeout"></a><code>[static] </code><span class="type">void</span> QTapAndHoldGesture::<span class="name">setTimeout</span>(<span class="type">int</span> <i>msecs</i>)</h3>
<p>Set the timeout, in milliseconds, before the gesture triggers.</p>
<p>The recognizer will detect a touch down and if <i>msecs</i> later the touch is still down, it will trigger the <a href="qtapandholdgesture.html">QTapAndHoldGesture</a>. The default value is 700 milliseconds.</p>
<p><b>See also </b><a href="qtapandholdgesture.html#timeout">timeout</a>().</p>
<!-- @@@setTimeout -->
<!-- $$$timeout[overload1]$$$timeout -->
<h3 class="fn" id="timeout"><a name="timeout"></a><code>[static] </code><span class="type">int</span> QTapAndHoldGesture::<span class="name">timeout</span>()</h3>
<p>Gets the timeout, in milliseconds, before the gesture triggers.</p>
<p>The recognizer will detect a touch down and if timeout() later the touch is still down, it will trigger the <a href="qtapandholdgesture.html">QTapAndHoldGesture</a>. The default value is 700 milliseconds.</p>
<p><b>See also </b><a href="qtapandholdgesture.html#setTimeout">setTimeout</a>().</p>
<!-- @@@timeout -->
</div>
        </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>