qt quick (qml)

14
Alexander Trufanov Senior Technical Consultant Forum Nokia Qt 4.7: Qt Quick September 18, 2010

Upload: elena-kotina

Post on 12-May-2015

5.043 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Qt quick (qml)

Alexander TrufanovSenior Technical ConsultantForum Nokia

Qt 4.7: Qt Quick

September 18, 2010

Page 2: Qt quick (qml)

What is Qt?• Qt (”cute”) is a cross-platform C++ application development framework

– Set of cross-platform APIs and cross-platform GUI framework

– C++ class library

– Development tools

• Qt was originally designed for efficient creation of platform-independent desktop GUI programs

• Developed by a Norwegian company called Trolltech, which has been part of Nokia since 2008

• Latest version is 4.6.3 (under development 4.7 RC)

Page 3: Qt quick (qml)

Qt Architecture• Qt uses native styles to draw UI

– UI elements have original

look & feel

– Can be adapted by the developer

• Built on low level APIs of platform

– No runtime!

• Cross-platform

– Single source for multiple platforms

– Only requires recompilation

Page 4: Qt quick (qml)

Qt Licensing• LGPL license

• Qt is completely free!

– Unlike GPL, the LGPL:

• Allows using Qt for free in commercial, closed source apps

– Complete development source code of Qt available

• Commercial version

– Code changes to Qt source code don’t have to be shared

– Included support options

Page 5: Qt quick (qml)

Platforms Windows

Mac OS

Linux / X11

Embedded Linux

Windows CE

Maemo / MeeGo

Symbian (S60)

C++

Java

Python

Ada

Pascal

Perl

PHP

Maintained by

Qt open source community.

Not officially supported by Qt Development Frameworks.

Page 6: Qt quick (qml)
Page 7: Qt quick (qml)

Symbian and Qt• Qt for Symbian:

– Compatible to S60 3rd. Edition, FP1+ (for example Nokia N95, E71)

– Install SDK for your device, or lowest denominator for devices you want

to support with your product

• Info about system version of Nokia S60 devices:

http://www.forum.nokia.com/devices/

Series 60

1st Ed.

Series 60

2nd Ed.

(+ 3 FPs)

S60

3rd Ed.

S60

3rd Ed.

FP1

S60

3rd Ed.

FP2

S60

5th Ed.

=

Symbian^1

Symbian^3 Symbian^4

Page 8: Qt quick (qml)

Maemo / MeeGo and Qt• Maemo 5

– GTK+ based UI

– Qt pre-installed

– Final Qt support: H1 2010 (4.6.2)

• MeeGo 1.0 N (formerly: Maemo 6)

– Qt replaces GTK+

– Multi-touch, gestures support

– GTK and Clutter will stay in MeeGo

Page 9: Qt quick (qml)

Simple installation

Qt Creator in nutshell

From the scratch to devices in 5min.

Simulator

On-device-debugging

Remote Compiler

Page 10: Qt quick (qml)

Hybrid ApplicationsHTML App

Qt Web Technology

Qt

Page 12: Qt quick (qml)

Qt Quick (Qt User Interface Creation Kit)• Create UIs as a designer

– Without C++ knowledge

– Using visual tools

– Module: Declarative UI

– Based on QML language

(extension to JavaScript)

– Supported in Qt 4.7

http://blog.qt.nokia.com/2010/02/15/meet-qt-quick/

Page 13: Qt quick (qml)

QML• Describe UI by tree structure of property bindings

– Properties dynamically evaluated

– Communication through

signals & slots

– Bindings to C++ code possible

– Animate properties using states

and transitions

Rectangle{

width: 200

height: 200

color: "white"

Image {

source: "pics/logo.png"

anchors.centerIn: parent

}

}

Page 14: Qt quick (qml)

Qt Quick videos & demos