Rect { color: "white" width: 150 height: 150 Switch { anchors.centeredIn: parent } }