aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickanchors/data/centerin.qml
blob: e5f64f1e4722bc0996aae29eef4057affbdf4b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import QtQuick 2.0

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