Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-256

Incorrect touch coordinates with static screen rotation feature when explicit width / height is given for root item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • Qt for MCUs 2.7
    • Qt for MCUs 2.7
    • Platform Team
    • None

    Description

       

      The following example reproduces it, when MCU.Config.displayRotationAngle is set to 90, 180, or 270.

      Rectangle {
          width: 200
          height: 200
          MouseArea {
              id: touch
              anchors.fill: parent
              Rectangle {
                  id: touchRectangle
                  width: 20
                  height: 20
                  radius: 10
                  color: "black"
                  visible: false
              }
              onPressed: {
                  touchRectangle.x = mouseX - touchRectangle.width / 2;
                  touchRectangle.y = mouseY - touchRectangle.height / 2;
                  touchRectangle.visible = true
              }
              Text {
                  text: "x: " + touch.mouseX + ", y: " + touch.mouseY
              }
          }
      }
      

       

      Attachments

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

        Activity

          People

            srodal Samuel Rødal
            srodal Samuel Rødal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes