This file is indexed.

/usr/share/qt5/doc/qtmultimedia/qml-qtmultimedia-cameracapture.html is in qtmultimedia5-doc-html 5.2.1-0ubuntu5.

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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?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" />
<!-- qdeclarativecameracapture.cpp -->
  <title>CameraCapture | QtMultimedia 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="qtmultimedia-index.html">Qt Multimedia</a></li>
<li><a href="qtmultimedia-qmlmodule.html">QML Types</a></li>
<li>CameraCapture</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<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="#signals">Signals</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">CameraCapture</h1>
<span class="subtitle"></span>
<!-- $$$CameraCapture-brief -->
<p>An interface for capturing camera images <a href="#details">More...</a></p>
<!-- @@@CameraCapture -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> </b><tt>import QtMultimedia 5.0</tt></td></tr></table><ul>
<li><a href="qml-qtmultimedia-cameracapture-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#capturedImagePath-prop">capturedImagePath</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#errorString-prop">errorString</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#ready-prop">ready</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#resolution-prop">resolution</a></b></b> : size</li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#onCaptureFailed-signal">onCaptureFailed</a></b></b>(requestId, message)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#onImageCaptured-signal">onImageCaptured</a></b></b>(requestId, preview)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#onImageMetadataAvailable-signal">onImageMetadataAvailable</a></b></b>(requestId, key, value)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#onImageSaved-signal">onImageSaved</a></b></b>(requestId, path)</li>
</ul>
<a name="methods"></a>
<h2>Methods</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#cancelCapture-method">cancelCapture</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#capture-method">capture</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#captureToLocation-method">captureToLocation</a></b></b>(location)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#setMetadata-method">setMetadata</a></b></b>(key, value)</li>
</ul>
<!-- $$$CameraCapture-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>This type allows you to capture still images and be notified when they are available or saved to disk. You can adjust the resolution of the captured image and where the saved image should go.</p>
<p>CameraCapture is a child of a <a href="qml-qtmultimedia-camera.html">Camera</a> (as the <tt>imageCapture</tt> property) and cannot be created directly.</p>
<pre class="qml">import QtQuick 2.0
import QtMultimedia 5.0

