/usr/share/qt5/doc/qtquickcontrols2/qml-qtquick-controls2-pane.html is in qtquickcontrols2-5-doc-html 5.7.1-1.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickpane.cpp -->
<title>Pane QML Type | Qt Quick Controls 2 5.7</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
window.onload = function(){document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");};
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<table><tr>
<td >Qt 5.7</td><td ><a href="qtquickcontrols2-index.html">Qt Quick Controls 2</a></td><td ><a href="qtquick-controls2-qmlmodule.html">QML Types</a></td><td >Pane QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.7.1 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="#details">Detailed Description</a></li>
<li class="level2"><a href="#content-sizing">Content Sizing</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Pane QML Type</h1>
<span class="subtitle"></span>
<!-- $$$Pane-brief -->
<p>Provides a background matching with the application style and theme. <a href="#details">More...</a></p>
<!-- @@@Pane -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtQuick.Controls 2.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.7</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-qtquick-controls2-control.html">Control</a></p>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qml-qtquick-controls2-frame.html">Frame</a> and <a href="qml-qtquick-controls2-toolbar.html">ToolBar</a></p>
</td></tr></table></div><ul>
<li><a href="qml-qtquick-controls2-pane-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-controls2-pane.html#contentChildren-prop">contentChildren</a></b></b> : list<Item></li>
<li class="fn"><b><b><a href="qml-qtquick-controls2-pane.html#contentData-prop">contentData</a></b></b> : list<Object></li>
<li class="fn"><b><b><a href="qml-qtquick-controls2-pane.html#contentHeight-prop">contentHeight</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-controls2-pane.html#contentWidth-prop">contentWidth</a></b></b> : real</li>
</ul>
<!-- $$$Pane-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
</p>
<p>Pane provides a background color that matches with the application style and theme. Pane does not provide a layout of its own, but requires you to position its contents, for instance by creating a <a href="../qtquick/qml-qtquick-layouts-rowlayout.html">RowLayout</a> or a <a href="../qtquick/qml-qtquick-layouts-columnlayout.html">ColumnLayout</a>.</p>
<p>Items declared as children of a Pane are automatically parented to the Pane's <a href="qml-qtquick-controls2-control.html#contentItem-prop">contentItem</a>. Items created dynamically need to be explicitly parented to the contentItem.</p>
<a name="content-sizing"></a>
<h2 id="content-sizing">Content Sizing</h2>
<p>If only a single item is used within a Pane, it will resize to fit the implicit size of its contained item. This makes it particularly suitable for use together with layouts.</p>
<p class="centerAlign"><img src="images/qtquickcontrols2-pane.png" alt="" /></p><pre class="qml">
<span class="type"><a href="qml-qtquick-controls2-pane.html">Pane</a></span> {
<span class="type"><a href="../qtquick/qml-qtquick-layouts-columnlayout.html">ColumnLayout</a></span> {
<span class="name">anchors</span>.fill: <span class="name">parent</span>
<span class="type"><a href="qml-qtquick-controls2-checkbox.html">CheckBox</a></span> { <span class="name">text</span>: <span class="name">qsTr</span>(<span class="string">"E-mail"</span>) }
<span class="type"><a href="qml-qtquick-controls2-checkbox.html">CheckBox</a></span> { <span class="name">text</span>: <span class="name">qsTr</span>(<span class="string">"Calendar"</span>) }
<span class="type"><a href="qml-qtquick-controls2-checkbox.html">CheckBox</a></span> { <span class="name">text</span>: <span class="name">qsTr</span>(<span class="string">"Contacts"</span>) }
}
}
</pre>
<p>Sometimes there might be two items within the pane:</p>
<pre class="cpp">
Pane {
SwipeView {
<span class="comment">// ...</span>
}
PageIndicator {
anchors<span class="operator">.</span>horizontalCenter: parent<span class="operator">.</span>horizontalCenter
anchors<span class="operator">.</span>bottom: parent<span class="operator">.</span>bottom
}
}
</pre>
<p>In this case, Pane cannot calculate a sensible implicit size. Since we're anchoring the <a href="qml-qtquick-controls2-pageindicator.html">PageIndicator</a> over the <a href="qml-qtquick-controls2-swipeview.html">SwipeView</a>, we can simply set the content size to the view's implicit size:</p>
<pre class="cpp">
Pane {
contentWidth: view<span class="operator">.</span>implicitWidth
contentHeight: view<span class="operator">.</span>implicitHeight
SwipeView {
id: view
<span class="comment">// ...</span>
}
PageIndicator {
anchors<span class="operator">.</span>horizontalCenter: parent<span class="operator">.</span>horizontalCenter
anchors<span class="operator">.</span>bottom: parent<span class="operator">.</span>bottom
}
}
</pre>
<p><b>See also </b><a href="qtquickcontrols2-customize.html#customizing-pane">Customizing Pane</a> and <a href="qtquickcontrols2-containers.html">Container Controls</a>.</p>
<!-- @@@Pane -->
<h2>Property Documentation</h2>
<!-- $$$contentChildren -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contentChildren-prop">
<td class="tblQmlPropNode"><p>
<a name="contentChildren-prop"></a><span class="name">contentChildren</span> : <span class="type">list</span><<span class="type"><a href="../qtquick/qml-qtquick-item.html">Item</a></span>></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the list of content children.</p>
<p>The list contains all items that have been declared in QML as children of the pane.</p>
<p><b>Note: </b>Unlike <code>contentData</code>, <code>contentChildren</code> does not include non-visual QML objects.</p><p><b>See also </b><a href="../qtquick/qml-qtquick-item.html#children-prop">Item::children</a> and <a href="qml-qtquick-controls2-pane.html#contentData-prop">contentData</a>.</p>
</div></div><!-- @@@contentChildren -->
<br/>
<!-- $$$contentData -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contentData-prop">
<td class="tblQmlPropNode"><p>
<a name="contentData-prop"></a><span class="qmldefault">[default] </span><span class="name">contentData</span> : <span class="type">list</span><<span class="type">Object</span>></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the list of content data.</p>
<p>The list contains all objects that have been declared in QML as children of the pane.</p>
<p><b>Note: </b>Unlike <code>contentChildren</code>, <code>contentData</code> does include non-visual QML objects.</p><p><b>See also </b><a href="../qtquick/qml-qtquick-item.html#data-prop">Item::data</a> and <a href="qml-qtquick-controls2-pane.html#contentChildren-prop">contentChildren</a>.</p>
</div></div><!-- @@@contentData -->
<br/>
<!-- $$$contentHeight -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contentHeight-prop">
<td class="tblQmlPropNode"><p>
<a name="contentHeight-prop"></a><span class="name">contentHeight</span> : <span class="type">real</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the content height. It is used for calculating the total implicit height of the pane.</p>
<p>For more information, see <a href="qml-qtquick-controls2-pane.html#content-sizing">Content Sizing</a>.</p>
<p><b>See also </b><a href="qml-qtquick-controls2-pane.html#contentWidth-prop">contentWidth</a>.</p>
</div></div><!-- @@@contentHeight -->
<br/>
<!-- $$$contentWidth -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contentWidth-prop">
<td class="tblQmlPropNode"><p>
<a name="contentWidth-prop"></a><span class="name">contentWidth</span> : <span class="type">real</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the content width. It is used for calculating the total implicit width of the pane.</p>
<p>For more information, see <a href="qml-qtquick-controls2-pane.html#content-sizing">Content Sizing</a>.</p>
<p><b>See also </b><a href="qml-qtquick-controls2-pane.html#contentHeight-prop">contentHeight</a>.</p>
</div></div><!-- @@@contentWidth -->
<br/>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2016 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>
|