Skip to content

Instantly share code, notes, and snippets.

Created February 17, 2012 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/060eb7e059fd06e325f8 to your computer and use it in GitHub Desktop.
Save anonymous/060eb7e059fd06e325f8 to your computer and use it in GitHub Desktop.
import QtQuick 1.1
import com.nokia.meego 1.0
Page {
tools: commonTools
/*
Text {
id: label
anchors.centerIn: parent
text: qsTr("YEAAAHHH!!!")
font.bold: true
visible: false
font.pointSize: 48
}
*/
Rectangle {
id: rect
width: 200
height: 200
x: parent.width/2 - width/2
y: button.y + button.height + 20
color: "#FF0000"
border.color: "black"
radius: 10
smooth: true
}
Button {
id: button
anchors.centerIn: parent
text: qsTr("Toggle color!")
onClicked:(rect.color == "#FF0000") ? rect.color == "#0000FF" : rect.color == "#FF0000"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment