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
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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" />
<!-- qdeclarativelayoutitem.cpp -->
<title>Qt 4.8: QML LayoutItem Element</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="qdeclarativeelements.html">QML Elements</a></li>
<li>QML LayoutItem Element</li>
</ul>
</div>
</div>
<div class="content mainContent">
<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>
</ul>
</div>
<h1 class="title">QML LayoutItem Element</h1>
<span class="subtitle"></span>
<!-- $$$LayoutItem-brief -->
<p>The LayoutItem element allows declarative UI elements to be placed inside Qt's Graphics View layouts. <a href="#details">More...</a></p>
<!-- @@@LayoutItem -->
<p>This element was introduced in Qt 4.7.</p>
<ul>
<li><a href="qml-layoutitem-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-layoutitem.html#maximumSize-prop">maximumSize</a></b></b> : QSizeF</li>
<li class="fn"><b><b><a href="qml-layoutitem.html#minimumSize-prop">minimumSize</a></b></b> : QSizeF</li>
<li class="fn"><b><b><a href="qml-layoutitem.html#preferredSize-prop">preferredSize</a></b></b> : QSizeF</li>
</ul>
<!-- $$$LayoutItem-description -->
<a name="details"></a>
<h2>Detailed Description</h2>
<p>LayoutItem is a variant of <a href="qml-item.html">Item</a> with additional size hint properties. These properties provide the size hints necessary for items to work in conjunction with Qt <a href="graphicsview.html">Graphics View</a> layout classes such as <a href="qgraphicslinearlayout.html">QGraphicsLinearLayout</a> and <a href="qgraphicsgridlayout.html">QGraphicsGridLayout</a>. The Qt layout mechanisms will resize the LayoutItem as appropriate, taking its size hints into account, and you can propagate this to the other elements in your UI via anchors and bindings.</p>
<p>This is a <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> subclass, and its properties merely expose the <a href="qgraphicslayoutitem.html">QGraphicsLayoutItem</a> functionality to QML.</p>
<p>The <a href="declarative-cppextensions-qgraphicslayouts-layoutitem.html">LayoutItem example</a> demonstrates how a LayoutItem can be used within a <a href="graphicsview.html">Graphics View</a> scene.</p>
<!-- @@@LayoutItem -->
<h2>Property Documentation</h2>
<!-- $$$maximumSize -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="maximumSize-prop"></a><span class="name">maximumSize</span> : <span class="type"><a href="qsizef.html">QSizeF</a></span></p></td></tr></table></div><div class="qmldoc"><p>The maximumSize property can be set to specify the maximum desired size of this <a href="qml-layoutitem.html">LayoutItem</a></p>
</div></div><!-- @@@maximumSize -->
<br/>
<!-- $$$minimumSize -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="minimumSize-prop"></a><span class="name">minimumSize</span> : <span class="type"><a href="qsizef.html">QSizeF</a></span></p></td></tr></table></div><div class="qmldoc"><p>The minimumSize property can be set to specify the minimum desired size of this <a href="qml-layoutitem.html">LayoutItem</a></p>
</div></div><!-- @@@minimumSize -->
<br/>
<!-- $$$preferredSize -->
<div class="qmlitem"><div class="qmlproto"><table class="qmlname"><tr valign="top" class="odd"><td class="tblQmlPropNode"><p><a name="preferredSize-prop"></a><span class="name">preferredSize</span> : <span class="type"><a href="qsizef.html">QSizeF</a></span></p></td></tr></table></div><div class="qmldoc"><p>The preferredSize property can be set to specify the preferred size of this <a href="qml-layoutitem.html">LayoutItem</a></p>
</div></div><!-- @@@preferredSize -->
<br/>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
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.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|