Developing Symbian applications with QT in Windows (QT quick version)

Source: Internet
Author: User

Developing Symbian applications with QT in Windows (QT quick version)



In the previous lecture, we introduced how to use QT to develop Symbian applications in Ubuntu,I personally do not recommend this (at least for the time being)Although Nokia provides QT for Linux, it cannot compile the developed Symbian application.Remote Compilation(That is, the code is submitted to the Nokia server, the server is compiled and then sent back), but the speed can be imagined, it is definitely much slower than local compilation! Another reason is that my Nokia
5230 is already connected to the PC, but Ubuntu cannot recognize it. Therefore, you must start the virtual machine every time you install the software. This is too troublesome!Therefore, if you only want to develop the desktop QT application, it is no problem to use the Linux version of QT, but if you want to use QT to develop the Symbian application, it is strongly recommended that you complete it in windows!Next we will introduce how to develop a Symbian application with QT in Windows from scratch, and then place it on my Nokia 5230 mobile phone. Now, start:


1.

Install qt sdk:

Currently, the latest qt sdk version 1.2.1 is available. If it is used for development, the mobile phone requires support from the QT 4.07 (4) Library (for newer mobile phones, it should all be supported, ). The official QT website also provides another version 1.1.2. If it is used for development, the mobile phone needs support from the QT 4.07 (3) library with a slightly lower version. I installed the QT 5230 (4) library on Nokia 4.07, prompting that it is incompatible. Then I installed the QT 4.07 (3) Library, and the mobile phone has no problems, it seems that Nokia 5230 only supports the QT 4.07 (3) Library.
SDK 1.1.2 (I have provided the download of these two QT libraries at the end of the article. You can try it and see which QT library is supported by the mobile phone)

Qt SDK 1.1.2 is: Release

Make sure that the disk has at least 10 Gb of space before installation.



2.

The installation process is not much different from the QT of Linux. For details, refer to: http://blog.csdn.net/htttw/article/details/7625819:




Select "default"(Remember, we should select "Custom" to support remote Compilation When installing QT for Linux, but we don't need it now)







3.

After the installation is complete, open QT creator, for example:




Let's write a helloworld:


4.

Select "file --> New file or project" and select "QT quick application ":




Enter helloworld and click Next:





Because we only develop the Symbian application, we do not need the "desktop target". Select "Saipan device" and "QT Simulator ":




Keep default:




Keep default:




Keep default:




Click Finish:




5.

Select the QT simulator in the lower-left corner of QT, and click the green triangle below to start running, as shown in:



On the right is the simulator control window, huh, compared with qt sdk 1.2.1 simulator ugly a lot (on QT 1.2.1 installation can refer to: http://blog.csdn.net/htttw/article/details/7625819)



6.

Select the target in the lower-left corner of QT as the Saipan device, and click the green triangle below to start running. Generally, an error occurs because we have not connected to the mobile phone, but after I connect, the error "the device is not connected" still appears. Why ??? :



However, the helloworld. Sis has been generated in the helloworld folder of the project. Haha, We can manually install it on the mobile phone.




7.

As mentioned at the beginning of this article, you must install the QT 4.07 (3) library on your mobile phone before installing helloworld.




8.

After the QT 4.07 (3) library is installed, we can install helloworld. Sis. The running results on Nokia 5230 are as follows:



Haha, I shot it on another mobile phone. The effect is not very good, but you can see it clearly. Haha!



Note:

I used QT quick to develop the Symbian application, but I am not familiar with QT quick (this is a new design method launched by Nokia, and I feel very bad, poor user experience !), So here is only an introduction. Next I will use the traditional QT design method (refer to C ++ GUI QT 4 Programming (second edition) to introduce how to use QT (not QT quick) to develop Symbian applications, see:

Developing Symbian applications with QT in Windows (traditional version ):Http://blog.csdn.net/htttw/article/details/7632103



Below is the Symbian QT 4.07 (3) Library:

Http://download.csdn.net/detail/htttw/4352005


Below is the Symbian QT 4.07 (4) Library:

Http://download.csdn.net/detail/htttw/4352012



Done!

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.