import QtQuick 2.0 Rectangle { width: parent.width; height: parent.height color: "black" Rectangle { width: 200; height: 200 //x: 100; y: 100 anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter color: "white" } Text { id: helloText text: "Hello world!" anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter font.pointSize: 24; font.bold: true color: "red" } Image { id: img source: "https://gist.githubusercontent.com/ds604/f441a76bcdab0e01bec4764b335a3f7d/raw/f52fb6d2144c5f88476b2c13e7d1ccb8e5a3a7f7/dinosaur128.png" x: 100; y: 100 } }