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. PathView with gesture [QML]
Forum Updated to NodeBB v4.3 + New Features

PathView with gesture [QML]

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 4 Posters 1.3k 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.
  • R Offline
    R Offline
    roigallego
    wrote on last edited by
    #1

    Hello

    I'm working with QtQuick 2.2, and I have a problem. I want to program a PathView that receive touch events:

    swipe left/right: the pathview scroll in this direction
    swipe down: the pathview is hidden
    swipe up: the pathview is showed

    With the pathview swipe left/right works correctly. How can i program swipe up and down?

    I tried with MouseArea inside PathView, and properties accepted and propagateComposedEvents, but with this I can propagate press and release events, but then MouseArea can't process it. I would like propagate press and release events, and process it in the MouseArea and PathView

    Any solution?

    thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      archqt
      wrote on last edited by
      #2

      Hi,
      Can you send some code please else won't be easy to help you. Thanks
      Sincerely

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SherifOmran
        wrote on last edited by
        #3

        you should use gesturearea instead of mousearea and use onswipe

        ODБOïO 1 Reply Last reply
        0
        • S SherifOmran

          you should use gesturearea instead of mousearea and use onswipe

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by ODБOï
          #4

          @SherifOmran +1 for quickest answer ever

          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