Meego Wiki
Views

SDK/Docs/1.1/MeeGo SDK with Qt

From MeeGo wiki
< SDK | Docs | 1.1(Difference between revisions)
Jump to: navigation, search
(Removing references to MTF, which is now considered part of the Platform API)
(Qt documentation)
 
(One intermediate revision not shown)
Line 7: Line 7:
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.
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 few additional frameworks (built on top of Qt) to make MeeGo development more convenient:
+
You can make use of a couple of additional frameworks (built on top of Qt) to make MeeGo development more convenient:
<ul>
<ul>
Line 33: Line 33:
== Qt documentation ==
== Qt documentation ==
-
For each of the frameworks below, the main reference documentation site is listed, along with a few highlighted tutorials which are useful for getting started. The main API documentation site for MeeGo is http://apidocs.meego.com/.
+
The Qt API documentation is available at http://apidocs.meego.com/1.1/core/html/index.html.
-
 
+
-
Qt:
+
-
 
+
-
* [http://apidocs.meego.com/qt4.7/ Qt reference documentation]
+
-
* [http://apidocs.meego.com/qt4.7/how-to-learn-qt.html How to learn Qt]
+
-
* [http://apidocs.meego.com/qt4.7/widgets-tutorial.html Basic principles of Qt widgets]
+
-
* [http://apidocs.meego.com/qt4.7/tutorials-addressbook.html Longer tutorial on building a full Qt application]
+
-
 
+
-
Qt Mobility:
+
-
 
+
-
* [http://apidocs.meego.com/qtmobility/ Qt Mobility reference documentation]
+
-
* [http://apidocs.meego.com/qtmobility/quickstart.html Qt Mobility quickstart]
+
-
 
+
-
QML (note: as QML is an add-on for Qt, its documentation is part of the main Qt documentation):
+
-
 
+
-
* [http://apidocs.meego.com/qt4.7/qml-tutorial.html QML "hello world"]
+
-
* [http://apidocs.meego.com/qt4.7/qml-intro.html Another longer QML "hello world"]
+
-
* [http://apidocs.meego.com/qt4.7/qdeclarativeintroduction.html QML syntax]
+
-
* [http://apidocs.meego.com/qt4.7/qml-extending-tutorial-index.html Writing QML extensions with C++]
+
== Example applications and code ==
== Example applications and code ==

Latest revision as of 12:25, 9 November 2010


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