Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-release > by-pkgid > 886c2ed147b4d6954d2d9fb23759f3ff > files > 237

qtquickcontrols25-doc-5.6.2-1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickscrollbar.cpp -->
  <title>ScrollBar 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 >ScrollBar 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">ScrollBar QML Type</h1>
<span class="subtitle"></span>
<!-- $$$ScrollBar-brief -->
<p>An interactive scroll bar control. <a href="#details">More...</a></p>
<!-- @@@ScrollBar -->
<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-scrollbar-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-scrollbar.html#active-prop">active</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-scrollbar.html#handle-prop">handle</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-scrollbar.html#orientation-prop">orientation</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-scrollbar.html#position-prop">position</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-scrollbar.html#pressed-prop">pressed</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-scrollbar.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-scrollbar.html#horizontal-attached-prop">horizontal</a></b></b> : ScrollBar</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-scrollbar.html#vertical-attached-prop">vertical</a></b></b> : ScrollBar</li>
</ul>
<!-- $$$ScrollBar-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
</p>
<p><a href="qml-qt-labs-controls-scrollbar.html">ScrollBar</a> is an interactive bar that can be used to scroll to a specific position. A scroll bar can be either <a href="qml-qt-labs-controls-scrollbar.html#vertical-attached-prop">vertical</a> or <a href="qml-qt-labs-controls-scrollbar.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-scrollbar.png" alt="" /></p><pre class="cpp">

  Flickable {
      <span class="comment">// ...</span>
      ScrollBar<span class="operator">.</span>vertical: ScrollBar { }
  }

</pre>
<p><b>Note: </b>When <a href="qml-qt-labs-controls-scrollbar.html">ScrollBar</a> is attached <a href="qml-qt-labs-controls-scrollbar.html#vertical-attached-prop">vertically</a> or <a href="qml-qt-labs-controls-scrollbar.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-scrollbar.html#orientation-prop">orientation</a></li>
<li><a href="qml-qt-labs-controls-scrollbar.html#position-prop">position</a></li>
<li><a href="qml-qt-labs-controls-scrollbar.html#size-prop">size</a></li>
<li><a href="qml-qt-labs-controls-scrollbar.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-scrollindicator.html">ScrollIndicator</a>, <a href="qtlabscontrols-customize.html#customizing-scrollbar">Customizing ScrollBar</a>, and <a href="qtlabscontrols-indicators.html">Indicator Controls</a>.</p>
<!-- @@@ScrollBar -->
<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 scroll bar is active ie. when its <a href="qml-qt-labs-controls-scrollbar.html#pressed-prop">pressed</a> or the attached Flickable is moving.</p>
</div></div><!-- @@@active -->
<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">Item</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the handle item.</p>
<p><b>See also </b><a href="qtlabscontrols-customize.html#customizing-scrollbar">Customizing ScrollBar</a>.</p>
</div></div><!-- @@@handle -->
<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 scroll bar.</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 scroll bar, scaled to <code>0.0 - 1.0</code>.</p>
<p><b>See also </b>Flickable::visibleArea.</p>
</div></div><!-- @@@position -->
<br/>
<!-- $$$pressed -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pressed-prop">
<td class="tblQmlPropNode"><p>
<a name="pressed-prop"></a><span class="name">pressed</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds whether the scroll bar is pressed.</p>
</div></div><!-- @@@pressed -->
<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 scroll bar, 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">ScrollBar.horizontal</span> : <span class="type"><a href="qml-qt-labs-controls-scrollbar.html">ScrollBar</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property attaches a horizontal scroll bar to a Flickable.</p>
<pre class="cpp">

  Flickable {
      contentWidth: <span class="number">2000</span>
      ScrollBar<span class="operator">.</span>horizontal: ScrollBar { }
  }

</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">ScrollBar.vertical</span> : <span class="type"><a href="qml-qt-labs-controls-scrollbar.html">ScrollBar</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property attaches a vertical scroll bar to a Flickable.</p>
<pre class="cpp">

  Flickable {
      contentHeight: <span class="number">2000</span>
      ScrollBar<span class="operator">.</span>vertical: ScrollBar { }
  }

</pre>
</div></div><!-- @@@vertical -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>