Skip to content
Snippets Groups Projects
Commit 4df456cb authored by Benjamin Lee's avatar Benjamin Lee
Browse files

add training materials

parent e88014df
No related merge requests found
Showing
with 111 additions and 0 deletions
Exam/Exam1/background.png

91.7 KiB

Exam/Exam1/blur.png

26.8 KiB

Exam/Exam1/pinwheel.png

11.4 KiB

Exam/Exam1/pole.png

1.75 KiB

import QtQuick
Rectangle {
id: root
width: 120; height: 240
color: "#4A4A4A"
onWidthChanged: {
root.updateX()
}
Component.onCompleted: {
root.updateX()
}
function updateX () {
rectItem.x = (width - rectItem.width)/2
}
Rectangle {
id: rectItem
y: 40
width: 100
height: 100
color: "white"
}
Text {
y: rectItem.y + rectItem.height + 20
width: root.width
color: 'white'
horizontalAlignment: Text.AlignHCenter
text: "Property binding"
}
}
import QtQuick
Item {
id: main
width: 1280
height: 720
Rectangle {
width: main.width / 3
height: main.height
color: "lightcoral"
Text {
x: 50
font.bold: true
font.pointSize: 40
anchors.verticalCenter: parent.verticalCenter
text: "1"
}
}
Rectangle {
x: main.width / 3
width: main.width / 3
height: main.height
color: "orange"
Text {
x: 50
font.bold: true
font.pointSize: 40
anchors.verticalCenter: parent.verticalCenter
text: "2"
}
}
Rectangle {
x: main.width / 3 * 2
width: main.width / 3
height: main.height
color: "lightgreen"
Text {
x: 50
font.bold: true
font.pointSize: 40
anchors.verticalCenter: parent.verticalCenter
text: "3"
}
}
}
import QtQuick
Item {
width: 600
height: 600
Image {
id: image
property int index: 1
property string indexString: "01"
Timer {
running: true
repeat: true
interval: 200
onTriggered: {
//hint - toString().padStart(2,0)
}
}
}
}
Exam_Day2/image/01.jpeg

161 KiB

Exam_Day2/image/02.jpeg

85.5 KiB

Exam_Day2/image/03.jpeg

100 KiB

Exam_Day2/image/04.jpeg

97.3 KiB

Exam_Day2/image/05.jpeg

247 KiB

Exam_Day2/image/06.jpeg

101 KiB

Exam_Day2/image/07.jpeg

134 KiB

Exam_Day2/image/08.jpeg

106 KiB

Exam_Day2/image/09.jpeg

106 KiB

Exam_Day2/image/10.jpeg

122 KiB

Exam_Day2/image/11.jpeg

81.7 KiB

Exam_Day2/image/12.jpeg

65 KiB

Exam_Day2/image/13.jpeg

85.5 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment