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

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