Qt-qml mobile development-Overview of app development and deployment process on ios, qt-qmlios

Source: Internet
Author: User

Qt-qml mobile development-Overview of app development and deployment process on ios, qt-qmlios

Qt5.3 fully supports mobile development. In addition to mac, windows, and linux, it also supports ios, android, wp, meego, and other mobile platforms. This tutorial is based on the author's experience, I will explain from the beginning how to publish my own apps on ios. Because there are still few articles in China, there may be some omissions in the article, or it is not the best method.

Software preparation: qt5.3 and xcode 5.1.1

Compiling environment: Mac OS

Qt5.3 http://qt-project.org select the corresponding Mac ox version, support iOS and android versions, installation process is omitted

Download Xcode directly in app store

After all the environments are ready:

Step 1: Open Qt creator and create a quick project as follows:

Enter the project name and storage location. Select the environment to deploy.

You can select here or re-select deployment in the project.

Start editing project

Step 2: Write the logic in Qt creator.

After the logic debugging is completed on Mac, I will use a mini-game "do not step on the white block" as an example. The project code is as follows:

The UI logic is mainly implemented in qml. Some business logic is processed in the C ++ code. Here, the business logic is also very simple, and you don't even need to process it in C ++, however, in order to pass the entire process, C ++ and qml communication processes and mutual calls are required. For details, refer:

Http://www.seanyxie.com/qmland c, uiand business logic/

Here, the multi-thread method is used in C ++ to play game sound effects. The processing logic is in the PlayThread and PlayWork classes.

Step 3: Test Run of MAC downgrade.

After all the code is complete, select the compiling and running environment, and then run the mac version. The result is as follows:




Complete Graphic Process Introduction Article:

Qt-qml mobile development-Overview of app development and deployment on ios



Professional learning procedures for mobile Internet APP development, apps, IOS, and Android professionals

I learned about android. for IOS development, I can only talk about some experience I know. Don't like it! First, the language is required. The IOS language is Object-C. If you have no programming experience, you must first learn the language. It is best to buy a book for relevant learning, starting from the basics of language. As for the data structure, you do not need to learn it for the time being. The more experience you have gained from programming, the more you want to make your code more beautiful, when the logic is strong, you can learn it. At the beginning, I thought that so many logics may seem difficult. The database is actually very simple, mainly to learn how to design tables. As for adding, deleting, modifying, and querying tables, you can see it. The design of a table determines the ability of a program to process data. The design of the table structure is not just about reading a book. First of all, you have a certain understanding of the database, and the most important thing is experience. The IOS database is also SQLite, a lightweight database that is relatively easy to learn. If there is a little SQL foundation, it is easy to get started.

To sum up, you can first learn the language, write the language, and develop some simple applications you have imagined. I learned android in this way. If you only learn the language or IOS books, you may have a lot of knowledge you don't have in the books. In terms of IOS and android development prospects, IOS is well known to everyone in terms of profitability. for future development, IOS is still quite popular in the past one or two years. It is impossible for android to surpass the present, I am talking about the profit of developers.

How to Develop an adroid or IOS mobile client APP for a forum?

Not everyone can develop.
It should be said that you can do it in a short time.
After all, you need an artist, uidesign, development, and testing.
If you have no experience
You should give up.
For Android and ios development, you can use html5.
Phonegap.com/
Currently, a very small number of applications have taken this approach. Low Efficiency, card, and other special effects

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.