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

Mistake in the 3rd example of DragHandler QML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.13.0 Alpha 1
    • Fix Version/s: 5.13.0 Beta 1
    • Component/s: Documentation
    • Labels:
      None

      Description

      There is a mistake in the third example of DragHandler QML Type. centroid has a property position, but doesn't have property called centroid.

      Incorrect

      text: handler.centroid.centroid.x.toFixed(1) + "," + handler.centroid.position.y.toFixed(1)
      

      Correct

      text: handler.centroid.position.x.toFixed(1) + "," + handler.centroid.position.y.toFixed(1)
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            treinio Topi Reiniö
            Reporter:
            henning Henning Gründl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes