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

Anchor layout does not take item transforms into account

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.7.1
    • Quick: Layouts
    • None

    Description

      Tapping on the rectangles created by the code below, I would expect the blue rectangle to stay aligned at the top left of the red rectangle:

      Rectangle {
          width: 640; height: 480;
      
          Rectangle {
              id: redRect
              color: "red"
              width: 100; height: 100;
              anchors.centerIn: parent
          }
      
          Rectangle {
              color: "blue"
              width: 50; height: 25;
              anchors.bottom: redRect.top
              anchors.left: redRect.left
          }
      
          MouseArea {
              anchors.fill: parent
              onClicked: redRect.scale = redRect.scale==1 ? 2 : 1
          }
      }
      

      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
            mathiasm Mathias Malmqvist
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes