Meego Wiki
Views

SDK/Docs/1.1/MeeGo SDK with Qt

From MeeGo wiki
< SDK | Docs | 1.1
Revision as of 12:25, 9 November 2010 by Elliot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


From the Qt website:

"Qt is a cross-platform application and UI framework. It includes a cross-platform class library, integrated development tools and a cross-platform IDE. Using Qt, you can write web-enabled applications once and deploy them across many desktop and embedded operating systems without rewriting the source code."

Qt is not a MeeGo-specific technology, but forms the basis of the handset user experience; it is also the recommended platform for developing MeeGo applications.

You can make use of a couple of additional frameworks (built on top of Qt) to make MeeGo development more convenient:

  • Qt Mobility provides APIs for mobile device development. This includes access to a device's data (for example, sensor data, location), as well as abstractions for telephony, connectivity, contacts, multimedia and other generic services. Qt Mobility also has adapters so it can be used with QML (see below).
  • QML is a declarative language for describing user interfaces, similar to JavaScript. It can be used to simplify development of your user interface, while still hooking into back-end Qt code for the application logic.

Qt development requires that you know one or two programming languages, depending on which elements you want to use:

  • For Qt (including Qt Mobility), you'll need to know C++.
  • For QML, you'll need to know some JavaScript and probably C++ (to write your own user interface elements or bind your application logic to the interface).

You might hear the term Qt Quick in the context of MeeGo development. This term refers to using Qt and QML in an application, running under the QML runtime.

Qt documentation

The Qt API documentation is available at http://apidocs.meego.com/1.1/core/html/index.html.

Example applications and code

If you're interested in seeing some Qt applications running on MeeGo, install the qt-demos package on your device:

$ zypper install qt-demos

Run it with qtdemo from the command line, or by selecting Qt 4 examples and demos from the Applications zone.

If you want full example applications, including source code, see http://www.forum.nokia.com/Develop/Qt/Code_examples/.

Personal tools