Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81944

QQuickMultiPointTouchArea touch x,y properties are updated individually

    XMLWordPrintable

Details

    • ee95f0e6830a504574ef5fa54b44a11b13d5a8ae (qt/qtdeclarative/5.15)

    Description

      QQuickMultiPointTouchArea updates the x and y properties in a naive way.

      {{ dtp->setX(e->localPos().x());}}
      {{ dtp->setY(e->localPos().y());}}

      However when feeding these touch points into a canvas for drawing lines, what comes out are stair steps rather than lines because X and Y are reacted to separately.

      The property changed updates should only be emitted after X and Y have been updated so that when the value is subsequently used, the canvas will draw a more appropriate motion. 

       

       

      Attachments

        Activity

          People

            srutledg Shawn Rutledge
            jasonapk Jason Hihn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: