qt5.3 has fully supported mobile development, in addition to Mac,windows,linux. Also support mobile platforms such as Ios,android,wp,meego, this tutorial is the author based on his experience, from the beginning to tell how to advertise their app on iOS. Because there are relatively few articles in the country at the moment, there may be some omissions in the article, or not the optimal method.
Software preparation: qt5.3, Xcode 5.1.1
Compilation environment: Mac OS
Qt5.3 http://qt-project.org Select the appropriate Mac Ox version number to support the version number of iOS and Android. The installation process is omitted
Xcode downloads directly in the App Store
When all environment is ready:
The first step: Open QT Creator, create a quick project, for example the following:
Then enter the project name and disk location. There is a need to select the environment to deploy.
Be able to choose here, or later in the project to choose the deployment again OK
Start editing project
Step two: Write good logic in Qt creator.
First on the Mac on the logical debugging completed, I here with a small game "do not step on white" as a sample. Project code such as the following:
UI logic is mainly implemented in QML, and some business logic is handled in C + + code, where business logic is also very easy, even without being processed in C + +, but in order to pass through the entire process, C + + and QML communication processes, mutual invocation and so on. Detailed methods can be viewed:
HTTP://WWW.SEANYXIE.COM/QML and C mixed programming, UI and business logic blending/
Here in C + +, the use of multi-threaded methods to play the game sound, this part of the processing logic in the Playthread and Playwork class.
Step three: Debug execution under Mac.
After all the code is complete, select compile execution Environment and then perform the Mac version number results for example
Full Text Flow Introduction article:
QT-QML Mobile Development on iOS development and deployment app process Brief introduction
QT-QML Mobile Development on iOS development and deployment app process Brief introduction