文档介绍:Crash course to
Qt Quick™ Game
Programming
Qt Quick Game Programming © 2010 QUIt Coding
About this document
This tutorial has been written in co-
operation between NOMOVOK and Quit
Coding.
QUIt Coding is an official member of the
Qt Ambassador Program. As ambassadors,
we mitted to continue providing
extraordinary user experience with Qt.
Thanks to Nokia/Qt people for delivering
the best platform to build mobile software
with!
For a feedback about this document,
please contact info@
Version: - October 24, 2010
Copyright © 2010 QUIt Coding.
Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other
countries worldwide.
Cover images are public domain and courtesy of NASA. "Lunar Roving Vehicle" is from Apollo 17
mission and "Bootprint" from Apollo 11 mission.
This document is licensed under the mons Attribution-Share Alike license. For
more information, see /licenses/by-sa/ for the full
terms of the license.
2
Qt Quick Game Programming © 2010 QUIt Coding
Table of Contents
Introduction..............................................................................................4
What is Qt Quick?...................................................................................4
Hello QML!.............................................................................................5
Separation between QML UI and the application logic...................................7
Implementing 5-in-a-row game................................................................9
Main UI ................................................................................................9
Main menu and controls.........................................................................12
Game board and animations...................................................................15
Game data structures.........................................................................