/usr/share/qt5/doc/qtquickcontrols/qml-qtquick-controls-styles-dialstyle.html is in qtquickcontrols5-doc-html 5.5.1-1ubuntu1.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- DialStyle.qml -->
<title>DialStyle QML Type | Qt Quick Controls 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="qtquickcontrols-index.html">Qt Quick Controls</a></li>
<li><a href="qtquick-controls-qmlmodule.html">QML Types</a></li>
<li>DialStyle QML Type</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="#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">DialStyle QML Type</h1>
<span class="subtitle"></span>
<!-- $$$DialStyle-brief -->
<p>Provides custom styling for Dial. <a href="#details">More...</a></p>
<!-- @@@DialStyle -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtQuick.Controls.Styles 1.4</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.5</td></tr></table></div><ul>
<li><a href="qml-qtquick-controls-styles-dialstyle-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-qtquick-controls-styles-dialstyle.html#background-prop">background</a></b></b> : Component</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#control-prop">control</a></b></b> : Dial</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#handle-prop">handle</a></b></b> : Component</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#handleInset-prop">handleInset</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#labelCount-prop">labelCount</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#labelInset-prop">labelInset</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#labelStepSize-prop">labelStepSize</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#minorTickmark-prop">minorTickmark</a></b></b> : Component</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#minorTickmarkCount-prop">minorTickmarkCount</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#minorTickmarkInset-prop">minorTickmarkInset</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#outerRadius-prop">outerRadius</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#tickmark-prop">tickmark</a></b></b> : Component</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#tickmarkCount-prop">tickmarkCount</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#tickmarkInset-prop">tickmarkInset</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#tickmarkLabel-prop">tickmarkLabel</a></b></b> : Component</li>
<li class="fn"><b><b><a href="qml-qtquick-controls-styles-dialstyle.html#tickmarkStepSize-prop">tickmarkStepSize</a></b></b> : real</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">real <b><b><a href="qml-qtquick-controls-styles-dialstyle.html#valueToAngle-method">valueToAngle</a></b></b>(real <i> value</i>)</li>
</ul>
<!-- $$$DialStyle-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
</p>
<p>You can create a custom dial by replacing the following delegates:</p>
<ul>
<li><a href="qml-qtquick-controls-styles-dialstyle.html#background-prop">background</a></li>
</ul>
<!-- @@@DialStyle -->
<h2>Property Documentation</h2>
<!-- $$$background -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="background-prop"><td class="tblQmlPropNode"><p><a name="background-prop"></a><span class="name">background</span> : <span class="type"><a href="../qtqml/qml-qtqml-component.html">Component</a></span></p></td></tr></table></div></div><div class="qmldoc"><p>The background of the dial.</p>
<p>The implicit size of the dial is taken from this component.</p>
</div></div><!-- @@@background -->
<br/>
<!-- $$$control -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="control-prop"><td class="tblQmlPropNode"><p><a name="control-prop"></a><span class="qmlreadonly">read-only</span><span class="name">control</span> : <span class="type">Dial</span></p></td></tr></table></div></div><div class="qmldoc"><p>The Dial that this style is attached to.</p>
</div></div><!-- @@@control -->
<br/>
<!-- $$$handle -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="handle-prop"><td class="tblQmlPropNode"><p><a name="handle-prop"></a><span class="name">handle</span> : <span class="type"><a href="../qtqml/qml-qtqml-component.html">Component</a></span></p></td></tr></table></div></div><div class="qmldoc"><p>The handle of the dial.</p>
<p>The handle is automatically positioned within the dial, based on the <a href="qml-qtquick-controls-styles-dialstyle.html#handleInset-prop">handleInset</a> and the implicit width and height of the handle itself.</p>
</div></div><!-- @@@handle -->
<br/>
<!-- $$$handleInset -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="handleInset-prop"><td class="tblQmlPropNode"><p><a name="handleInset-prop"></a><span class="name">handleInset</span> : <span class="type">real</span></p></td></tr></table></div></div><div class="qmldoc"><p>The distance in pixels from the outside of the dial (<a href="qml-qtquick-controls-styles-dialstyle.html#outerRadius-prop">outerRadius</a>) to the center of the handle.</p>
</div></div><!-- @@@handleInset -->
<br/>
<!-- $$$labelCount -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="labelCount-prop"><td class="tblQmlPropNode"><p><a name="labelCount-prop"></a><span class="qmlreadonly">read-only</span><span class="name">labelCount</span> : <span class="type">int</span></p></td></tr></table></div></div><div class="qmldoc"><p>The amount of tickmark labels displayed by the dial, calculated from <a href="qml-qtquick-controls-styles-dialstyle.html#labelStepSize-prop">labelStepSize</a> and the control's minimumValue and maximumValue.</p>
<p><b>See also </b><a href="qml-qtquick-controls-styles-dialstyle.html#tickmarkCount-prop">tickmarkCount</a> and <a href="qml-qtquick-controls-styles-dialstyle.html#minorTickmarkCount-prop">minorTickmarkCount</a>.</p>
</div></div><!-- @@@labelCount -->
<br/>
<!-- $$$labelInset -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="labelInset-prop"><td class="tblQmlPropNode"><p><a name="labelInset-prop"></a><span class="name">labelInset</span> : <span class="type">real</span></p></td></tr></table></div></div><div class="qmldoc"><p>The distance in pixels from the outside of the dial (<a href="qml-qtquick-controls-styles-dialstyle.html#outerRadius-prop">outerRadius</a>) at which the center of the value marker text is drawn.</p>
</div></div><!-- @@@labelInset -->
<br/>
<!-- $$$labelStepSize -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="labelStepSize-prop"><td class="tblQmlPropNode"><p><a name="labelStepSize-prop"></a><span class="name">labelStepSize</span> : <span class="type">real</span></p></td></tr></table></div></div><div class="qmldoc"><p>The interval at which tickmark labels are displayed.</p>
<p>For example, if this property is set to <code>10</code> (the default), control.minimumValue to <code>0</code>, and control.maximumValue to <code>100</code>, the tickmark labels displayed will be 0, 10, 20, etc., to 100, along the circumference of the dial.</p>
</div></div><!-- @@@labelStepSize -->
<br/>
<!-- $$$minorTickmark -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="minorTickmark-prop"><td class="tblQmlPropNode"><p><a name="minorTickmark-prop"></a><span class="name">minorTickmark</span> : <span class="type"><a href="../qtqml/qml-qtqml-component.html">Component</a></span></p></td></tr></table></div></div><div class="qmldoc"><p>This component defines each individual minor tickmark. The position of each minor tickmark is already set; only the <a href="../qtquick/qml-qtquick-item.html#implicitWidth-prop">implicitWidth</a> and <a href="../qtquick/qml-qtquick-item.html#implicitHeight-prop">implicitHeight</a> need to be specified.</p>
<p>Each instance of this component has access to the following properties:</p>
<div class="table"><table class="generic">
<tr valign="top" class="odd"><td ><code>readonly property int</code> <b>styleData.index</b></td><td >The index of this tickmark.</td></tr>
<tr valign="top" class="even"><td ><code>readonly property real</code> <b>styleData.value</b></td><td >The value that this tickmark represents.</td></tr>
</table></div>
<p>By default, no minor tickmark is defined.</p>
</div></div><!-- @@@minorTickmark -->
<br/>
<!-- $$$minorTickmarkCount -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="minorTickmarkCount-prop"><td class="tblQmlPropNode"><p><a name="minorTickmarkCount-prop"></a><span class="name">minorTickmarkCount</span> : <span class="type">int</span></p></td></tr></table></div></div><div class="qmldoc"><p>The amount of minor tickmarks between each tickmark.</p>
<p><b>See also </b><a href="qml-qtquick-controls-styles-dialstyle.html#tickmarkCount-prop">tickmarkCount</a>.</p>
</div></div><!-- @@@minorTickmarkCount -->
<br/>
<!-- $$$minorTickmarkInset -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="minorTickmarkInset-prop"><td class="tblQmlPropNode"><p><a name="minorTickmarkInset-prop"></a><span class="name">minorTickmarkInset</span> : <span class="type">real</span></p></td></tr></table></div></div><div class="qmldoc"><p>The distance in pixels from the outside of the dial (<a href="qml-qtquick-controls-styles-dialstyle.html#outerRadius-prop">outerRadius</a>) at which the outermost point of the minor tickmark line is drawn.</p>
</div></div><!-- @@@minorTickmarkInset -->
<br/>
<!-- $$$outerRadius -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="outerRadius-prop"><td class="tblQmlPropNode"><p><a name="outerRadius-prop"></a><span class="qmlreadonly">read-only</span><span class="name">outerRadius</span> : <span class="type">real</span></p></td></tr></table></div></div><div class="qmldoc"><p>The distance from the center of the dial to the outer edge of the dial.</p>
<p>This property is useful for determining the size of the various components of the style, in order to ensure that they are scaled proportionately when the dial is resized.</p>
</div></div><!-- @@@outerRadius -->
<br/>
<!-- $$$tickmark -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="tickmark-prop"><td class="tblQmlPropNode"><p><a name="tickmark-prop"></a><span class="name">tickmark</span> : <span class="type"><a href="../qtqml/qml-qtqml-component.html">Component</a></span></p></td></tr></table></div></div><div class="qmldoc"><p>This component defines each individual tickmark. The position of each tickmark is already set; only the <a href="../qtquick/qml-qtquick-item.html#implicitWidth-prop">implicitWidth</a> and <a href="../qtquick/qml-qtquick-item.html#implicitHeight-prop">implicitHeight</a> need to be specified.</p>
<p>Each instance of this component has access to the following properties:</p>
<div class="table"><table class="generic">
<tr valign="top" class="odd"><td ><code>readonly property int</code> <b>styleData.index</b></td><td >The index of this tickmark.</td></tr>
<tr valign="top" class="even"><td ><code>readonly property real</code> <b>styleData.value</b></td><td >The value that this tickmark represents.</td></tr>
</table></div>
</div></div><!-- @@@tickmark -->
<br/>
<!-- $$$tickmarkCount -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="tickmarkCount-prop"><td class="tblQmlPropNode"><p><a name="tickmarkCount-prop"></a><span class="qmlreadonly">read-only</span><span class="name">tickmarkCount</span> : <span class="type">int</span></p></td></tr></table></div></div><div class="qmldoc"><p>The amount of tickmarks displayed by the dial, calculated from <a href="qml-qtquick-controls-styles-dialstyle.html#tickmarkStepSize-prop">tickmarkStepSize</a> and the control's minimumValue and maximumValue.</p>
<p><b>See also </b><a href="qml-qtquick-controls-styles-dialstyle.html#minorTickmarkCount-prop">minorTickmarkCount</a>.</p>
</div></div><!-- @@@tickmarkCount -->
<br/>
<!-- $$$tickmarkInset -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="tickmarkInset-prop"><td class="tblQmlPropNode"><p><a name="tickmarkInset-prop"></a><span class="name">tickmarkInset</span> : <span class="type">real</span></p></td></tr></table></div></div><div class="qmldoc"><p>The distance in pixels from the outside of the dial (<a href="qml-qtquick-controls-styles-dialstyle.html#outerRadius-prop">outerRadius</a>) at which the outermost point of the tickmark line is drawn.</p>
</div></div><!-- @@@tickmarkInset -->
<br/>
<!-- $$$tickmarkLabel -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="tickmarkLabel-prop"><td class="tblQmlPropNode"><p><a name="tickmarkLabel-prop"></a><span class="name">tickmarkLabel</span> : <span class="type"><a href="../qtqml/qml-qtqml-component.html">Component</a></span></p></td></tr></table></div></div><div class="qmldoc"><p>This defines the text of each tickmark label on the dial.</p>
<p>Each instance of this component has access to the following properties:</p>
<div class="table"><table class="generic">
<tr valign="top" class="odd"><td ><code>readonly property int</code> <b>styleData.index</b></td><td >The index of this label.</td></tr>
<tr valign="top" class="even"><td ><code>readonly property real</code> <b>styleData.value</b></td><td >The value that this label represents.</td></tr>
</table></div>
<p>By default, no label is defined.</p>
</div></div><!-- @@@tickmarkLabel -->
<br/>
<!-- $$$tickmarkStepSize -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="tickmarkStepSize-prop"><td class="tblQmlPropNode"><p><a name="tickmarkStepSize-prop"></a><span class="name">tickmarkStepSize</span> : <span class="type">real</span></p></td></tr></table></div></div><div class="qmldoc"><p>The interval at which tickmarks are displayed.</p>
<p>For example, if this property is set to <code>10</code>, control.minimumValue to <code>0</code>, and control.maximumValue to <code>100</code>, the tickmarks displayed will be 0, 10, 20, etc., to 100, along the circumference of the dial.</p>
</div></div><!-- @@@tickmarkStepSize -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$valueToAngle -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="odd" id="valueToAngle-method"><td class="tblQmlFuncNode"><p><a name="valueToAngle-method"></a><span class="type">real</span> <span class="name">valueToAngle</span>(<span class="type">real</span><i> value</i>)</p></td></tr></table></div></div><div class="qmldoc"><p>Returns <i>value</i> as an angle in degrees.</p>
<p>This function is useful for custom drawing or positioning of items in the style's components. For example, it can be used to calculate the angles at which to draw an arc around the dial indicating the safe range of values.</p>
<p>For example, if minimumValueAngle is set to <code>270</code> and maximumValueAngle is set to <code>90</code>, this function will return <code>270</code> when passed minimumValue and <code>90</code> when passed maximumValue.</p>
</div></div><!-- @@@valueToAngle -->
<br/>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</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>
|