This file is indexed.

/usr/share/qt5/doc/qtmultimedia/qml-qtmultimedia-cameracapture.html is in qtmultimedia5-doc-html 5.9.5-0ubuntu1.

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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativecameracapture.cpp -->
  <title>CameraCapture QML Type | Qt Multimedia 5.9</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.9</td><td ><a href="qtmultimedia-index.html">Qt Multimedia</a></td><td ><a href="qtmultimedia-qmlmodule.html">QML Types</a></td><td >CameraCapture QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.5 Reference Documentation</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="#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>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">CameraCapture QML Type</h1>
<span class="subtitle"></span>
<!-- $$$CameraCapture-brief -->
<p>An interface for capturing camera images <a href="#details">More...</a></p>
<!-- @@@CameraCapture -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtMultimedia 5.8</td></tr></table></div><ul>
<li><a href="qml-qtmultimedia-cameracapture-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">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>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#supportedResolutions-prop">supportedResolutions</a></b></b> : list&lt;size&gt;</li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#captureFailed-signal">captureFailed</a></b></b>(<i>requestId</i>, <i>message</i>)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#imageCaptured-signal">imageCaptured</a></b></b>(<i>requestId</i>, <i>preview</i>)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#imageMetadataAvailable-signal">imageMetadataAvailable</a></b></b>(<i>requestId</i>, <i>key</i>, <i>value</i>)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#imageSaved-signal">imageSaved</a></b></b>(<i>requestId</i>, <i>path</i>)</li>
</ul>
<a name="methods"></a>
<h2 id="methods">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>(<i>location</i>)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-cameracapture.html#setMetadata-method">setMetadata</a></b></b>(<i>key</i>, <i>value</i>)</li>
</ul>
<!-- $$$CameraCapture-description -->
<a name="details"></a>
<h2 id="details">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><a href="qml-qtmultimedia-cameracapture.html">CameraCapture</a> is a child of a <a href="qml-multimedia.html#camera">Camera</a> (as the <code>imageCapture</code> property) and cannot be created directly.</p>
<pre class="qml">

  <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">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="capturedImagePath-prop">
