/usr/share/qt5/doc/qtquicklayouts/qml-qtquick-layouts-layout.html is in qtquickcontrols5-doc-html 5.3.2-2.
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 | <?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" />
<!-- qquicklayout.cpp -->
<title>Layout QML Type | QtQuickLayouts 5.3</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.3</li>
<li><a href="qtquicklayouts-index.html">Qt Quick Layouts</a></li>
<li>Layout QML Type</li>
<li id="buildversion">
Qt 5.3.2 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">Attached Properties</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">Layout QML Type</h1>
<span class="subtitle"></span>
<!-- $$$Layout-brief -->
<p>Provides attached properties for items pushed onto a <a href="qml-qtquick-layouts-gridlayout.html">GridLayout</a>, <a href="qml-qtquick-layouts-rowlayout.html">RowLayout</a> or <a href="qml-qtquick-layouts-columnlayout.html">ColumnLayout</a>. <a href="#details">More...</a></p>
<!-- @@@Layout -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> </b><tt>import QtQuick.Layouts 1.1</tt></td></tr></table><ul>
<li><a href="qml-qtquick-layouts-layout-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="attached-properties"></a>
<h2>Attached Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#alignment-prop">alignment</a></b></b> : Qt.Alignment</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#column-prop">column</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#columnSpan-prop">columnSpan</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#fillHeight-prop">fillHeight</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#fillWidth-prop">fillWidth</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#maximumHeight-prop">maximumHeight</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#maximumWidth-prop">maximumWidth</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#minimumHeight-prop">minimumHeight</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#minimumWidth-prop">minimumWidth</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#preferredHeight-prop">preferredHeight</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#preferredWidth-prop">preferredWidth</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#row-prop">row</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtquick-layouts-layout.html#rowSpan-prop">rowSpan</a></b></b> : int</li>
</ul>
<!-- $$$Layout-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>An object of type Layout is attached to children of the layout to provide layout specific information about the item. The properties of the attached object influences how the layout will arrange the items.</p>
<p>For instance, you can specify <a href="qml-qtquick-layouts-layout.html#minimumWidth-prop">minimumWidth</a>, <a href="qml-qtquick-layouts-layout.html#preferredWidth-prop">preferredWidth</a>, and <a href="qml-qtquick-layouts-layout.html#maximumWidth-prop">maximumWidth</a> if the default values are not satisfactory.</p>
<p>When a layout is resized, items may grow or shrink. Due to this, items have a <a href="qml-qtquick-layouts-layout.html#minimumWidth-prop">minimum size</a>, <a href="qml-qtquick-layouts-layout.html#preferredWidth-prop">preferred size</a> and a <a href="qml-qtquick-layouts-layout.html#maximumWidth-prop">maximum size</a>.</p>
<p>If minimum size have not been explicitly specified on an item, the size is set to <tt>0</tt>. If maximum size have not been explicitly specified on an item, the size is set to <tt>Number.POSITIVE_INFINITY</tt>.</p>
<p>For layouts, the implicit minimum and maximum size depends on the content of the layouts.</p>
<p>The <a href="qml-qtquick-layouts-layout.html#fillWidth-prop">fillWidth</a> and <a href="qml-qtquick-layouts-layout.html#fillHeight-prop">fillHeight</a> properties can either be <tt>true</tt> or <tt>false</tt>. If it is <tt>false</tt>, the item's size will be fixed to its preferred size. Otherwise, it will grow or shrink between its minimum and maximum size as the layout is resized.</p>
<p><b>Note: </b>It is not recommended to have bindings to the x, y, width, or height properties of items in a layout, since this would conflict with the goal of the Layout, and also cause binding loops.</p><p><b>See also </b><a href="qml-qtquick-layouts-gridlayout.html">GridLayout</a>, <a href="qml-qtquick-layouts-rowlayout.html">RowLayout</a>, and <a href="qml-qtquick-layouts-columnlayout.html">ColumnLayout</a>.</p>
<!-- @@@Layout -->
<h2>Attached Property Documentation</h2>
<!-- $$$alignment -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="alignment-prop"></a><span class="name">.alignment</span> : <span class="type"><a href="../qtqml/qml-qtqml-qt.html">Qt</a></span>.<span class="type">Alignment</span></p></td></tr></table></div><div class="qmldoc"><p>This property allows you to specify the alignment of an item within the cell(s) it occupies.</p>
<p>The default value is <tt>0</tt>, which means it will be <tt>Qt.AlignVCenter | Qt.AlignLeft</tt></p>
<p>A valid alignment is a combination of the following flags:</p>
<ul>
<li>Qt::AlignLeft</li>
<li>Qt::AlignHCenter</li>
<li>Qt::AlignRight</li>
<li>Qt::AlignTop</li>
<li>Qt::AlignVCenter</li>
<li>Qt::AlignBottom</li>
<li>Qt::AlignBaseline</li>
</ul>
</div></div><!-- @@@alignment -->
<br/>
<!-- $$$column -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="column-prop"></a><span class="name">.column</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property allows you to specify the column position of an item in a <a href="qml-qtquick-layouts-gridlayout.html">GridLayout</a>.</p>
<p>If both <a href="qml-qtquick-layouts-layout.html#row-prop">row</a> and this property are not set, it is up to the layout to assign a cell to the item.</p>
<p>The default value is <tt>0</tt>.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#row-prop">row</a> and <a href="qml-qtquick-layouts-layout.html#columnSpan-prop">columnSpan</a>.</p>
</div></div><!-- @@@column -->
<br/>
<!-- $$$columnSpan -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="columnSpan-prop"></a><span class="name">.columnSpan</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property allows you to specify the column span of an item in a <a href="qml-qtquick-layouts-gridlayout.html">GridLayout</a>.</p>
<p>The default value is <tt>1</tt>.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#rowSpan-prop">rowSpan</a> and <a href="qml-qtquick-layouts-layout.html#column-prop">column</a>.</p>
</div></div><!-- @@@columnSpan -->
<br/>
<!-- $$$fillHeight -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="fillHeight-prop"></a><span class="name">.fillHeight</span> : <span class="type"><a href="../qtqml/qml-bool.html">bool</a></span></p></td></tr></table></div><div class="qmldoc"><p>If this property is <tt>true</tt>, the item will be as tall as possible while respecting the given constraints. If the property is <tt>false</tt>, the item will have a fixed height set to the preferred height. The default is <tt>false</tt>, except for layouts themselves, which default to <tt>true</tt>.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#fillWidth-prop">fillWidth</a>.</p>
</div></div><!-- @@@fillHeight -->
<br/>
<!-- $$$fillWidth -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="fillWidth-prop"></a><span class="name">.fillWidth</span> : <span class="type"><a href="../qtqml/qml-bool.html">bool</a></span></p></td></tr></table></div><div class="qmldoc"><p>If this property is <tt>true</tt>, the item will be as wide as possible while respecting the given constraints. If the property is <tt>false</tt>, the item will have a fixed width set to the preferred width. The default is <tt>false</tt>, except for layouts themselves, which default to <tt>true</tt>.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#fillHeight-prop">fillHeight</a>.</p>
</div></div><!-- @@@fillWidth -->
<br/>
<!-- $$$maximumHeight -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="maximumHeight-prop"></a><span class="name">.maximumHeight</span> : <span class="type"><a href="../qtqml/qml-real.html">real</a></span></p></td></tr></table></div><div class="qmldoc"><p>The default value is the items implicit maximum height.</p>
<p>If the item is a layout, the implicit maximum height will be the maximum height the layout can have without any of its items grow beyond their maximum height. The implicit maximum height for any other item is <tt>Number.POSITIVE_INFINITY</tt>.</p>
<p>Setting this value to -1 will reset the height back to its implicit maximum height.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#minimumHeight-prop">minimumHeight</a> and <a href="qml-qtquick-layouts-layout.html#preferredHeight-prop">preferredHeight</a>.</p>
</div></div><!-- @@@maximumHeight -->
<br/>
<!-- $$$maximumWidth -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="maximumWidth-prop"></a><span class="name">.maximumWidth</span> : <span class="type"><a href="../qtqml/qml-real.html">real</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the maximum width of an item in a layout. The default value is the items implicit maximum width.</p>
<p>If the item is a layout, the implicit maximum width will be the maximum width the layout can have without any of its items grow beyond their maximum width. The implicit maximum width for any other item is <tt>Number.POSITIVE_INFINITY</tt>.</p>
<p>Setting this value to -1 will reset the width back to its implicit maximum width.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#minimumWidth-prop">minimumWidth</a> and <a href="qml-qtquick-layouts-layout.html#preferredWidth-prop">preferredWidth</a>.</p>
</div></div><!-- @@@maximumWidth -->
<br/>
<!-- $$$minimumHeight -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="minimumHeight-prop"></a><span class="name">.minimumHeight</span> : <span class="type"><a href="../qtqml/qml-real.html">real</a></span></p></td></tr></table></div><div class="qmldoc"><p>The default value is the items implicit minimum height.</p>
<p>If the item is a layout, the implicit minimum height will be the minimum height the layout can have without any of its items shrink beyond their minimum height. The implicit minimum height for any other item is <tt>0</tt>.</p>
<p>Setting this value to -1 will reset the height back to its implicit minimum height.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#preferredHeight-prop">preferredHeight</a> and <a href="qml-qtquick-layouts-layout.html#maximumHeight-prop">maximumHeight</a>.</p>
</div></div><!-- @@@minimumHeight -->
<br/>
<!-- $$$minimumWidth -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="minimumWidth-prop"></a><span class="name">.minimumWidth</span> : <span class="type"><a href="../qtqml/qml-real.html">real</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the maximum width of an item in a layout. The default value is the items implicit minimum width.</p>
<p>If the item is a layout, the implicit minimum width will be the minimum width the layout can have without any of its items shrink beyond their minimum width. The implicit minimum width for any other item is <tt>0</tt>.</p>
<p>Setting this value to -1 will reset the width back to its implicit minimum width.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#preferredWidth-prop">preferredWidth</a> and <a href="qml-qtquick-layouts-layout.html#maximumWidth-prop">maximumWidth</a>.</p>
</div></div><!-- @@@minimumWidth -->
<br/>
<!-- $$$preferredHeight -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="preferredHeight-prop"></a><span class="name">.preferredHeight</span> : <span class="type"><a href="../qtqml/qml-real.html">real</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the preferred height of an item in a layout. If the preferred height is -1 it will be ignored, and the layout will use <a href="../qtquick/qml-qtquick-item.html#implicitHeight-prop">implicitHeight</a> instead. The default is <tt>-1</tt>.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#minimumHeight-prop">minimumHeight</a> and <a href="qml-qtquick-layouts-layout.html#maximumHeight-prop">maximumHeight</a>.</p>
</div></div><!-- @@@preferredHeight -->
<br/>
<!-- $$$preferredWidth -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="preferredWidth-prop"></a><span class="name">.preferredWidth</span> : <span class="type"><a href="../qtqml/qml-real.html">real</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property holds the preferred width of an item in a layout. If the preferred width is -1 it will be ignored, and the layout will use <a href="../qtquick/qml-qtquick-item.html#implicitWidth-prop">implicitWidth</a> instead. The default is <tt>-1</tt>.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#minimumWidth-prop">minimumWidth</a> and <a href="qml-qtquick-layouts-layout.html#maximumWidth-prop">maximumWidth</a>.</p>
</div></div><!-- @@@preferredWidth -->
<br/>
<!-- $$$row -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="row-prop"></a><span class="name">.row</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property allows you to specify the row position of an item in a <a href="qml-qtquick-layouts-gridlayout.html">GridLayout</a>.</p>
<p>If both <a href="qml-qtquick-layouts-layout.html#column-prop">column</a> and this property are not set, it is up to the layout to assign a cell to the item.</p>
<p>The default value is <tt>0</tt>.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#column-prop">column</a> and <a href="qml-qtquick-layouts-layout.html#rowSpan-prop">rowSpan</a>.</p>
</div></div><!-- @@@row -->
<br/>
<!-- $$$rowSpan -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="rowSpan-prop"></a><span class="name">.rowSpan</span> : <span class="type"><a href="../qtqml/qml-int.html">int</a></span></p></td></tr></table></div><div class="qmldoc"><p>This property allows you to specify the row span of an item in a <a href="qml-qtquick-layouts-gridlayout.html">GridLayout</a>.</p>
<p>The default value is <tt>1</tt>.</p>
<p><b>See also </b><a href="qml-qtquick-layouts-layout.html#columnSpan-prop">columnSpan</a> and <a href="qml-qtquick-layouts-layout.html#row-prop">row</a>.</p>
</div></div><!-- @@@rowSpan -->
<br/>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2014 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>
|