3
// some random qml snippets stolen from the qt docs
12
radius: 5; border.color: "black"
13
color: mouse.pressed ? "steelblue" : "lightsteelblue"
15
GradientStop { position: mouse.pressed ? 1.0 : 0.0; color: "steelblue" }
16
GradientStop { position: mouse.pressed ? 0.0 : 1.0; color: "lightsteelblue" }
18
MouseRegion { id: mouse; anchors.fill: parent; onClicked: container.clicked() }
19
Text { anchors.fill: parent; text: container.label; anchors.centerIn: parent }
24
function calculateMyHeight() {
25
return Math.max(otherItem.height, thirdItem.height);
29
anchors.centerIn: parent
30
width: Math.min(otherItem.width, 10)
31
height: calculateMyHeight()
32
color: { if (width > 10) "blue"; else "red" }
36
default property color innerColor: "black"
37
property color innerColor: "black"
38
property alias text: textElement.text
39
property alias aliasXYZ: testElement.text
41
signal bar(var blah, string yxcv)
42
width: 240; height: 320;
43
width: 100; height: 30; source: "images/toolbutton.sci"
49
text: modelData.firstName + " " + modelData.lastName
57
console.log("You said " + text);