<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qquickscrollindicator.cpp --> <title>ScrollIndicator QML Type | Qt Labs Controls 5.6</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.6</td><td ><a href="qtlabscontrols-index.html">Qt Labs Controls</a></td><td ><a href="qt-labs-controls-qmlmodule.html">QML Types</a></td><td >ScrollIndicator QML Type</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.6.2 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="#attached-properties">Attached Properties</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">ScrollIndicator QML Type</h1> <span class="subtitle"></span> <!-- $$$ScrollIndicator-brief --> <p>A non-interactive scroll indicator control. <a href="#details">More...</a></p> <!-- @@@ScrollIndicator --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import Qt.labs.controls 1.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-qt-labs-controls-control.html">Control</a></p> </td></tr></table></div><ul> <li><a href="qml-qt-labs-controls-scrollindicator-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-qt-labs-controls-scrollindicator.html#active-prop">active</a></b></b> : bool</li> <li class="fn"><b><b><a href="qml-qt-labs-controls-scrollindicator.html#indicator-prop">indicator</a></b></b> : Item</li> <li class="fn"><b><b><a href="qml-qt-labs-controls-scrollindicator.html#orientation-prop">orientation</a></b></b> : enumeration</li> <li class="fn"><b><b><a href="qml-qt-labs-controls-scrollindicator.html#position-prop">position</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qt-labs-controls-scrollindicator.html#size-prop">size</a></b></b> : real</li> </ul> <a name="attached-properties"></a> <h2 id="attached-properties">Attached Properties</h2> <ul> <li class="fn"><b><b><a href="qml-qt-labs-controls-scrollindicator.html#horizontal-attached-prop">horizontal</a></b></b> : ScrollIndicator</li> <li class="fn"><b><b><a href="qml-qt-labs-controls-scrollindicator.html#vertical-attached-prop">vertical</a></b></b> : ScrollIndicator</li> </ul> <!-- $$$ScrollIndicator-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> </p> <p><a href="qml-qt-labs-controls-scrollindicator.html">ScrollIndicator</a> is a non-interactive indicator that indicates the current scroll position. A scroll indicator can be either <a href="qml-qt-labs-controls-scrollindicator.html#vertical-attached-prop">vertical</a> or <a href="qml-qt-labs-controls-scrollindicator.html#horizontal-attached-prop">horizontal</a>, and can be attached to any Flickable, such as ListView and GridView.</p> <p class="centerAlign"><img src="images/qtlabscontrols-scrollindicator.png" alt="" /></p><pre class="cpp"> Flickable { <span class="comment">// ...</span> ScrollIndicator<span class="operator">.</span>vertical: ScrollIndicator { } } </pre> <p><b>Note: </b>When <a href="qml-qt-labs-controls-scrollindicator.html">ScrollIndicator</a> is attached <a href="qml-qt-labs-controls-scrollindicator.html#vertical-attached-prop">vertically</a> or <a href="qml-qt-labs-controls-scrollindicator.html#horizontal-attached-prop">horizontally</a> to a Flickable, its geometry and the following properties are automatically set and updated as appropriate:</p><ul> <li><a href="qml-qt-labs-controls-scrollindicator.html#orientation-prop">orientation</a></li> <li><a href="qml-qt-labs-controls-scrollindicator.html#position-prop">position</a></li> <li><a href="qml-qt-labs-controls-scrollindicator.html#size-prop">size</a></li> <li><a href="qml-qt-labs-controls-scrollindicator.html#active-prop">active</a></li> </ul> <p><b>Note: </b><i>Types in the Qt.labs module are not guaranteed to remain compatible in future versions.</i></p><p><b>See also </b><a href="qml-qt-labs-controls-scrollbar.html">ScrollBar</a>, <a href="qtlabscontrols-customize.html#customizing-scrollindicator">Customizing ScrollIndicator</a>, and <a href="qtlabscontrols-indicators.html">Indicator Controls</a>.</p> <!-- @@@ScrollIndicator --> <h2>Property Documentation</h2> <!-- $$$active --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="active-prop"> <td class="tblQmlPropNode"><p> <a name="active-prop"></a><span class="name">active</span> : <span class="type">bool</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property holds whether the indicator is active, that is, when the attached Flickable is moving.</p> </div></div><!-- @@@active --> <br/> <!-- $$$indicator --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="indicator-prop"> <td class="tblQmlPropNode"><p> <a name="indicator-prop"></a><span class="name">indicator</span> : <span class="type">Item</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property holds the indicator item.</p> <p><b>See also </b><a href="qtlabscontrols-customize.html#customizing-scrollindicator">Customizing ScrollIndicator</a>.</p> </div></div><!-- @@@indicator --> <br/> <!-- $$$orientation --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="orientation-prop"> <td class="tblQmlPropNode"><p> <a name="orientation-prop"></a><span class="name">orientation</span> : <span class="type">enumeration</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property holds the orientation of the indicator.</p> <p>Possible values:</p> <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><code>Qt.Horizontal</code></td><td class="topAlign">Horizontal</td></tr> <tr><td class="topAlign"><code>Qt.Vertical</code></td><td class="topAlign">Vertical (default)</td></tr> </table></div> </div></div><!-- @@@orientation --> <br/> <!-- $$$position --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="position-prop"> <td class="tblQmlPropNode"><p> <a name="position-prop"></a><span class="name">position</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property holds the position of the indicator, scaled to <code>0.0 - 1.0</code>.</p> <p><b>See also </b>Flickable::visibleArea.</p> </div></div><!-- @@@position --> <br/> <!-- $$$size --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="size-prop"> <td class="tblQmlPropNode"><p> <a name="size-prop"></a><span class="name">size</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property holds the size of the indicator, scaled to <code>0.0 - 1.0</code>.</p> <p><b>See also </b>Flickable::visibleArea.</p> </div></div><!-- @@@size --> <br/> <h2>Attached Property Documentation</h2> <!-- $$$horizontal --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="horizontal-attached-prop"> <td class="tblQmlPropNode"><p> <a name="horizontal-attached-prop"></a><span class="name">ScrollIndicator.horizontal</span> : <span class="type"><a href="qml-qt-labs-controls-scrollindicator.html">ScrollIndicator</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property attaches a horizontal scroll indicator to a Flickable.</p> <pre class="cpp"> Flickable { contentWidth: <span class="number">2000</span> ScrollIndicator<span class="operator">.</span>horizontal: ScrollIndicator { } } </pre> </div></div><!-- @@@horizontal --> <br/> <!-- $$$vertical --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="vertical-attached-prop"> <td class="tblQmlPropNode"><p> <a name="vertical-attached-prop"></a><span class="name">ScrollIndicator.vertical</span> : <span class="type"><a href="qml-qt-labs-controls-scrollindicator.html">ScrollIndicator</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This property attaches a vertical scroll indicator to a Flickable.</p> <pre class="cpp"> Flickable { contentHeight: <span class="number">2000</span> ScrollIndicator<span class="operator">.</span>vertical: ScrollIndicator { } } </pre> </div></div><!-- @@@vertical --> <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>