Skip to content
QtWS25 Call for Papers
  • 0 Votes
    3 Posts
    2k Views
    D

    Yes, it's working now.

    Flickable { ... clip: true boundsBehavior: Flickable.StopAtBounds ... }

    Thanks.

  • 1 Votes
    4 Posts
    6k Views
    johngodJ

    First you should set the property interactive to false (true by default).
    Then you will have to force the flickable to move (when pressing a button, or when moving the mouse wheel event, for example) by incrementing/decrementing the contentX / contentY properties.
    Hope it helps.

  • 0 Votes
    4 Posts
    4k Views
    CharbyC

    @lqsa In think you could use a Behavior on ContentY.

    Would this give you want ?

    import QtQuick 2.0 import QtQuick.Window 2.0 Window{ visible:true; Flickable { width: 100; height: 150 contentWidth: 300; contentHeight: 300 Behavior on contentY{ NumberAnimation { duration: 1000 easing.type: Easing.OutBounce } } Timer{ running: true; interval: 1500 repeat: true onTriggered:{ if (parent.contentY==0) parent.contentY=300; else parent.contentY=0; } } Rectangle { width: 300; height: 300 gradient: Gradient { GradientStop { position: 0.0; color: "lightsteelblue" } GradientStop { position: 1.0; color: "blue" } } } } }