anchors.fill: parent

would probably be more elegant in this case?