QT-QML Mobile Development on iOS development and deployment app process Brief introduction

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.