<span class="type">Item</span> {
    <span class="name">width</span>: <span class="number">640</span>
    <span class="name">height</span>: <span class="number">360</span>

    <span class="type"><a href="qml-qtmultimedia-camera.html">Camera</a></span> {
        <span class="name">id</span>: <span class="name">camera</span>

        <span class="type">imageCapture</span> {
            <span class="name">onImageCaptured</span>: {
                <span class="comment">// Show the preview in an Image</span>
                <span class="name">photoPreview</span>.<span class="name">source</span> <span class="operator">=</span> <span class="name">preview</span>
            }
        }
    }

    <span class="type"><a href="qml-qtmultimedia-videooutput.html">VideoOutput</a></span> {
        <span class="name">source</span>: <span class="name">camera</span>
        <span class="name">focus</span> : <span class="name">visible</span> <span class="comment">// to receive focus and capture key events when visible</span>
        <span class="name">anchors</span>.fill: <span class="name">parent</span>

        <span class="type">MouseArea</span> {
            <span class="name">anchors</span>.fill: <span class="name">parent</span>;
            <span class="name">onClicked</span>: <span class="name">camera</span>.<span class="name">imageCapture</span>.<span class="name">capture</span>();
        }
    }

    <span class="type">Image</span> {
        <span class="name">id</span>: <span class="name">photoPreview</span>
    }
}</pre>
<!-- @@@CameraCapture -->
<h2>Property Documentation</h2>
<!-- $$$capturedImagePath -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="capturedImagePath-prop"></a><span class="name">capturedImagePath</span> : <span class="type">string</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the location of the last captured image.</p>
</div></div><!-- @@@capturedImagePath -->
<br/>
<!-- $$$errorString -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="errorString-prop"></a><span class="name">errorString</span> : <span class="type">string</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the error message related to the last capture.</p>
</div></div><!-- @@@errorString -->
<br/>
<!-- $$$ready -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="ready-prop"></a><span class="name">ready</span> : <span class="type">bool</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds a bool value indicating whether the camera is ready to capture photos or not.</p>
<p>It's permissible to call <a href="qml-qtmultimedia-cameracapture.html#capture-method">capture()</a> while the camera is active regardless of the <i>ready</i> property value. If camera is not ready to capture image immediately, the capture request is queued with all the related camera settings, and the request will be executed as soon as possible.</p>
</div></div><!-- @@@ready -->
<br/>
<!-- $$$resolution -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="resolution-prop"></a><span class="name">resolution</span> : <span class="type">size</span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the resolution/size of the image to be captured. If empty, the system chooses the appropriate resolution.</p>
</div></div><!-- @@@resolution -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$onCaptureFailed -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onCaptureFailed-signal"></a><span class="name">onCaptureFailed</span>(<span class="type">requestId</span>, <span class="type">message</span>)</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when an error occurs during capture with <i>requestId</i>. A descriptive message is available in <i>message</i>.</p>
</div></div><!-- @@@onCaptureFailed -->
<br/>
<!-- $$$onImageCaptured -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onImageCaptured-signal"></a><span class="name">onImageCaptured</span>(<span class="type">requestId</span>, <span class="type">preview</span>)</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when an image with <i>requestId</i> has been captured but not yet saved to the filesystem. The <i>preview</i> parameter can be used as the URL supplied to an Image.</p>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#onImageSaved-signal">onImageSaved</a>.</p>
</div></div><!-- @@@onImageCaptured -->
<br/>
<!-- $$$onImageMetadataAvailable -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onImageMetadataAvailable-signal"></a><span class="name">onImageMetadataAvailable</span>(<span class="type">requestId</span>, <span class="type">key</span>, <span class="type">value</span>)</p></td></tr></table></div><div class="qmldoc"><p>This handler is called when the image with <i>requestId</i> has new metadata available with the key <i>key</i> and value <i>value</i>.</p>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#onImageCaptured-signal">onImageCaptured</a>.</p>
</div></div><!-- @@@onImageMetadataAvailable -->
<br/>
<!-- $$$onImageSaved -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="onImageSaved-signal"></a><span class="name">onImageSaved</span>(<span class="type">requestId</span>, <span class="type">path</span>)</p></td></tr></table></div><div class="qmldoc"><p>This handler is called after the image with <i>requestId</i> has been written to the filesystem. The <i>path</i> is a local file path, not a URL.</p>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#onImageCaptured-signal">onImageCaptured</a>.</p>
</div></div><!-- @@@onImageSaved -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$cancelCapture -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="cancelCapture-method"></a><span class="name">cancelCapture</span>()</p></td></tr></table></div><div class="qmldoc"><p>Cancel pending image capture requests.</p>
</div></div><!-- @@@cancelCapture -->
<br/>
<!-- $$$capture -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="capture-method"></a><span class="name">capture</span>()</p></td></tr></table></div><div class="qmldoc"><p>Start image capture. The onImageCaptured() and onImageSaved() signals will be emitted when the capture is complete.</p>
<p>The image will be captured to the default system location, typically QStandardPaths::writableLocation(QStandardPaths::PicturesLocation) for still imaged or QStandardPaths::writableLocation(QStandardPaths::MoviesLocation) for video.</p>
<p>Camera saves all the capture parameters like exposure settings or image processing parameters, so changes to camera paramaters after capture() is called do not affect previous capture requests.</p>
<p>CameraCapture::capture returns the capture requestId parameter, used with imageExposed(), imageCaptured(), imageMetadataAvailable() and imageSaved() signals.</p>
</div></div><!-- @@@capture -->
<br/>
<!-- $$$captureToLocation -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="captureToLocation-method"></a><span class="name">captureToLocation</span>(<span class="type">location</span>)</p></td></tr></table></div><div class="qmldoc"><p>Start image capture to specified <i>location</i>. The onImageCaptured() and onImageSaved() signals will be emitted when the capture is complete.</p>
<p>CameraCapture::captureToLocation returns the capture requestId parameter, used with imageExposed(), imageCaptured(), imageMetadataAvailable() and imageSaved() signals.</p>
<p>If the application is unable to write to the location specified by <tt>location</tt> the <a href="qml-qtmultimedia-cameracapture.html">CameraCapture</a> will emit an error. The most likely reasons for the application to be unable to write to a location is that the path is wrong and the location does not exists, or the application does not have write permission for that location.</p>
</div></div><!-- @@@captureToLocation -->
<br/>
<!-- $$$setMetadata -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlFuncNode"><p><a name="setMetadata-method"></a><span class="name">setMetadata</span>(<span class="type">key</span>, <span class="type">value</span>)</p></td></tr></table></div><div class="qmldoc"><p>Sets a particular metadata <i>key</i> to <i>value</i> for the subsequent image captures.</p>
<p><b>See also </b><a href="qmediametadata.html">QMediaMetaData</a>.</p>
</div></div><!-- @@@setMetadata -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>