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

drag.x and drag.y need clearer description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.6
    • None

      Link to the property to be fixed: https://doc.qt.io/qt-6.5/qml-qtquick-droparea.html#drag.x-prop

      The linked property's description says:

      These properties hold the coordinates of the last drag event. 

      But it's not clear "what coordinate" these x and y reside, in other words, where their origin is; is it the top left corner of the entire screen? or is it the top left corner of the DropArea?

      In reality, these x and y's origin(0, 0) is the top left corner of DropArea and this should be clearly stated. Otherwise it may confuse the readers on how they can use this data.

      The project you can open in QDS to see the value of drag.x and drag.y is attached. You can drag the white rectangle from the red area to the green one and see the values in the Application Output.

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

            srutledg Shawn Rutledge
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes