Summary of developing Symbian applications with QT

Source: Internet
Author: User

Summary of developing Symbian applications with QT



After a while, I finally found out the most convenient method for developing Symbian applications using QT, which is summarized as follows:



1.

If you want to use QT to develop a Symbian application, you must develop it on the Windows platform.Because the QT development tools in Linux are not complete.

Download the qt sdk for Windows. For Nokia 5230 mobile phones, you should download qt sdk 1.1.2. Do not download the latest version 1.2.1.



2.

The windows qt sdk integrates the Symbian development environment by default. You do not need to download any other libraries to develop the Symbian application.



3.

The QT library must be installed on the mobile phone before the Symbian application is developed with QT 1.1.2 and the QT Library Supported by Nokia 5230 is QT 5230 (3)While the updated QT 4.07 (4) library is not supported by Nokia 5230.

In addition, the Symbian application developed by qt sdk 1.2.1 needs to be installed with the QT library of version 4.07 (4) on the mobile phone, the Symbian application developed by qt sdk 1.1.2 needs to install a QT library of 4.07 (3) with a lower version on the mobile phone.

These two QT libraries are linked at the end of the document.



4.

After developing the Symbian application, you need to download it to your mobile phone. There are two methods:Manual and automatic

Manual:

Select the target in the lower-left corner of the QT interface as the Saipan device and click the green triangle below. This is generally incorrect because we have not connected to the mobile phone, but the application sis has been generated, in the project folder directory, manually copy to the SD card of your mobile phone and then install it.However, there is a disadvantage: after connecting the mobile phone to the PC using USB, copy the sisfile to the SD card on the PC side, but before the USB is unplugged, we cannot browse the SD card on our mobile phone, so we must unplug the USB. It takes a lot of time to do so.

Automatic:

This method is recommended by me: the specific method is as follows:


(1 ):

Install Nokia OVI suiteConnect your phone to the Nokia OVI suite. The advantage of Nokia OVI suite is that it can be used directly to install the sisfile on the PC to the mobile phone without frequently plugging the USB cable. In additionNokia OVI suite is also an essential step for Qt creator to connect to mobile phones. Nokia
The OVI suite installation process is as follows:




(2 ):

After Nokia OVI suite is installed, you need to install the QT library on your mobile phone. This step 3rd has already been explained.


(3 ):

Install the TRK debugging tool on your phoneYou can download it at http://tools.ext.nokia.com/trk/. the version of Nokia 5230 is s60_5_0_app_trk_3_2_7.sisx. I have uploaded all the TRK files in my versions. There is a link at the end of this article. For specific installation instructions, refer:

Http://www.developer.nokia.com/Community/Wiki/%E5%A6%82%E4%BD%95%E5%9C%A8NokiaQtSDK%E4%B8%AD%E5%BC%80%E5%8F%91Symbian_Qt%E5%BA%94%E7%94%A8#.E5. AE .89.E8.A3.85Qt.E5.BA.93.E5.92.8CTRK.E5.88.B0Symbian.E6.89.8B.E6.9C.BA



(4 ):

After the above work is completed, connect to the PC through the Nokia OVI suite, select the OVI suite mode on the mobile phone, and then enable QT, which should be automatically connected by default, the Red Cross will turn into a green hook (Be sure to open the Nokia PC Suite software first !),For example:

Figure showing no phone connection:



Figure already connected to the mobile phone:




(5 ):

After the QT creator is successfully connected to the mobile phone, you need to set the QT version of the target mobile phone on the project tab (the figure shows QT 4.7.3 Symbian ^ 1, this version applies to my Nokia 5230)





(6 ):

The last step is to build and run the file, but the speed is relatively slow. QT creator automatically copies the generated sisfile to the mobile phone for installation. Of course, you can also use Nokia OVI suite for manual installation after the sisfile is generated.



(7) debugging:

This section only describes how to debug the Timer Program on a real machine. For example, refer:

Http://blog.csdn.net/htttw/article/details/7632103

1.

Connect the Nokia 5230 mobile phone to the PC using USB, open the Nokia OVI suite, and confirm that the phone is connected.


2.

Check the green check box in the lower left corner of the QT interface:



3.

Qt open timer. Pro, select "Saipan device" in the project, and then select "QT 4.7.3 for Symbian ^ 1 (qt sdk) debugging". Be sure to select debugging! Do not select "release". The difference is the same as that between debug and release:




4.

We can set a breakpoint at the beginning of the program:




5.

Then select the second green triangle with a circle in the lower left corner of the QT interface to start debugging. The debugging speed is slow because it is on the real machine.


6.

The program will be paused at the breakpoint:



Then we can perform one-step debugging on the real machine. It's great!



(8) Flash:

The applications we develop often use the network access and SD card access functions of mobile phones. Therefore, applications with special permissions must be signed. There are two solutions: one is to sign the application, but it is very troublesome to sign every time an app is developed. The second method is to flash the machine. After the flash machine is installed, any app can be directly installed, which is very convenient. Please note that you should be careful not to make your phone a brick ~~

In http://blog.csdn.net/htttw/article/details/7635234 I detailed how to brush.







The following files are attached:


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


The following is the TRK file used by QT creator to connect to the Symbian mobile phone:

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



Now you can start developing the Symbian application!



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.