更新时间:2021-08-27 18:32:26
封面
Title Page
Copyright and Credits
Game Programming Using Qt 5 Beginner's Guide Second Edition
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the authors
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Introduction to Qt
A journey through time
The cross-platform programming
Supported platforms
GUI scalability
Qt versions
Structure of Qt framework
Qt Essentials
Qt Add-ons
qmake
Modern C++ standards
Choosing the right license
An open source license
A commercial license
Summary
Installation
Installing the Qt SDK
Time for action – Installing Qt using an online installer
What just happened?
Qt Creator
Qt Creator's modes
Setting up compilers Qt versions and kits
Time for action – Loading an example project
Qt documentation
Time for action – Running the Affine Transformations project
Qt GUI Programming
Creating GUI in Qt
Time for action – Creating a Qt Widgets project
Design mode interface
Time for action – Adding widgets to the form
Layouts
Time for action – Adding a layout to the form
Signals and slots
Creating signals and slots
Connecting signals and slots
Old connect syntax
Signal and slot access specifiers
Time for action – Receiving the button-click signal from the form
Automatic slot connection and its drawbacks
Time for action – Changing the texts on the labels from the code
Creating a widget for the tic-tac-toe board
Choosing between designer forms and plain C++ classes
Time for action – Creating a game board widget
Automatic deletion of objects
Time for action – Functionality of a tic-tac-toe board
Time for action – Reacting to the game board's signals
Advanced form editor usage
Time for action – Designing the game configuration dialog
Accelerators and label buddies
The tab order
Time for action – Public interface of the dialog
Polishing the application
Size policies
Protecting against invalid input
Main menu and toolbars
Time for action – Creating a menu and a toolbar
The Qt resource system
Time for action – Adding icons to the project
Have a go hero – Extending the game
Pop quiz
Custom 2D Graphics with Graphics View
Graphics View architecture
Time for action – Creating a project with a Graphics View
Coordinate systems
The item's coordinate system
The scene's coordinate system
The viewport's coordinate system
Origin point of the transformation
Have a go hero – Applying multiple transformations
Parent–child relationship between items