summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeanchors/data/centerin.qml
blob: e248cc33a28015cfcaedd1d6f0ee7fdba17219e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Qt 4.7

Rectangle {
    width: 200; height: 200
    Rectangle {
        objectName: "centered"
        width: 50; height: 50; color: "blue"
        anchors.centerIn: parent;
        anchors.verticalCenterOffset: 30
        anchors.horizontalCenterOffset: 10
    }
}