/usr/share/qt5/doc/qtmultimedia/qml-qtmultimedia-camerafocus.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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativecamerafocus.cpp -->
<title>CameraFocus 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 >CameraFocus 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="#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">CameraFocus QML Type</h1>
<span class="subtitle"></span>
<!-- $$$CameraFocus-brief -->
<p>An interface for focus related camera settings. <a href="#details">More...</a></p>
<!-- @@@CameraFocus -->
<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-camerafocus-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-camerafocus.html#customFocusPoint-prop">customFocusPoint</a></b></b> : point</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-camerafocus.html#focusMode-prop">focusMode</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-camerafocus.html#focusPointMode-prop">focusPointMode</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-camerafocus.html#focusZones-prop">focusZones</a></b></b> : list<focusZone></li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">bool <b><b><a href="qml-qtmultimedia-camerafocus.html#isFocusModeSupported-method">isFocusModeSupported</a></b></b>(<i>mode</i>)</li>
<li class="fn">bool <b><b><a href="qml-qtmultimedia-camerafocus.html#isFocusPointModeSupported-method">isFocusPointModeSupported</a></b></b>(<i>mode</i>)</li>
</ul>
<!-- $$$CameraFocus-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>This type allows control over manual and automatic focus settings, including information about any parts of the camera frame that are selected for autofocusing.</p>
<p>It should not be constructed separately, instead the <code>focus</code> property of a <a href="qml-multimedia.html#camera">Camera</a> should be used.</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">focus</span> {
<span class="name">focusMode</span>: <span class="name">Camera</span>.<span class="name">FocusMacro</span>
<span class="name">focusPointMode</span>: <span class="name">Camera</span>.<span class="name">FocusPointCustom</span>
<span class="name">customFocusPoint</span>: <span class="name">Qt</span>.<span class="name">point</span>(<span class="number">0.2</span>, <span class="number">0.2</span>) <span class="comment">// Focus relative to top-left corner</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">anchors</span>.fill: <span class="name">parent</span>
}
}
</pre>
<!-- @@@CameraFocus -->
<h2>Property Documentation</h2>
<!-- $$$customFocusPoint -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="customFocusPoint-prop">
<td class="tblQmlPropNode"><p>
<a name="customFocusPoint-prop"></a><span class="name">customFocusPoint</span> : <span class="type">point</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the position of custom focus point, in relative frame coordinates: <a href="../qtcore/qpointf.html">QPointF</a>(0,0) points to the left top frame point, <a href="../qtcore/qpointf.html">QPointF</a>(0.5,0.5) points to the frame center.</p>
<p>Custom focus point is used only in FocusPointCustom focus mode.</p>
</div></div><!-- @@@customFocusPoint -->
<br/>
<!-- $$$focusMode -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="focusMode-prop">
<td class="tblQmlPropNode"><p>
<a name="focusMode-prop"></a><span class="name">focusMode</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the current camera focus mode, which can be one of the following values:</p>
<div class="table"><table class="generic">
<thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >FocusManual</td><td >Manual or fixed focus mode.</td></tr>
<tr valign="top" class="even"><td >FocusHyperfocal</td><td >Focus to hyperfocal distance, with the maximum depth of field achieved. All objects at distances from half of this distance out to infinity will be acceptably sharp.</td></tr>
<tr valign="top" class="odd"><td >FocusInfinity</td><td >Focus strictly to infinity.</td></tr>
<tr valign="top" class="even"><td >FocusAuto</td><td >One-shot auto focus mode.</td></tr>
<tr valign="top" class="odd"><td >FocusContinuous</td><td >Continuous auto focus mode.</td></tr>
<tr valign="top" class="even"><td >FocusMacro</td><td >One shot auto focus to objects close to camera.</td></tr>
</table></div>
<p>It's possible to combine multiple Camera::FocusMode values, for example Camera.FocusMacro + Camera.FocusContinuous.</p>
<p>In automatic focusing modes, the <a href="qml-qtmultimedia-camerafocus.html#focusPointMode-prop">focusPointMode</a> property and <a href="qml-qtmultimedia-camerafocus.html#focusZones-prop">focusZones</a> property provide information and control over how automatic focusing is performed.</p>
</div></div><!-- @@@focusMode -->
<br/>
<!-- $$$focusPointMode -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="focusPointMode-prop">
<td class="tblQmlPropNode"><p>
<a name="focusPointMode-prop"></a><span class="name">focusPointMode</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the current camera focus point mode. It is used in automatic focusing modes to determine what to focus on. If the current focus point mode is <code>Camera.FocusPointCustom</code>, the <a href="qml-qtmultimedia-camerafocus.html#customFocusPoint-prop">customFocusPoint</a> property allows you to specify which part of the frame to focus on.</p>
<p>The property can take one of the following values:</p>
<div class="table"><table class="generic">
<thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >FocusPointAuto</td><td >Automatically select one or multiple focus points.</td></tr>
<tr valign="top" class="even"><td >FocusPointCenter</td><td >Focus to the frame center.</td></tr>
<tr valign="top" class="odd"><td >FocusPointFaceDetection</td><td >Focus on faces in the frame.</td></tr>
<tr valign="top" class="even"><td >FocusPointCustom</td><td >Focus to the custom point, defined by the <a href="qml-qtmultimedia-camerafocus.html#customFocusPoint-prop">customFocusPoint</a> property.</td></tr>
</table></div>
</div></div><!-- @@@focusPointMode -->
<br/>
<!-- $$$focusZones -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="focusZones-prop">
<td class="tblQmlPropNode"><p>
<a name="focusZones-prop"></a><span class="name">focusZones</span> : <span class="type">list</span><<span class="type">focusZone</span>></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the list of current camera focus zones, each including <code>area</code> specified in the same coordinates as <a href="qml-qtmultimedia-camerafocus.html#customFocusPoint-prop">customFocusPoint</a>, and zone <code>status</code> as one of the following values:</p>
<div class="table"><table class="generic">
<thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >Camera.FocusAreaUnused</td><td >This focus point area is currently unused in autofocusing.</td></tr>
<tr valign="top" class="even"><td >Camera.FocusAreaSelected</td><td >This focus point area is used in autofocusing, but is not in focus.</td></tr>
<tr valign="top" class="odd"><td >Camera.FocusAreaFocused</td><td >This focus point is used in autofocusing, and is in focus.</td></tr>
</table></div>
<pre class="qml">
<span class="type"><a href="qml-qtmultimedia-videooutput.html">VideoOutput</a></span> {
<span class="name">id</span>: <span class="name">viewfinder</span>
<span class="name">source</span>: <span class="name">camera</span>
<span class="comment">//display focus areas on camera viewfinder:</span>
<span class="type">Repeater</span> {
<span class="name">model</span>: <span class="name">camera</span>.<span class="name">focus</span>.<span class="name">focusZones</span>
<span class="type">Rectangle</span> {
<span class="type">border</span> {
<span class="name">width</span>: <span class="number">2</span>
<span class="name">color</span>: <span class="name">status</span> <span class="operator">==</span> <span class="name">Camera</span>.<span class="name">FocusAreaFocused</span> ? <span class="string">"green"</span> : <span class="string">"white"</span>
}
<span class="name">color</span>: <span class="string">"transparent"</span>
<span class="comment">// Map from the relative, normalized frame coordinates</span>
property <span class="type">variant</span> <span class="name">mappedRect</span>: <span class="name">viewfinder</span>.<span class="name">mapNormalizedRectToItem</span>(<span class="name">area</span>);
<span class="name">x</span>: <span class="name">mappedRect</span>.<span class="name">x</span>
<span class="name">y</span>: <span class="name">mappedRect</span>.<span class="name">y</span>
<span class="name">width</span>: <span class="name">mappedRect</span>.<span class="name">width</span>
<span class="name">height</span>: <span class="name">mappedRect</span>.<span class="name">height</span>
}
}
}
</pre>
</div></div><!-- @@@focusZones -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$isFocusModeSupported -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="isFocusModeSupported-method">
<td class="tblQmlFuncNode"><p>
<a name="isFocusModeSupported-method"></a><span class="type">bool</span> <span class="name">isFocusModeSupported</span>(<i>mode</i>) const</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns true if the supplied <i>mode</i> is a supported focus mode, and false otherwise.</p>
</div></div><!-- @@@isFocusModeSupported -->
<br/>
<!-- $$$isFocusPointModeSupported -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="isFocusPointModeSupported-method">
<td class="tblQmlFuncNode"><p>
<a name="isFocusPointModeSupported-method"></a><span class="type">bool</span> <span class="name">isFocusPointModeSupported</span>(<i>mode</i>) const</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns true if the supplied <i>mode</i> is a supported focus point mode, and false otherwise.</p>
</div></div><!-- @@@isFocusPointModeSupported -->
<br/>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</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>
|