<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><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">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="errorString-prop">
<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><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">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="ready-prop">
<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><div class="qmldoc"><p>This property holds a bool value indicating whether the camera is ready to capture photos or not.</p>
<p>Calling <a href="qml-qtmultimedia-cameracapture.html#capture-method">capture()</a> while <i>ready</i> is <code>false</code> is not permitted and results in an error.</p>
</div></div><!-- @@@ready -->
<br/>
<!-- $$$resolution -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="resolution-prop">
<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><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>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#supportedResolutions-prop">supportedResolutions</a>.</p>
</div></div><!-- @@@resolution -->
<br/>
<!-- $$$supportedResolutions -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="supportedResolutions-prop">
<td class="tblQmlPropNode"><p>
<a name="supportedResolutions-prop"></a><span class="name">supportedResolutions</span> : <span class="type">list</span>&lt;<span class="type">size</span>&gt;</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds a list of resolutions which are supported for capturing. The information can be used to set a valid <i>resolution</i>. If the camera isn't loaded, the list will be empty.</p>
<p>This QML property was introduced in  Qt 5.9.</p>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#resolution-prop">resolution</a>.</p>
</div></div><!-- @@@supportedResolutions -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$captureFailed -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="captureFailed-signal">
<td class="tblQmlFuncNode"><p>
<a name="captureFailed-signal"></a><span class="name">captureFailed</span>(<i>requestId</i>, <i>message</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when an error occurs during capture with <i>requestId</i>. A descriptive message is available in <i>message</i>.</p>
<p>The corresponding handler is <code>onCaptureFailed</code>.</p>
</div></div><!-- @@@captureFailed -->
<br/>
<!-- $$$imageCaptured -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="imageCaptured-signal">
<td class="tblQmlFuncNode"><p>
<a name="imageCaptured-signal"></a><span class="name">imageCaptured</span>(<i>requestId</i>, <i>preview</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted 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>The corresponding handler is <code>onImageCaptured</code>.</p>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#imageSaved-signal">imageSaved</a>.</p>
</div></div><!-- @@@imageCaptured -->
<br/>
<!-- $$$imageMetadataAvailable -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="imageMetadataAvailable-signal">
<td class="tblQmlFuncNode"><p>
<a name="imageMetadataAvailable-signal"></a><span class="name">imageMetadataAvailable</span>(<i>requestId</i>, <i>key</i>, <i>value</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the image with <i>requestId</i> has new metadata available with the key <i>key</i> and value <i>value</i>.</p>
<p>The corresponding handler is <code>onImageMetadataAvailable</code>.</p>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#imageCaptured-signal">imageCaptured</a>.</p>
</div></div><!-- @@@imageMetadataAvailable -->
<br/>
<!-- $$$imageSaved -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="imageSaved-signal">
<td class="tblQmlFuncNode"><p>
<a name="imageSaved-signal"></a><span class="name">imageSaved</span>(<i>requestId</i>, <i>path</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted 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>The corresponding handler is <code>onImageSaved</code>.</p>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#imageCaptured-signal">imageCaptured</a>.</p>
</div></div><!-- @@@imageSaved -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$cancelCapture -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="cancelCapture-method">
<td class="tblQmlFuncNode"><p>
<a name="cancelCapture-method"></a><span class="name">cancelCapture</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Cancel pending image capture requests.</p>
</div></div><!-- @@@cancelCapture -->
<br/>
<!-- $$$capture -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="capture-method">
<td class="tblQmlFuncNode"><p>
<a name="capture-method"></a><span class="name">capture</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Start image capture. The <a href="qml-qtmultimedia-cameracapture.html#imageCaptured-signal">imageCaptured</a> and <a href="qml-qtmultimedia-cameracapture.html#imageSaved-signal">imageSaved</a> signals will be emitted when the capture is complete.</p>
<p>The image will be captured to the default system location, typically <a href="../qtcore/qstandardpaths.html#writableLocation">QStandardPaths::writableLocation</a>(<a href="../qtcore/qstandardpaths.html#StandardLocation-enum">QStandardPaths::PicturesLocation</a>) for still imaged or <a href="../qtcore/qstandardpaths.html#writableLocation">QStandardPaths::writableLocation</a>(<a href="../qtcore/qstandardpaths.html#StandardLocation-enum">QStandardPaths::MoviesLocation</a>) for video.</p>
<p>Camera saves all the capture parameters like exposure settings or image processing parameters, so changes to camera parameters after capture() is called do not affect previous capture requests.</p>
<p>capture() returns the capture requestId parameter, used with imageExposed(), <a href="qml-qtmultimedia-cameracapture.html#imageCaptured-signal">imageCaptured()</a>, <a href="qml-qtmultimedia-cameracapture.html#imageMetadataAvailable-signal">imageMetadataAvailable()</a> and <a href="qml-qtmultimedia-cameracapture.html#imageSaved-signal">imageSaved()</a> signals.</p>
<p><b>See also </b><a href="qml-qtmultimedia-cameracapture.html#ready-prop">ready</a>.</p>
</div></div><!-- @@@capture -->
<br/>
<!-- $$$captureToLocation -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="captureToLocation-method">
<td class="tblQmlFuncNode"><p>
<a name="captureToLocation-method"></a><span class="name">captureToLocation</span>(<i>location</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Start image capture to specified <i>location</i>. The <a href="qml-qtmultimedia-cameracapture.html#imageCaptured-signal">imageCaptured</a> and <a href="qml-qtmultimedia-cameracapture.html#imageSaved-signal">imageSaved</a> signals will be emitted when the capture is complete.</p>
<p>CameraCapture::captureToLocation returns the capture requestId parameter, used with imageExposed(), <a href="qml-qtmultimedia-cameracapture.html#imageCaptured-signal">imageCaptured()</a>, <a href="qml-qtmultimedia-cameracapture.html#imageMetadataAvailable-signal">imageMetadataAvailable()</a> and <a href="qml-qtmultimedia-cameracapture.html#imageSaved-signal">imageSaved()</a> signals.</p>
<p>If the application is unable to write to the location specified by <code>location</code> 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">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="setMetadata-method">
<td class="tblQmlFuncNode"><p>
<a name="setMetadata-method"></a><span class="name">setMetadata</span>(<i>key</i>, <i>value</i>)</p></td></tr>
</table></div>
</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> 2017 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>