aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickanchors/data/centerinRotation.qml
blob: 86d696bca25fcb771743a76bb7643f585304e3c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQuick 2.0

Rectangle {
    width: 200; height: 200
    Rectangle {
        objectName: "outer"
        rotation: 90
        width: 101; height: 101; color: "blue"
        anchors.centerIn: parent;
        anchors.alignWhenCentered: false

        Rectangle {
            objectName: "inner"
            width: 50; height: 50; color: "blue"
            anchors.centerIn: parent;
        }
    }
}