Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 PinchArea + Flickable not working well

Qt5 PinchArea + Flickable not working well

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.8k Views
  • 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.
  • M Offline
    M Offline
    mrAlmond
    wrote on last edited by
    #1

    Hi everyone,

    I need to create a sort of qml map element in which a large image must be zoomed (with pinch gesture) and moved with the flickable.
    As start point I used the flickresize.qml demo:
    http://qt-project.org/doc/qt-5.0/qtquick/touchinteraction-pincharea-flickresize-qml.html

    In my case I'm using Qt 5.1.0 in Windows 7 with a capacitive multi touch monitor.

    This demo doesn't work as expected...when it starts the pan feature is ok...but when a pinch gesture is performed the subsequential pan gestures makes the image jump apparently random of some pixels in all directions.
    To "reset" the situation, after the pinch, I must press touch two times the image and then the flickable seems to start working well again. This situation changes randomly with similar behaviours.

    Another test case is to perform a pinch-to-zoom, release both the fingers and then try to pinch zoom in another area...the result is not good at all.

    I've tried also with qt 5.1.1 but nothing changes.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrAlmond
      wrote on last edited by
      #2

      Please can someone confirm me that what I'm seeing happens to everyone..or it's just me?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrAlmond
        wrote on last edited by
        #3

        Up...I think that the usage of a flickable + pincharea for a complete pinch-to-zoom and pan map is almost mandatory. At the moment also the flickresize example fails...is there someone who could help me on this?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tonypolichroniadis
          wrote on last edited by
          #4

          I'm having the same problem on Android in Qt 5.2. The first drag after pinching always results in a jump in position.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tonypolichroniadis
            wrote on last edited by
            #5

            I've figured out a workaround:

            onPinchStarted: flick.interactive = false

            onPinchFinished: flick.interactive = true

            Seems to make my pincharea + flickable work much better.

            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