8. QtCore: 全新的信號-槽(Signal-Slot)語法
connect(sender, &Sender::valueChanged,
receiver, &Receiver::updateValue );
• 更符合現代C++語法
It’s nicer
now!
The pervasive use of macros in C is probably the
major reason we didn't have excellent C++
development environments a decade ago. -
Bjarne Stroustrup
18. QtGui: QPA (Qt平台抽象層)
使得迅速移植到新的系統平台成為可能!
“Digia plans to quickly enable Qt on
Android, iOS and Windows 8 platforms”
http://www.digia.com/Qt/About-us/News/Digia-to-Acquire-Qt-from-Nokia/
40. QtQuick 2.0
Text
• Text Rendering in the QML Scene Graph
http://labs.qt.nokia.com/2011/07/15/text-rendering-in-the-qml-
scene-graph/
41. QtQuick 2.0
粒子動畫系統 Particle System
ParticleSystem
container/timer
ParticlePainter Emmiter
render particles create particles
Affector
alter particles
42. QtQuickTest: unit test in QML
Write Quickly => Run Quickly => Test Quickly
import QtQuick 2.0
import QtTest 1.0
TestCase {
name: "BasicTests"
function test_pass() {
compare(2 + 2, 4, "2 + 2")
}
}
43. QtQuickTest: unit test in QML
• TestCase
• SignalSpy
• Data driven test
• QTest compatible APIs
• more in qtdeclarativetestsautoqmltest