ScrollIndicator

A native styled scroll indicator for usage with AppFlickable. More...

Import Statement: import Felgo 3.0
Since: Felgo 2.18.4
Inherits:

Rectangle

Properties

Detailed Description

Allows to add a vertical scroll indicator for any given AppFlickable.

Example Usage

AppFlickable with ScrollIndicator

 import QtQuick 2.5
 import Felgo 3.0

 App {
   NavigationStack {

     Page {
       title: "ScrollIndicator Example"

       AppFlickable {
         id: appFlickable
         anchors.fill: parent
         contentHeight: content.height

         Column {
           id: content
           width: parent.width

           Repeater {
             model: 50
             AppText {
               width: content.width
               height: dp(50)
               text: "Text Item #"+index
               horizontalAlignment: Text.AlignHCenter
             }
           }
         }

       }

       ScrollIndicator {
         flickable: appFlickable
       }
     } // Page

   }
 }

More Scrolling Examples

See the guide Use ScrollViews and ListViews in Your App for different examples of scrollable views, like a list view.

Property Documentation

flickable : Flickable

Set this property to the target AppFlickable for the scroll indicator. The indicator position then reflects the current scroll position of the target.


minHeight : real

The minimum height of the scroll indicator. Matches platform-specific values by default.


verticalOffset : real

The vertical offset to the top and bottom. By default the scroll indicator uses an offest of 2dp.


Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support