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. QML: ListView Flickable Item: Swiping/Flicking on the screen receives 'ContentX' value as 0 from Qt.
Forum Updated to NodeBB v4.3 + New Features

QML: ListView Flickable Item: Swiping/Flicking on the screen receives 'ContentX' value as 0 from Qt.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 784 Views 2 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.
  • R Offline
    R Offline
    Ron K
    wrote on last edited by Ron K
    #1

    Hey all,

    So I'm using Flickable QML type :https://doc.qt.io/qt-5/qml-qtquick-flickable.html to achieve swiping/flicking between the pages in my application.
    The swipe is only horizontal and so on flick I use 'ContentX' to start a NumberAnimation to change the pages.
    But on some occasions, the value of this 'ContentX' is always 0 and another property 'moving' is also received as false. Horizontal velocity is also 0.
    Since there's no change in the contentX value, the number animation doesn't starts and so the page seems to be not responding on certain swipes due to this.
    Though when this problem occurs, all other signals are well received.
    Please help for any references on how to debug or where the issue could be.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Ron K
      wrote on last edited by
      #2

      @SGaist , Do you have any idea here? Thanks.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        You should:

        • add the version of Qt you are using
        • the OS you are running your application on
        • a minimal compilable example that shows your issue

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        R 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          You should:

          • add the version of Qt you are using
          • the OS you are running your application on
          • a minimal compilable example that shows your issue
          R Offline
          R Offline
          Ron K
          wrote on last edited by Ron K
          #4

          Hi @SGaist

          • I'm using Qt5.6.3
          • running the application on Windows WINCE 7.

          Example :
          ListView {
          id: listView
          orientation: ListView.Horizontal
          snapMode: ListView.SnapOneItem
          clip: true
          }

          NumberAnimation {
          id: pageChangeAnimation
          target: listView
          property: "contentX"
          duration: 500
          easing.type: Easing.OutExpo
          }

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            That's quite an old version of Qt.

            Do you have an animation that shows what you are trying to achieve ? I am wondering whether you might be using the wrong tool.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 1 Reply Last reply
            0
            • SGaistS SGaist

              That's quite an old version of Qt.

              Do you have an animation that shows what you are trying to achieve ? I am wondering whether you might be using the wrong tool.

              R Offline
              R Offline
              Ron K
              wrote on last edited by
              #6

              @SGaist Hi, I'm trying to achieve something like this: https://youtu.be/FabJx0Bo1pg?t=226
              using the incorrect tool do you mean incorrect widget?

              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