- int
- real
- string
- list
- qml object type
- qml basic type
- static value
- binding expression
property list<Rectangle> childRects: [
Rectangle { color: "red" }
Rectangle { color: "blue" }
]
can not have explict type specification
property alias color: retangle.border.color
Retangle {
id: retangle
}
readonly property must assign a value and can not be changed
readonly property int someNumber: 10
* onClicked
Rectangle {
signal activated(real xPosition, real yPosition)
signal deactivated
MouseArea {
anchors.fill: parent
onPressed: parent.activated(mouse.x, mouse.y)
onReleased: parent.deactivated()
}
onActivated: console.log("Activated at" + xPosition + "," + yPosition)
onDeactivated: console.log("Deactivated!")
}
TextInput {
text: "change this!"
onTextChanged: console.log("Text has changed to:", text)
}