This file is indexed.

/usr/share/qt5/doc/qtquick/qtquick-imageelements-example.html is in qtdeclarative5-doc-html 5.5.1-2ubuntu6.

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
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- imageelements.qdoc -->
  <title>Qt Quick Examples - Image Elements | Qt Quick 5.5</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.5</li>
<li><a href="qtquick-index.html">Qt Quick</a></li>
<li>Qt Quick Examples - Image Elements</li>
<li id="buildversion">Qt 5.5.1 Reference Documentation</li>
    </ul>
    </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="#running-the-example">Running the Example</a></li>
<li class="level1"><a href="#borderimage">BorderImage</a></li>
<li class="level1"><a href="#image">Image</a></li>
<li class="level1"><a href="#shadows">Shadows</a></li>
<li class="level1"><a href="#animatedsprite">AnimatedSprite</a></li>
<li class="level1"><a href="#spritesequence">SpriteSequence</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt Quick Examples - Image Elements</h1>
<span class="subtitle"></span>
<!-- $$$imageelements-description -->
<div class="descr"> <a name="details"></a>
<p class="centerAlign"><img src="images/qml-imageelements-example.png" alt="" /></p><p><i>Image Elements</i> is a collection of small QML examples relating to image types. For more information, visit Use Case - Visual Elements In QML.</p>
<a name="running-the-example"></a>
<h2 id="running-the-example">Running the Example</h2>
<p>To run the example from Qt Creator, open the <b>Welcome</b> mode and select the example from <b>Examples</b>. For more information, visit Building and Running an Example.</p>
<a name="borderimage"></a>
<h2 id="borderimage">BorderImage</h2>
<p><i>BorderImage</i> shows off the various scaling modes of the <a href="qtquick-imageelements-example.html#borderimage">BorderImage</a> type by setting its horizontalTileMode and verticalTileMode properties.</p>
<a name="image"></a>
<h2 id="image">Image</h2>
<p><i>Image</i> shows off the various fill modes of the <a href="qtquick-imageelements-example.html#image">Image</a> type.</p>
<a name="shadows"></a>
<h2 id="shadows">Shadows</h2>
<p><i>Shadows</i> shows how to create a drop shadow effect for a rectangular item using a <a href="qtquick-imageelements-example.html#borderimage">BorderImage</a>:</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-borderimage.html">BorderImage</a></span> {
        <span class="name">anchors</span>.fill: <span class="name">rectangle</span>
        <span class="type">anchors</span> { <span class="name">leftMargin</span>: -<span class="number">6</span>; <span class="name">topMargin</span>: -<span class="number">6</span>; <span class="name">rightMargin</span>: -<span class="number">8</span>; <span class="name">bottomMargin</span>: -<span class="number">8</span> }
        <span class="type">border</span> { <span class="name">left</span>: <span class="number">10</span>; <span class="name">top</span>: <span class="number">10</span>; <span class="name">right</span>: <span class="number">10</span>; <span class="name">bottom</span>: <span class="number">10</span> }
        <span class="name">source</span>: <span class="string">&quot;shadow.png&quot;</span>
    }</pre>
<a name="animatedsprite"></a>
<h2 id="animatedsprite">AnimatedSprite</h2>
<p><i>AnimatedSprite</i> shows how to display a simple animation using an <a href="qtquick-effects-sprites.html#animatedsprite">AnimatedSprite</a> object:</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-animatedsprite.html">AnimatedSprite</a></span> {
        <span class="name">id</span>: <span class="name">sprite</span>
        <span class="name">width</span>: <span class="number">170</span>
        <span class="name">height</span>: <span class="number">170</span>
        <span class="name">anchors</span>.centerIn: <span class="name">parent</span>
        <span class="name">source</span>: <span class="string">&quot;content/speaker.png&quot;</span>
        <span class="name">frameCount</span>: <span class="number">60</span>
        <span class="name">frameSync</span>: <span class="number">true</span>
        <span class="name">frameWidth</span>: <span class="number">170</span>
        <span class="name">frameHeight</span>: <span class="number">170</span>
        <span class="name">loops</span>: <span class="number">3</span>
    }</pre>
<p>The sprite animation will loop three times.</p>
<a name="spritesequence"></a>
<h2 id="spritesequence">SpriteSequence</h2>
<p><i>SpriteSequence</i> demonstrates using a sprite sequence to draw an animated and interactive bear. The <a href="qtquick-imageelements-example.html#spritesequence">SpriteSequence</a> object defines five different sprites. The bear is initially in a <i>still</i> state:</p>
<pre class="qml">        <span class="type"><a href="qml-qtquick-sprite.html">Sprite</a></span>{
            <span class="name">name</span>: <span class="string">&quot;still&quot;</span>
            <span class="name">source</span>: <span class="string">&quot;content/BearSheet.png&quot;</span>
            <span class="name">frameCount</span>: <span class="number">1</span>
            <span class="name">frameWidth</span>: <span class="number">256</span>
            <span class="name">frameHeight</span>: <span class="number">256</span>
            <span class="name">frameDuration</span>: <span class="number">100</span>
            <span class="name">to</span>: {&quot;still&quot;:<span class="number">1</span>, &quot;blink&quot;:<span class="number">0.1</span>, &quot;floating&quot;:<span class="number">0</span>}
        }</pre>
<p>When the scene is clicked, an animation sets the sprite sequence to the <i>falling</i> states and animates the bear's y property.</p>
<pre class="qml">    <span class="type"><a href="qml-qtquick-sequentialanimation.html">SequentialAnimation</a></span> {
        <span class="name">id</span>: <span class="name">anim</span>
        <span class="type"><a href="qml-qtquick-scriptaction.html">ScriptAction</a></span> { <span class="name">script</span>: <span class="name">image</span>.<span class="name">goalSprite</span> <span class="operator">=</span> <span class="string">&quot;falling&quot;</span>; }
        <span class="type"><a href="qml-qtquick-numberanimation.html">NumberAnimation</a></span> { <span class="name">target</span>: <span class="name">image</span>; <span class="name">property</span>: <span class="string">&quot;y&quot;</span>; <span class="name">to</span>: <span class="number">480</span>; <span class="name">duration</span>: <span class="number">12000</span>; }
        <span class="type"><a href="qml-qtquick-scriptaction.html">ScriptAction</a></span> { <span class="name">script</span>: {<span class="name">image</span>.<span class="name">goalSprite</span> <span class="operator">=</span> <span class="string">&quot;&quot;</span>; <span class="name">image</span>.<span class="name">jumpTo</span>(<span class="string">&quot;still&quot;</span>);} }
        <span class="type"><a href="qml-qtquick-propertyaction.html">PropertyAction</a></span> { <span class="name">target</span>: <span class="name">image</span>; <span class="name">property</span>: <span class="string">&quot;y&quot;</span>; <span class="name">value</span>: <span class="number">0</span> }
    }</pre>
<p>At the end of the animation the bear is set back to its initial state.</p>
<p>Files:</p>
<ul>
<li><a href="qtquick-imageelements-animatedsprite-qml.html">imageelements/animatedsprite.qml</a></li>
<li><a href="qtquick-imageelements-borderimage-qml.html">imageelements/borderimage.qml</a></li>
<li><a href="qtquick-imageelements-image-qml.html">imageelements/image.qml</a></li>
<li><a href="qtquick-imageelements-imageelements-qml.html">imageelements/imageelements.qml</a></li>
<li><a href="qtquick-imageelements-shadows-qml.html">imageelements/shadows.qml</a></li>
<li><a href="qtquick-imageelements-spritesequence-qml.html">imageelements/spritesequence.qml</a></li>
<li><a href="qtquick-imageelements-content-borderimageselector-qml.html">imageelements/content/BorderImageSelector.qml</a></li>
<li><a href="qtquick-imageelements-content-imagecell-qml.html">imageelements/content/ImageCell.qml</a></li>
<li><a href="qtquick-imageelements-content-myborderimage-qml.html">imageelements/content/MyBorderImage.qml</a></li>
<li><a href="qtquick-imageelements-content-shadowrectangle-qml.html">imageelements/content/ShadowRectangle.qml</a></li>
<li><a href="qtquick-imageelements-main-cpp.html">imageelements/main.cpp</a></li>
<li><a href="qtquick-imageelements-imageelements-pro.html">imageelements/imageelements.pro</a></li>
<li><a href="qtquick-imageelements-imageelements-qmlproject.html">imageelements/imageelements.qmlproject</a></li>
<li><a href="qtquick-imageelements-imageelements-qrc.html">imageelements/imageelements.qrc</a></li>
</ul>
</div>
<!-- @@@imageelements -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2015 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>