Meego Wiki
Views

SDK/Docs/Simulator

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Defining new device models in Qt Simulator)
(Create a new Qt project in Qt Creator)
Line 3: Line 3:
=== Create a new Qt project in Qt Creator ===
=== Create a new Qt project in Qt Creator ===
-
* Open Qt Creator to begin designing a Qt application. Please create a simple Qt GUI project from the menu of Qt Creator, ''File'' > ''New File or Project'' > ''Qt GUI Application''
+
 
 +
<ul>
 +
 
 +
<li>Open Qt Creator to begin designing a Qt application. Please create a simple Qt GUI project from the menu of Qt Creator, ''File'' > ''New File or Project'' > ''Qt GUI Application''
[[File:Qt simulator new.png]]
[[File:Qt simulator new.png]]
 +
</li>
-
*Name the application '''HelloQtSimulator''' and choose a directory for the project.
+
<li>Name the application '''HelloQtSimulator''' and choose a directory for the project.
[[File:Qt simulator new2.png|800px]]
[[File:Qt simulator new2.png|800px]]
 +
</li>
-
*Choose the Qt Version as '''MeeGo SDK Simulator'''. This determines the Qt library which will be used to build the application.
+
<li>Choose the Qt Version as '''MeeGo SDK Simulator'''. This determines the Qt library which will be used to build the application.
[[File:Qt simulator new3.png|800px]]
[[File:Qt simulator new3.png|800px]]
 +
</li>
 +
 +
</ul>
=== Build, Run and Deploy Qt Application to Simulator ===
=== Build, Run and Deploy Qt Application to Simulator ===

Revision as of 12:44, 24 May 2011

Contents

How to use Qt Simulator in MeeGo SDK

This page is a guideline of how to use Qt Simualtor in MeeGo SDK. It describes how to create a simple Qt GUI application, build it against Simulator Qt libraries and deploy it to Qt Simulator with MeeGo device modules. You can refer to the official Qt Simulator page for more details: Qt Simulator Manual

Create a new Qt project in Qt Creator

  • Open Qt Creator to begin designing a Qt application. Please create a simple Qt GUI project from the menu of Qt Creator, File > New File or Project > Qt GUI Application Qt simulator new.png
  • Name the application HelloQtSimulator and choose a directory for the project. Qt simulator new2.png
  • Choose the Qt Version as MeeGo SDK Simulator. This determines the Qt library which will be used to build the application. Qt simulator new3.png

Build, Run and Deploy Qt Application to Simulator

  • Click the Projects label on the left-hand panel of Qt Creator. Next, confirm that Build & Run setting is set to Qt Simulator. You can change the Edit build configuration option to Debug to debug this application in Qt Simulator.

Qt simulator build run.png

  • Click the green Run button to build the application and deploy it to Qt Simulator. Qt Simulator will boot, comprising a control panel and application window.
  • There are three predefined MeeGo device models with different skins and resolutions: 864x480, 960x540, 1280x800. Choose your preferred device in Qt Simulator's control panel, under View > Device.

Qtsimualtor choose model.png

If the application deployed successfully and you have chosen a MeeGo device model, the application should display in the Simulator.

Qtsimulator deploy.png

Defining new device models in Qt Simulator

Qt Simulator supports user-defined device models, as described in Adding New Device Models for Qt Simulator.

Personal tools