qt tutorial - part 1

18
Qt is a registered product of Digia Intro to Qt GUI programming with C++ by Đức Phạm Organized by

Upload: rmitc

Post on 12-May-2015

847 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Qt Tutorial - Part 1

Qt is a registered product of Digia

Intro to QtGUI programming with C++

by Đức Phạm

Organized by

Page 2: Qt Tutorial - Part 1

Đức Phạm

Email: [email protected]

Bachelor of IT since 2009

Linux enthusiast

Worked in Gameloft and now is East Agile

Interest in Game and Web development

Page 3: Qt Tutorial - Part 1

History

Developed by Trolltech

Acquired by Nokia

Commercial license took over by Digia

Page 4: Qt Tutorial - Part 1

In a nutshell

Qt is ‘cute’

Cross-platform GUI library for the C++

programming language

A complete interface environment with support

for Webkit API, media streamer, file system

browser, OpenGL API, etc.

Page 5: Qt Tutorial - Part 1

VLC 2.x running in Windows, OS X 10.7

and Debian Linux

Page 6: Qt Tutorial - Part 1

In a nutshell (continue)

Support embedded Linux

Smart phones: Maemo, Meego, etc.

Electronic devices: Car, TV, etc.

Feature road map including support for

popular mobile platforms such as

Android and iOS.

Page 7: Qt Tutorial - Part 1

Legal stuff

Qt offers three licenses:

GPL v3

lGPL

Digia commercial license

Page 8: Qt Tutorial - Part 1

Installation

Official download: http://qt-project.org/downloads

Official IDE: QtCreator

Visual Studio add-in

Debian repository:

sudo apt-get install qtcreator qtcreator-dbg

Page 9: Qt Tutorial - Part 1

Technical features

Customized precompiler: signal and slot

Page 10: Qt Tutorial - Part 1

Technical features (continue)

Signals don’t need to be implemented, but

rather called

Signals and slots can be connected:

Regardless of which object

Many-many relationship

Could be disconnected

Page 11: Qt Tutorial - Part 1

Technical features (continue)

Features the parent-child relationship

A child widget when created could reference to

a parent widget. This allows:

Hierarchy search: findChild() and

findChildren()

Chain destructor on parent de-allocating

Page 12: Qt Tutorial - Part 1

Tech demo

Page 13: Qt Tutorial - Part 1

Qt in the world

Industrial

Skype

VirtualBox

Maya

Opera

Various embedded software

Page 14: Qt Tutorial - Part 1

Qt in the world (continue)

KDE

Complete desktop environment in Qt

Including the Plasma Window manager

Projects including Office Applications

Development suite: Kdevelop

Common desktop applications

Page 15: Qt Tutorial - Part 1

Qt in the world (continue)

Open source projects

Qt razor

http://qt-apps.org/

Page 16: Qt Tutorial - Part 1

Further references

http://qt-project.org/doc/qt-4.8/

http://www.youtube.com/user/VoidRealms

http://www.kde.org/developerplatform/

http://qt-apps.org/

Page 17: Qt Tutorial - Part 1

Questions?

Page 18: Qt Tutorial - Part 1

Thank you!