Intro to QML / Declarative UI  Caio Marcelo de Oliveira Filho CampKDE 2010 – San Diego
Who am I? Developer at INdT, a Nokia research institute
openBossa, FOSS stream at INdT
- Qt Kinetic
- Qt WebKit
- Plasma Netbook
- S60 demos
Currently working with trolls on Widgets/QML
One patch to kwin! ;-)
What is QML? Describe trees of objects and properties Item { propertyA: 100 propertyB: 100 children: [ Item { propertyC: 100 }, Item { propertyC: 200 } ] }
What is QML? Describe trees of objects and properties Item { propertyA: 100 propertyB: 100 Item { propertyC: 100 } Item { propertyC: 200 } }
What is QML? Allows embedding ECMAScript code Item { propertyA: 100 propertyB: propertyA + 200 // here onSomeEvent: myFunction() // and here }
Declarative UI using QML Rectangle { id: page width: 500; height: 200 color: "lightgray" Text { id: helloText text: "Hello world!" font.pointSize: 24 font.bold: true y: 30 anchors.horizontalCenter: page.horizontalCenter } }
Declarative UI using QML Animations and effects
“ MouseRegion” object for events
Note: usually people say just QML instead of “Declarative UI using QML”
Analogies EFL: “QML is a kind of Edje for Qt”

Intro to QML / Declarative UI