369 lines
26 KiB
HTML
369 lines
26 KiB
HTML
<?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" />
|
|
<!-- qevent.cpp -->
|
|
<title>Qt 4.8: QGestureEvent 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 & 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> 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 & 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>QGestureEvent</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="#further-reading">Further Reading</a></li>
|
|
</ul>
|
|
</div>
|
|
<h1 class="title">QGestureEvent Class Reference</h1>
|
|
<!-- $$$QGestureEvent-brief -->
|
|
<p>The QGestureEvent class provides the description of triggered gestures. <a href="#details">More...</a></p>
|
|
<!-- @@@QGestureEvent -->
|
|
<pre class="cpp"> <span class="preprocessor">#include <QGestureEvent></span></pre><p><b>Inherits: </b><a href="qevent.html">QEvent</a>.</p>
|
|
<p>This class was introduced in Qt 4.6.</p>
|
|
<ul>
|
|
<li><a href="qgestureevent-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"> </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#QGestureEvent">QGestureEvent</a></b> ( const QList<QGesture *> & <i>gestures</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#dtor.QGestureEvent">~QGestureEvent</a></b> ()</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#accept">accept</a></b> ()</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#accept-2">accept</a></b> ( QGesture * <i>gesture</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#accept-3">accept</a></b> ( Qt::GestureType <i>gestureType</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> QList<QGesture *> </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#activeGestures">activeGestures</a></b> () const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> QList<QGesture *> </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#canceledGestures">canceledGestures</a></b> () const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> QGesture * </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#gesture">gesture</a></b> ( Qt::GestureType <i>type</i> ) const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> QList<QGesture *> </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#gestures">gestures</a></b> () const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#ignore">ignore</a></b> ()</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#ignore-2">ignore</a></b> ( QGesture * <i>gesture</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#ignore-3">ignore</a></b> ( Qt::GestureType <i>gestureType</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#isAccepted">isAccepted</a></b> () const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#isAccepted-2">isAccepted</a></b> ( QGesture * <i>gesture</i> ) const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#isAccepted-3">isAccepted</a></b> ( Qt::GestureType <i>gestureType</i> ) const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#mapToGraphicsScene">mapToGraphicsScene</a></b> ( const QPointF & <i>gesturePoint</i> ) const</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#setAccepted">setAccepted</a></b> ( bool <i>accepted</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#setAccepted-2">setAccepted</a></b> ( QGesture * <i>gesture</i>, bool <i>value</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#setAccepted-3">setAccepted</a></b> ( Qt::GestureType <i>gestureType</i>, bool <i>value</i> )</td></tr>
|
|
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qgestureevent.html#widget">widget</a></b> () const</td></tr>
|
|
</table>
|
|
<ul>
|
|
<li class="fn">6 public functions inherited from <a href="qevent.html#public-functions">QEvent</a></li>
|
|
</ul>
|
|
<h3>Additional Inherited Members</h3>
|
|
<ul>
|
|
<li class="fn">1 property inherited from <a href="qevent.html#properties">QEvent</a></li>
|
|
<li class="fn">1 static public member inherited from <a href="qevent.html#static-public-members">QEvent</a></li>
|
|
</ul>
|
|
<a name="details"></a>
|
|
<!-- $$$QGestureEvent-description -->
|
|
<div class="descr">
|
|
<h2>Detailed Description</h2>
|
|
<p>The QGestureEvent class provides the description of triggered gestures.</p>
|
|
<p>The QGestureEvent class contains a list of gestures, which can be obtained using the <a href="qgestureevent.html#gestures">gestures</a>() function.</p>
|
|
<p>The gestures are either active or canceled. A list of those that are currently being executed can be obtained using the <a href="qgestureevent.html#activeGestures">activeGestures</a>() function. A list of those which were previously active and have been canceled can be accessed using the <a href="qgestureevent.html#canceledGestures">canceledGestures</a>() function. A gesture might be canceled if the current window loses focus, for example, or because of a timeout, or for other reasons.</p>
|
|
<p>If the event handler does not accept the event by calling the generic <a href="qevent.html#accept">QEvent::accept</a>() function, all individual <a href="qgesture.html">QGesture</a> object that were not accepted and in the <a href="qt.html#GestureState-enum">Qt::GestureStarted</a> state will be propagated up the parent widget chain until a widget accepts them individually, by calling <a href="qgestureevent.html#accept">QGestureEvent::accept</a>() for each of them, or an event filter consumes the event.</p>
|
|
<a name="further-reading"></a>
|
|
<h3>Further Reading</h3>
|
|
<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 Programming</a> document.</p>
|
|
</div>
|
|
<p><b>See also </b><a href="qgesture.html">QGesture</a>, <a href="qgesturerecognizer.html">QGestureRecognizer</a>, <a href="qwidget.html#grabGesture">QWidget::grabGesture</a>(), and <a href="qgraphicsobject.html#grabGesture">QGraphicsObject::grabGesture</a>().</p>
|
|
<!-- @@@QGestureEvent -->
|
|
<div class="func">
|
|
<h2>Member Function Documentation</h2>
|
|
<!-- $$$QGestureEvent[overload1]$$$QGestureEventconstQList<QGesture*>& -->
|
|
<h3 class="fn"><a name="QGestureEvent"></a>QGestureEvent::<span class="name">QGestureEvent</span> ( const <span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qgesture.html">QGesture</a></span> *> & <i>gestures</i> )</h3>
|
|
<p>Creates new <a href="qgestureevent.html">QGestureEvent</a> containing a list of <i>gestures</i>.</p>
|
|
<!-- @@@QGestureEvent -->
|
|
<!-- $$$~QGestureEvent[overload1]$$$~QGestureEvent -->
|
|
<h3 class="fn"><a name="dtor.QGestureEvent"></a>QGestureEvent::<span class="name">~QGestureEvent</span> ()</h3>
|
|
<p>Destroys <a href="qgestureevent.html">QGestureEvent</a>.</p>
|
|
<!-- @@@~QGestureEvent -->
|
|
<!-- $$$accept[overload1]$$$accept -->
|
|
<h3 class="fn"><a name="accept"></a><span class="type">void</span> QGestureEvent::<span class="name">accept</span> ()</h3>
|
|
<p>Accepts the event, the equivalent of calling setAccepted(true).</p>
|
|
<p><b>See also </b><a href="qevent.html#accept">QEvent::accept</a>().</p>
|
|
<!-- @@@accept -->
|
|
<!-- $$$accept$$$acceptQGesture* -->
|
|
<h3 class="fn"><a name="accept-2"></a><span class="type">void</span> QGestureEvent::<span class="name">accept</span> ( <span class="type"><a href="qgesture.html">QGesture</a></span> * <i>gesture</i> )</h3>
|
|
<p>Sets the accept flag of the given <i>gesture</i> object, the equivalent of calling <a href="qgestureevent.html#setAccepted">setAccepted(gesture, true)</a>.</p>
|
|
<p>Setting the accept flag indicates that the event receiver wants the gesture. Unwanted gestures may be propagated to the parent widget.</p>
|
|
<p><b>See also </b><a href="qgestureevent.html#ignore">QGestureEvent::ignore</a>().</p>
|
|
<!-- @@@accept -->
|
|
<!-- $$$accept$$$acceptQt::GestureType -->
|
|
<h3 class="fn"><a name="accept-3"></a><span class="type">void</span> QGestureEvent::<span class="name">accept</span> ( <span class="type"><a href="qt.html#GestureType-enum">Qt::GestureType</a></span> <i>gestureType</i> )</h3>
|
|
<p>Sets the accept flag of the given <i>gestureType</i>, the equivalent of calling <a href="qgestureevent.html#setAccepted">setAccepted(gestureType, true)</a>.</p>
|
|
<p>Setting the accept flag indicates that the event receiver wants the gesture. Unwanted gestures may be propagated to the parent widget.</p>
|
|
<p><b>See also </b><a href="qgestureevent.html#ignore">QGestureEvent::ignore</a>().</p>
|
|
<!-- @@@accept -->
|
|
<!-- $$$activeGestures[overload1]$$$activeGestures -->
|
|
<h3 class="fn"><a name="activeGestures"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qgesture.html">QGesture</a></span> *> QGestureEvent::<span class="name">activeGestures</span> () const</h3>
|
|
<p>Returns a list of active (not canceled) gestures.</p>
|
|
<!-- @@@activeGestures -->
|
|
<!-- $$$canceledGestures[overload1]$$$canceledGestures -->
|
|
<h3 class="fn"><a name="canceledGestures"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qgesture.html">QGesture</a></span> *> QGestureEvent::<span class="name">canceledGestures</span> () const</h3>
|
|
<p>Returns a list of canceled gestures.</p>
|
|
<!-- @@@canceledGestures -->
|
|
<!-- $$$gesture[overload1]$$$gestureQt::GestureType -->
|
|
<h3 class="fn"><a name="gesture"></a><span class="type"><a href="qgesture.html">QGesture</a></span> * QGestureEvent::<span class="name">gesture</span> ( <span class="type"><a href="qt.html#GestureType-enum">Qt::GestureType</a></span> <i>type</i> ) const</h3>
|
|
<p>Returns a gesture object by <i>type</i>.</p>
|
|
<!-- @@@gesture -->
|
|
<!-- $$$gestures[overload1]$$$gestures -->
|
|
<h3 class="fn"><a name="gestures"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qgesture.html">QGesture</a></span> *> QGestureEvent::<span class="name">gestures</span> () const</h3>
|
|
<p>Returns all gestures that are delivered in the event.</p>
|
|
<!-- @@@gestures -->
|
|
<!-- $$$ignore[overload1]$$$ignore -->
|
|
<h3 class="fn"><a name="ignore"></a><span class="type">void</span> QGestureEvent::<span class="name">ignore</span> ()</h3>
|
|
<p>Ignores the event, the equivalent of calling setAccepted(false).</p>
|
|
<p><b>See also </b><a href="qevent.html#ignore">QEvent::ignore</a>().</p>
|
|
<!-- @@@ignore -->
|
|
<!-- $$$ignore$$$ignoreQGesture* -->
|
|
<h3 class="fn"><a name="ignore-2"></a><span class="type">void</span> QGestureEvent::<span class="name">ignore</span> ( <span class="type"><a href="qgesture.html">QGesture</a></span> * <i>gesture</i> )</h3>
|
|
<p>Clears the accept flag parameter of the given <i>gesture</i> object, the equivalent of calling <a href="qgestureevent.html#setAccepted">setAccepted(gesture, false)</a>.</p>
|
|
<p>Clearing the accept flag indicates that the event receiver does not want the gesture. Unwanted gestures may be propagated to the parent widget.</p>
|
|
<p><b>See also </b><a href="qgestureevent.html#accept">QGestureEvent::accept</a>().</p>
|
|
<!-- @@@ignore -->
|
|
<!-- $$$ignore$$$ignoreQt::GestureType -->
|
|
<h3 class="fn"><a name="ignore-3"></a><span class="type">void</span> QGestureEvent::<span class="name">ignore</span> ( <span class="type"><a href="qt.html#GestureType-enum">Qt::GestureType</a></span> <i>gestureType</i> )</h3>
|
|
<p>Clears the accept flag parameter of the given <i>gestureType</i>, the equivalent of calling <a href="qgestureevent.html#setAccepted">setAccepted(gesture, false)</a>.</p>
|
|
<p>Clearing the accept flag indicates that the event receiver does not want the gesture. Unwanted gestures may be propgated to the parent widget.</p>
|
|
<p><b>See also </b><a href="qgestureevent.html#accept">QGestureEvent::accept</a>().</p>
|
|
<!-- @@@ignore -->
|
|
<!-- $$$isAccepted[overload1]$$$isAccepted -->
|
|
<h3 class="fn"><a name="isAccepted"></a><span class="type">bool</span> QGestureEvent::<span class="name">isAccepted</span> () const</h3>
|
|
<p>Returns true is the event has been accepted; otherwise returns false.</p>
|
|
<p><b>See also </b><a href="qevent.html#accepted-prop">QEvent::accepted</a>.</p>
|
|
<!-- @@@isAccepted -->
|
|
<!-- $$$isAccepted$$$isAcceptedQGesture* -->
|
|
<h3 class="fn"><a name="isAccepted-2"></a><span class="type">bool</span> QGestureEvent::<span class="name">isAccepted</span> ( <span class="type"><a href="qgesture.html">QGesture</a></span> * <i>gesture</i> ) const</h3>
|
|
<p>Returns true if the <i>gesture</i> is accepted; otherwise returns false.</p>
|
|
<!-- @@@isAccepted -->
|
|
<!-- $$$isAccepted$$$isAcceptedQt::GestureType -->
|
|
<h3 class="fn"><a name="isAccepted-3"></a><span class="type">bool</span> QGestureEvent::<span class="name">isAccepted</span> ( <span class="type"><a href="qt.html#GestureType-enum">Qt::GestureType</a></span> <i>gestureType</i> ) const</h3>
|
|
<p>Returns true if the gesture of type <i>gestureType</i> is accepted; otherwise returns false.</p>
|
|
<!-- @@@isAccepted -->
|
|
<!-- $$$mapToGraphicsScene[overload1]$$$mapToGraphicsSceneconstQPointF& -->
|
|
<h3 class="fn"><a name="mapToGraphicsScene"></a><span class="type"><a href="qpointf.html">QPointF</a></span> QGestureEvent::<span class="name">mapToGraphicsScene</span> ( const <span class="type"><a href="qpointf.html">QPointF</a></span> & <i>gesturePoint</i> ) const</h3>
|
|
<p>Returns the scene-local coordinates if the <i>gesturePoint</i> is inside a graphics view.</p>
|
|
<p>This functional might be useful when the gesture event is delivered to a <a href="qgraphicsobject.html">QGraphicsObject</a> to translate a point in screen coordinates to scene-local coordinates.</p>
|
|
<p><b>See also </b><a href="qpointf.html#isNull">QPointF::isNull</a>() and <a href="index.html">.</a>.</p>
|
|
<!-- @@@mapToGraphicsScene -->
|
|
<!-- $$$setAccepted[overload1]$$$setAcceptedbool -->
|
|
<h3 class="fn"><a name="setAccepted"></a><span class="type">void</span> QGestureEvent::<span class="name">setAccepted</span> ( <span class="type">bool</span> <i>accepted</i> )</h3>
|
|
<p>Sets or clears the event's internal flag that determines whether it should be delivered to other objects.</p>
|
|
<p>Calling this function with a value of true for <i>accepted</i> indicates that the caller has accepted the event and that it should not be propagated further. Calling this function with a value of false indicates that the caller has ignored the event and that it should be delivered to other objects.</p>
|
|
<p>For convenience, the accept flag can also be set with <a href="qgestureevent.html#accept">accept</a>(), and cleared with <a href="qgestureevent.html#ignore">ignore</a>().</p>
|
|
<p><b>See also </b><a href="qgestureevent.html#isAccepted">isAccepted</a>() and <a href="qevent.html#accepted-prop">QEvent::accepted</a>.</p>
|
|
<!-- @@@setAccepted -->
|
|
<!-- $$$setAccepted$$$setAcceptedQGesture*bool -->
|
|
<h3 class="fn"><a name="setAccepted-2"></a><span class="type">void</span> QGestureEvent::<span class="name">setAccepted</span> ( <span class="type"><a href="qgesture.html">QGesture</a></span> * <i>gesture</i>, <span class="type">bool</span> <i>value</i> )</h3>
|
|
<p>Sets the accept flag of the given <i>gesture</i> object to the specified <i>value</i>.</p>
|
|
<p>Setting the accept flag indicates that the event receiver wants the <i>gesture</i>. Unwanted gestures may be propagated to the parent widget.</p>
|
|
<p>By default, gestures in events of type <a href="qevent.html#Type-enum">QEvent::Gesture</a> are accepted, and gestures in <a href="qevent.html#Type-enum">QEvent::GestureOverride</a> events are ignored.</p>
|
|
<p>For convenience, the accept flag can also be set with <a href="qgestureevent.html#accept">accept</a>(gesture), and cleared with <a href="qgestureevent.html#ignore">ignore</a>(gesture).</p>
|
|
<!-- @@@setAccepted -->
|
|
<!-- $$$setAccepted$$$setAcceptedQt::GestureTypebool -->
|
|
<h3 class="fn"><a name="setAccepted-3"></a><span class="type">void</span> QGestureEvent::<span class="name">setAccepted</span> ( <span class="type"><a href="qt.html#GestureType-enum">Qt::GestureType</a></span> <i>gestureType</i>, <span class="type">bool</span> <i>value</i> )</h3>
|
|
<p>Sets the accept flag of the given <i>gestureType</i> object to the specified <i>value</i>.</p>
|
|
<p>Setting the accept flag indicates that the event receiver wants to receive gestures of the specified type, <i>gestureType</i>. Unwanted gestures may be propagated to the parent widget.</p>
|
|
<p>By default, gestures in events of type <a href="qevent.html#Type-enum">QEvent::Gesture</a> are accepted, and gestures in <a href="qevent.html#Type-enum">QEvent::GestureOverride</a> events are ignored.</p>
|
|
<p>For convenience, the accept flag can also be set with <a href="qgestureevent.html#accept">accept</a>(gestureType), and cleared with <a href="qgestureevent.html#ignore">ignore</a>(gestureType).</p>
|
|
<!-- @@@setAccepted -->
|
|
<!-- $$$widget[overload1]$$$widget -->
|
|
<h3 class="fn"><a name="widget"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QGestureEvent::<span class="name">widget</span> () const</h3>
|
|
<p>Returns the widget on which the event occurred.</p>
|
|
<!-- @@@widget -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="ft">
|
|
<span></span>
|
|
</div>
|
|
</div>
|
|
<div class="footer">
|
|
<p>
|
|
<acronym title="Copyright">©</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>
|