MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

Qt 4.7

Qt is a cross-platform application and UI development framework, included as a part of MeeGo 1.2 Harmattan API. Qt comes with a set of tools and techniques to help in automating the process of building and installing Qt applications for cross-platform compatibility. For more information on the cross-platform capabilities of Qt, see Qt documentation online.

Supported Qt 4.7 APIs

Module Content
QtCore
  • Contains core non-GUI functionality.
QtDBus
  • Enables inter-Process Communication using the D-Bus

Example use: Your application polls a website for new content availability and offers the information gathered to other applications through D-Bus. Your application can also query information offered by other applications in the same way.

QtDeclarative
  • Declarative framework for producing dynamic user interfaces.
  • Uses the QML markup language, a JavaScript extension that offers easier UI customisation than common QtGUI elements in general.
  • Can be used to create completely new applications or to extend existing ones
  • Does not require C++ skills
  • Integrates with existing Qt C++ applications

Example use: Create an application using the QML language, and use the visual editor provided in Qt Creator for polishing the UI.

QtGui
  • A wide selection of classes that allow you to implement graphical user interfaces to your Qt applications
  • QtCore extension that provides GUI functionality

Example use: Create a graphical user interface for your Qt application.

QtNetwork
  • Classes for network programming
  • Opening, maintaining and closing of network sessions using various protocols
  • Servers for accepting connections

Example use: To add a support for network based features to your application, such as connecting to a local WLAN network and fetching data to be used in your application.

QtOpenGL
  • Allows Qt applications to use the OpenGL® APIs to create hardware-accelerated 2D and 3D graphics
  • The base of OpenGL® in Qt is the QGLWidget class, which creates a display buffer for rendering OpenGL® objects.

Example use: Use in your Qt application to enable easier integration of OpenGL® 3D graphics.

QtScript
  • Allows scripting for Qt applications.

Example use: Create a scriptable Qt application.

QtScriptTools
  • Additional Qt Script components
QtSql
  • Classes for database integration with SQL
QtTest
  • Tool classes for unit testing

Example use: Build your application against the QtTest library to enable testing of various application features using QtTestLib

QtUiTools
  • Classes for handling Qt Designer forms in applications
  • Enables applications to create UIs dynamically based on UI files created in Qt Designer

Example use: Use in your application to process Qt Designer UI files to create user interfaces at runtime

QtXml
  • Provides a stream reader and writer for XML documents, and C++ implementations of SAX and DOM.
QtXmlPatterns
  • Provides support for XPath, XQuery, XSLT and XML Schema validation.
QtWebKit
  • Provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application.
  • At the same time Web content can be enhanced with native controls.

Example use: To enable your application to embed data from the web, such as the ongoing week's lottery numbers, or recent messages from a social application. of SAX and DOM.

Exceptions to the standard

The following Qt 4.7 modules are not supported:

  • Phonon
  • QtHelp
  • QtOpenVG
  • QtSvg
  • QtMultimedia

Further information

For additional information on Qt API, see the following sections of Qt documentation: