Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mobile Application Development with MeeGo™ - Programming with SDK

Similar presentations


Presentation on theme: "Mobile Application Development with MeeGo™ - Programming with SDK"— Presentation transcript:

1 Mobile Application Development with MeeGo™ - Programming with SDK
Composite MeeGo™ Courseware (content courtesy from THU, JYU) Mobile Application Development with MeeGo™ - Programming with SDK

2 Qt Basic Everything you need to create web-enabled desktop, mobile and embedded applications. Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code. Linux/X11 Windows Mac OS X Embedded Linux WinCE/Windows Mobile Symbian Maemo MeeGo

3 Features of QT Intuitive C++ class library
Portability across desktop and embedded operating systems Integrated development tools with cross-platform IDE Qt creator Qt designer Plug-in for Eclipse Plug-in for Visual Studio High runtime performance and small footprint on embedded Good documents, lots of tutorial/sample codes

4 Qt Creator - Cross-Platform Qt IDE
Qt Creator is a cross-platform Qt IDE. It is available as a stand-alone package or in combination with the Qt libraries and development tools as a complete SDK. Qt Creator includes: An advanced C++ code editor Project and build management tools Integrated, context-sensitive help system Visual debugger Code management and navigation tools GUI Builder      Internationalization Tools      Customizable HTML Help System Integration/Add-in for Eclipse and Visual Studio

5 Qt Creator - Cross-Platform Qt IDE

6 Qt Architecture

7 Signal/Slot Signals and slots are used for communication between objects. The signals and slots mechanism is a central feature of Qt and probably the part that differs most from the features provided by other frameworks.

8 QT hello world Write hello.cpp Open Qt terminal Run the program Qtdemo
qmake –project qmake make Run the program Qtdemo #include <QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel label("Hello, world!"); label.show(); return app.exec(); }

9 Use Qt Creator to Develop MeeGo Applications
Configure Qt Creator to use the MeeGo toolchain Go to the menu: Tools -> Options -> Qt4 -> Qt Versions Click "+" button, fill "Version name" and "qmake location" of MeeGo target: ${MEEGO_SDK}/targets/<target name>/bin/qmake Please replace ${MEEGO_SDK} by your own SDK installed path

10 Use Qt Creator to Develop MeeGo Applications
Create a MeeGo touch project (for handset) or Qt Gui project (for netbook) Go to the menu: File -> New File or Project -> Qt Application Project -> Meego Touch Framework Application At the end of project creation, you will see the "Project setup" dialog. Choose the MeeGo toolchain you configured

11 Use Qt Creator to Develop MeeGo Applications
Build configuration of MeeGo project Click the "Projects" icon on the left of Qt Creator. The "MeeGo" build and run configuration page will be shown. Create a new build configuration by selecting the "Add" dropdown button and selecting the MeeGo toolchain you configured above.

12 Use Qt Creator to Develop MeeGo Applications
Create an emulator runtime for MeeGo Get to the menu: Tools->Options -> Projects -> MeeGo Device Configurations. Click "Add" button to add a runtime for emulator. set "Device type" to "MeeGo emulator" set "Authentication type" to "Password“ set "Username" to "root", "Password" to "meego"

13 Use Qt Creator to Develop MeeGo Applications
Set Run Configuration Click "Projects" again on the left side. Select "Run" in the MeeGo Build/Run box at the top.  Make sure that the "Device configuration" is set to "MeeGo Emulator".  Click the "Start Meego emulator" icon near the bottom left corner of Qt Creator (circled in red in the screenshot below)

14 Use Qt Creator to Develop MeeGo Applications
Build, run and deploy the application After QEMU starts, click the "Run" icon to run your application. Qt Creator will package and deploy your application to QEMU and start it on the target  Debug the application.  You can also debug the application by clicking the "Debug" icon. Setting breakpoints and stepping are the same as local applications.

15 Use Qt Creator to Develop MeeGo Applications
Configure Qt Creator to work with real devices Get to the menu: Tools->Options -> Projects -> MeeGo Device Configurations. Click "Add" button to add a runtime for Real device. set "Device type" to "Remote Device" set "Authentication type" to "Password“ set "Username" to "root", "Password" to "meego"

16 Use Qt Creator to Develop MeeGo Applications
Configure Qt Creator to work with real devices Click "Projects“ on the left side. Select "Run" in the MeeGo Build/Run box at the top.  Select the configuration you just created in "Device Configuration“ Click "Run" or "Debug" on the lower left corner of Qt Creator to run or debug your application on the configured Device

17 Use Qt Creator to Develop MeeGo Applications
SSH into QEMU Image Launch QEMU with MeeGo image From a terminal on the host, connect to the running image ssh -p 6666 Two user accounts are available in the MeeGo images: User: meego Password: meego User: root     Password: meego

18 Use Qt Creator to Develop MeeGo Applications
MeeGo Touch Framework Help and Documentation MTF help document is integrated into Qt Creator Just click on the "Help" mode, you can see "MeeGo Touch Reference Documentation" You can also press "F1" in source code to start context helper.  The latest Qt and MTF documentation can be found at:


Download ppt "Mobile Application Development with MeeGo™ - Programming with SDK"

Similar presentations


Ads by Google