×
Namespaces

Variants
Actions
(Difference between revisions)

Using Qt Creator with Symbian

From Nokia Developer Wiki
Jump to: navigation, search
ceefour (Talk | contribs)
(Create Mobile Qt project with Qt Creator - Creating a Mobile Qt Application)
ceefour (Talk | contribs)
(Step 3 - Creating a Mobile Qt Application)
Line 49: Line 49:
  
 
[[Image:Qt-creator-new-mobile-qt-project-2.png|thumb|none|400px]]
 
[[Image:Qt-creator-new-mobile-qt-project-2.png|thumb|none|400px]]
 +
 +
3. Choose your target platforms. Maemo and Qt Simulator should be pre-selected. You can also choose Symbian/S60 and Remote Compiler if you have configured them.
 +
 +
[[Image:Qt-creator-new-mobile-qt-project-3.png|thumb|none|400px]]
  
 
=Running the Application in S60 SDK=
 
=Running the Application in S60 SDK=

Revision as of 18:29, 30 November 2010

Contents

Overview

Warning.pngThis article does not meet the wiki quality standards: Please make it more useful by adding links or additional information as discussed in the quality standards. When you have done so you can delete the {{NeedsMoreWork}} template from the article to remove this warning.

This article contains out-dated information. With current Nokia Qt Creator the process is highly simplified.

This article will explain, how the developer can use Qt Creator to write and test applications for Symbian SDKs and Devices.

Preparing Your Development Environment

Install the Nokia Qt SDK, which contains Qt SDK, Qt Mobility SDK, Qt Creator, Qt Simulator for Symbian and N900, and libraries, tools (including the emulator for S60 environment), and all documentation you need to get started.

Qt Creator is an IDE built on Qt itself, and contains an easy-to-use visual designer for designing your application UI.

You can also download the individual components:

  1. Set up the S60 development Environment. First install Active Perl and then S60 Platform and Device SDKs for Symbian OS.
  2. Install the relevant Qt for Symbian SDK.
  3. Install Qt Creator binary for Windows.

Note: When installing Qt Creator, make sure to install Qt Creator on same drive where you have installed all S60 SDKs.

Choosing the Default Qt SDK

After following the steps above, I assume that the developer has properly installed the S60 SDKs and Qt for Symbian SDK.

Qt Creator should automatically detect Qt SDKs that have been configured for use with Qt.

Since there may be several Qt SDKs installed in your system, ensure that the correct SDK is used as the Qt build target:

  1. Start Qt Creator from Windows Start button > All Programs > Nokia Qt SDK > Qt Creator.
  2. In Qt Creator Menu bar, click Tools > Options > Qt SDK versions. Now you can set your default Qt SDK version.
  3. Select the you required SDK in Default Qt version field, in our case it will be S60 5th edition Qt 4.6.2.

The Screenshot shown below helps in better understanding:

QtCreator Symbian1.jpg

Creating a Mobile Qt Application

Creating a new mobile application utilizing Qt and Qt Mobility APIs is very easy and straightforward with the latest version of Qt Creator (included as part of Nokia Qt SDK).

1. Click Create Project and choose Mobile Qt project.

Qt-creator-new-mobile-qt-project-1.png

2. Name your project and choose destination directory.

Qt-creator-new-mobile-qt-project-2.png

3. Choose your target platforms. Maemo and Qt Simulator should be pre-selected. You can also choose Symbian/S60 and Remote Compiler if you have configured them.

Qt-creator-new-mobile-qt-project-3.png

Running the Application in S60 SDK

  • Make any simple project in Qt, if you have an windows SDK installed then do check that the application works fine with windows.
  • Select the Projects icon in the Qt creator sidebar.
  • In the "Build Settings" section select the Debug option, then press Add Selected to copy the current debug configuration. Give the configuration some meaningful name. The screen shot below gives a better understanding.


QtCreator Symbian5.jpg


  • Select "Show Details" in the General build settings, then change the Tool Chain from GCCE to WINSCW.


QtCreator Symbian3.jpg


  • Set the new build configuration active.


  • Then the final step is you can build the application and if your build was error free you can open your S60 SDK for which you made the build and check out your application.

Making a Standalone sis to be checked on S60 device

  • Select the Projects icon in the Qt creator sidebar.
  • In the "Build Settings" section select the release option.
  • Select "Show Details" in the General build settings, then change the Tool Chain from WINSCW to GCCE.
  • start building the application.
  • Qt Creator doesn't have any direct option to make a sis, instead you have to use makesis tool of symbian to make a sis out of the pkg file.
  • So browse to your application directory and locate your pkg file and use the makesis tool, the below image explains the point clearly.


QtCreator Symbian4.jpg


  • you will get the sis in your application directory and install it in your S60 device.

Conclusion

Executing this steps properly will help the developer to start developing Symbian Applications using the Qt Creator.

The next step would be to download the new Qt Mobility APIs and start developing using some native mobility functions.

364 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×