import QtQuick 2.0 import QtQuickUltralite.Layers 2.2 Application { Screen { ItemLayer { anchors.fill: parent MouseArea { anchors.fill: parent Rectangle { id: bgRect color: "white" width: 480 height: 272 Text { id: myText anchors.centerIn: parent color: "blue" text: "Hello World!" font.pixelSize: 14 } } onClicked: { bgRect.color = (bgRect.color == "white" ? "blue" : "white") myText.color = (myText.color == "blue" ? "white" : "blue") } } } } }