/usr/share/qt5/doc/qtquick/qtquick-mousearea-example.html is in qtdeclarative5-doc-html 5.2.1-3ubuntu15.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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" />
<!-- mousearea.qdoc -->
<title>Qt Quick Examples - MouseArea | QtQuick 5.2</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.2</li>
<li><a href="qtquick-index.html">Qt Quick</a></li>
<li>Qt Quick Examples - MouseArea</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<h1 class="title">Qt Quick Examples - MouseArea</h1>
<span class="subtitle"></span>
<!-- $$$mousearea-description -->
<div class="descr"> <a name="details"></a>
<p>This is an example of the <a href="qml-qtquick-mousearea.html">MouseArea</a> type in QML<p class="centerAlign"><img src="images/qml-mousearea-example.png" alt="" /></p><p>This example shows you how to respond to clicks and drags with a <a href="qml-qtquick-mousearea.html">MouseArea</a>.</p>
<p>When you click inside the red square, the Text type will list several properties of that click which are available to QML.</p>
<p>Signals are emitted by the <a href="qml-qtquick-mousearea.html">MouseArea</a> when clicks or other discrete operations occur within it</p>
<pre class="qml"><span class="name">onPressAndHold</span>: <span class="name">btn</span>.<span class="name">text</span> <span class="operator">=</span> <span class="string">'Press and hold'</span>
<span class="name">onClicked</span>: <span class="name">btn</span>.<span class="name">text</span> <span class="operator">=</span> <span class="string">'Clicked (wasHeld='</span> <span class="operator">+</span> <span class="name">mouse</span>.<span class="name">wasHeld</span> <span class="operator">+</span> <span class="string">')'</span>
<span class="name">onDoubleClicked</span>: <span class="name">btn</span>.<span class="name">text</span> <span class="operator">=</span> <span class="string">'Double clicked'</span></pre>
<p>The <a href="qml-qtquick-mousearea.html">MouseArea</a> can also be used to drag items around. By setting the parameters of the drag property, the target item will be dragged around if the user starts to drag within the <a href="qml-qtquick-mousearea.html">MouseArea</a>.</p>
<pre class="qml"><span class="name">drag</span>.target: <span class="name">blueSquare</span>
<span class="name">drag</span>.axis: <span class="name">Drag</span>.<span class="name">XAndYAxis</span>
<span class="name">drag</span>.minimumX: <span class="number">0</span>
<span class="name">drag</span>.maximumX: <span class="name">box</span>.<span class="name">width</span> <span class="operator">-</span> <span class="name">parent</span>.<span class="name">width</span>
<span class="name">drag</span>.minimumY: <span class="number">0</span>
<span class="name">drag</span>.maximumY: <span class="name">box</span>.<span class="name">height</span> <span class="operator">-</span> <span class="name">parent</span>.<span class="name">width</span></pre>
<p>Files:</p>
<ul>
<li><a href="qtquick-mousearea-mousearea-wheel-example-qml.html">mousearea/mousearea-wheel-example.qml</a></li>
<li><a href="qtquick-mousearea-mousearea-qml.html">mousearea/mousearea.qml</a></li>
<li><a href="qtquick-mousearea-main-cpp.html">mousearea/main.cpp</a></li>
<li><a href="qtquick-mousearea-mousearea-pro.html">mousearea/mousearea.pro</a></li>
<li><a href="qtquick-mousearea-mousearea-qmlproject.html">mousearea/mousearea.qmlproject</a></li>
<li><a href="qtquick-mousearea-mousearea-qrc.html">mousearea/mousearea.qrc</a></li>
</ul>
</div>
<!-- @@@mousearea -->
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. 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> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|