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

MouseArea: positioning mode

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.11.2
    • Quick: Controls 2
    • None

    Description

      Currently there is no easy way to get the client or screen position of the mouse with qml. Sometimes, e.g when adjusting the position of another Window or Tooltip, it is necessary to get the position relative to window or screen origin.

      To get the client or screen position right now, you have to manually walk the scene graph and add the relative position of each Item.

      I propose a new property for MouseArea, called "posititioning" or similar, with the enum values:
      MouseArea.ItemPosition, MouseArea.WindowPosition and MouseArea.ScreenPosition which defaults to the MouseArea.ItemPosition to allow adjusting the origin used for the properties mouseX, mouseY and position.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mr.greywater mr.greywater
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes