Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to do soft stop animation in pathView in QML
Forum Updated to NodeBB v4.3 + New Features

How to do soft stop animation in pathView in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 676 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aditya Singh
    wrote on last edited by p3c0
    #1

    Hi

    i am using pathView (pathQuad)to create a list in our screen,
    there is a requirement that when ever we reached at the end of the list we need to do the soft stop animation in our list.

    i.e once we reach at the end of the list, to indicate that we are at end of the list we do a rubber band kind of effect in list.

    please suggest me how to achieve this?

    sample code:-

    Component
        {
            id:curvedListDelegate
            Text
            {
                       text:name
                       color:"white"
             }
                
        }
     PathView{
            id:view
            objectName: "CurvedListView"
            anchors.fill: parent
            preferredHighlightBegin: 0.5
            preferredHighlightEnd: 0.5
            highlightRangeMode: PathView.StrictlyEnforceRange
            focus: true
            delegate: curvedListDelegate
            pathItemCount: nRows
            path:Path {
                startX: listLeftPadding; startY: pathViewStartY
                PathQuad { x: listLeftPadding; y: pathViewY; controlX: listLeftPadding-60; controlY: pathViewStartY + (pathViewY-pathViewStartY)/2 }
            }
    
            onCurrentIndexChanged: {
                console.log("view current index changed, index == ",view.currentIndex);
                signalButtonAction(view.currentIndex);
            }
    }
    

    Regards
    Aditya SIngh

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved