Session 1 - Introduction To QML
Session 1 - Introduction To QML
● What is Qt Quick?
● What is QML and how it is structured:
● QML Properties
● QML Property Binding
● QML Types
● Demo: Simple QML Project
● Questions ?
Imperative Logic
Positioning
Developer
Serial Port
Bluetooth
XML
NFC
Processes, Threads, HTTP SQL &
IPC, Containers, FTP Oracle
I/O, Strings, SSL Database
Etc.
+ Direct Hardware Access
Rectangle {
width: 400; height: 400
color: "lightblue"
}
● Used for
○ Identifying QML objects (id property)
○ Customizing their appearance
○ Changing their behavior
○ "<html><b>Qt Quick</b></html>"
● Width and height can also be determined by the font metrics and text
● The rectangle's size could depend on the font size
○ FontMetrics { id: metrics: font.family: “Courier” }
○ Rectangle { height: metrics.height * nofRows }