aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick1/qdeclarativeanchors/data/centerin.qml
blob: d3bc8cb2bc832a0789852e47762a9ba90f4612f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import QtQuick 1.0

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