Qt - Code Examples

All  |  Qt Quick  |  Qt Mobility  |  In-app purchasing  |  Nokia N9 compliant

08 February 2012
Compass v2.1

Compass v2.1

Compass is a Nokia showcase example application that demonstrates the use of the Qt Location API and Nokia Maps with the compass sensor. This application can be used as a traditional compass with Nokia Maps and it allows the user to determine the bearing to the desired direction. The tracking function draws the travelled route to the map and the route can be saved in KML format. This example is hosted in a Nokia Developer Project, where you can find implementation notes, discover recent revisions, and contribute to the project.

23 January 2012
Beta Labs Client v1.1

Beta Labs Client v1.1

This Qt Quick application allows users to browse the applications in Nokia Beta Labs. The main purpose of the application is to demonstrate how to communicate with a web server from QML using AJAX. The application also demonstrates how to create the user interface using multiple QML views and use the Qt Quick Components. This example is hosted in a Nokia Developer Project, where you can find additional documentation, discover recent revisions, and contribute to the project.

29 December 2011
Weather Forecast

Weather Forecast

Weather Forecast is a Nokia Developer example application ported from Windows Phone to Qt. This simple Qt Quick application parses the weather forecast content from XML data retrieved over the network. This example is hosted in Nokia Developer Projects, where you can find implementation and porting notes, discover recent revisions, and contribute to the project.

29 December 2011
Weekly Planner v1.2

Weekly Planner v1.2

The Weekly Planner example application demonstrates the use of the Pivot-type custom-made QML element. This example application is hosted in Nokia Developer Projects where you can also find implementation notes.

22 December 2011
Diner v1.5

Diner v1.5

The Diner example application demonstrates how QML can be used to build a simple, impressive catalog-type application based on local XML data. The updated application uses Qt Quick Components. This example is hosted in a Nokia Developer Project, where you can also find implementation notes, discover recent revisions, and contribute to the project.

21 December 2011
RSS Reader v1.4

RSS Reader v1.4

This example demonstrates the creation of a rich, list based UI with view navigation, search, accordion list, and animations. The UI is built by making extensive use of Qt Quick Components and all components are designed to be reusable in other applications. The list content is populated from RSS feeds. The user can subscribe to additional RSS feeds and subscription information is held in QML local storage. The example also demonstrates how an application's graphical theme can be switched from the settings view.

This version adds support for the Nokia E6 as well as including UI fine tuning and some refactoring.

This example is hosted in a Nokia Developer Project, where you can find the implementation notes.

19 December 2011
Battleships

Battleships

Battleships is a Qt Quick example game of the well-known guessing game played by two people. In this game you have to guess where your opponent's battleships are on the 10 x 10 grid and sink them before the opponent sinks your ships. The game has both single player and two-player modes. In the two-player mode two devices are connected over a Bluetooth connection. This example is hosted in Nokia Developer Projects, where you can find implementation notes, discover recent revisions, and contribute to the project.

29 November 2011
Drumkit

Drumkit

Drumkit is a virtual drumkit that lets you play percussion sounds by tapping sound pads, recording the beats, and playing them back. This example is hosted in Nokia Developer Projects, where you can find implementation notes, discover recent revisions, and contribute to the project.

17 November 2011
RentBook

RentBook

This Nokia Developer example application demonstrates the use of Qt Quick Components and the SQLite database for keeping track of items for rent. RentBook alows the user to add items for rent into a database and, for example, keep track of whom the item is rented to on a certain date. The Symbian version follows the Symbian design guidelines. This example is hosted in a Nokia Developer Project, where you can find implementation notes, discover recent revisions, and contribute to the project.

16 November 2011
Moto Trial Racer v1.2

Moto Trial Racer v1.2

Moto Trial Racer is a motorcycle racing game that demonstrates integrating QML with Box2D physics engine. The game uses Box2D QML plug-in as a base, but the plug-in has been modified to fit for this game. The audio implementation in the game is provided by Qt GameEnabler. The example also features in-application purchasing. The user can purchase items from the Nokia Store to enhance the game experience. The actual items are provided already in the installation but are protected by DRM (Digital Rights Management) and can only be unlocked by Nokia Store. This example is hosted in a Nokia Developer Project, where you can find implementation notes, discover recent revisions, and contribute to the project.

16 November 2011
QuickHit v2.0

QuickHit v2.0

This Nokia Developer example application demonstrates the use of Qt Quick as a game platform. QuickHit is essentially a basic shooting game, but differentiated from other such games by its levels. The levels are Qt plug-ins which are loaded during QuickHit startup. IAP (In-Application-Purchase) features were added to the 2.0 version of the game. New levels can now be purchased from the Nokia Store. This example demonstrates the use of non-DRM purchasing. The levels to purchase are not bundled in the original installation but downloaded from a back-end server once payment has been made. This example is hosted in a Nokia Developer Project, where you can find implementation notes, discover recent revisions, and contribute to the project.

16 November 2011
Space Blok Qt v1.2

Space Blok Qt v1.2

Space Blok Qt is a 1-4 player game for Qt devices and desktop, where the players use marbles to break a 3D block structure. The game is implemented with Qt3D and Qt Quick and it utilises an open source physics engine, Bullet Physics Library. The application has been ported from Space Blok XNA for Windows Phone. This example is hosted in a Nokia Developer Project where you can find implementation and porting notes.

16 November 2011
Tic-Tac-Toe v1.1

Tic-Tac-Toe v1.1

This example application is a networked version of the Tic-Tac-Toe game. The game is cross-platform and supports two players, using sockets for communicating over the network. The application has been ported from Windows Phone to Qt for Symbian devices and the Nokia N9. This example is hosted in a Nokia Developer Project where you can find implementation and porting notes.

31 October 2011
Qt GameEnabler v2.0

Qt GameEnabler v2.0

Qt GameEnabler is a collection of interfaces that enables game and game engine development in the Qt environment. Qt GameEnabler provides a simple framework enabling the use of native OpenGL® ES 2.0 code within a Qt application, and enables applications to achieve the maximum performance by providing direct access to graphics hardware acceleration using OpenGL. An application created with Qt GameEnabler will run on all devices supporting OpenGL ES 2.0.This example is hosted in a Nokia Developer Project, where you can find additional documentation, discover recent revisions, and contribute to the project.

10 October 2011
Bullet Dice v1.1

Bullet Dice v1.1

This demo application creates dice and places them on a virtual table. The user can manipulate the dice with touch and accelerometer events. Simple cube/plane-based physics are applied to the dice with the Bullet physics library. The graphics of this example are implemented with the QtOpenGL module. This example is hosted in a Nokia Developer Project, where you can find implementation notes.

10 October 2011
Qoat of the Hill v1.2

Qoat of the Hill v1.2

This example game deploys the Qt GameEnabler framework and the Games API. The game is a classic Scorched Earth / Worms clone with 2 human players who are trying to drop each other from a randomly generated mountain by shockwaves from their exploding ammunition. This example is hosted in a Nokia Developer Project, where you can find implementation notes.

30 August 2011
FileList

FileList

FileList is a simple example application for browsing multimedia files on a Symbian device. This application, which is ported from a Symbian C++ version, is developed with Qt Quick components and is based on the updated Symbian design guidelines.

01 July 2011
Lucid Screensaver v1.0

Lucid Screensaver v1.0

A simple screensaver project for Qt on Symbian. The screensaver is designed for Symbian^3 AMOLED devices, which allow the continuous displaying of an image with very low power consumption.

28 June 2011
Media Browser v1.0

Media Browser v1.0

The Media Browser example application demonstrates how to use Qt Mobility Gallery API QML bindings and create a visually appealing coverflow view.

28 June 2011
ePong v1.0

ePong v1.0

ePong is an arcade style tennis sports game example. It was first implemented in Symbian C++ and then ported to Qt with Qt GameEnabler. This example is hosted in a Nokia Developer Project.

21 June 2011
AirSwype v1.1

AirSwype v1.1

AirSwype is a Nokia example application where the user must draw the presented figure in the air with the phone as precisely as possible.

21 June 2011
DJ Turntable v1.3

DJ Turntable v1.3

The DJ Turntable Example demonstrates integrating a Qt Quick application to the Qt audio interface.

21 June 2011
Guitar Tuner v1.3

Guitar Tuner v1.3

Guitar Tuner is a Qt Quick example application that demonstrates the integration of Qt audio interfaces. The application can be used to tune guitar strings by analysing the audio recorded by the device microphone.

21 June 2011
Match'em Poker v1.1

Match'em Poker v1.1

The Match'em Poker example application is a 'match 3' type game where you can switch the cards on a grid to form different poker hands in any direction. This example is hosted in a Nokia Developer Project where you can also find the implementation and porting notes. This project was created to study porting this game from iOS to the Qt platform using Qt GameEnabler.

21 June 2011
Qt Bubble Level v1.3

Qt Bubble Level v1.3

This application demonstrates how to use Qt Quick with the accelerometer sensor that is part of Qt Mobility.

21 June 2011
Qt Quick Playground v1.4

Qt Quick Playground v1.4

This QML application demonstrates the features of Qt Quick with a set of demos and the possibility to view the source code of the demos.

21 June 2011
Solitaire Qt v1.7

Solitaire Qt v1.7

This Qt C++ example application is a cross-platform solitaire game that runs in different Qt environments such as the Symbian platform, Maemo, and desktop Windows.

21 June 2011
Sudokumaster Qt Quick v1.1

Sudokumaster Qt Quick v1.1

Sudokumaster is a Sudoku mobile game developed with Qt Quick.

26 May 2011
WhoWhere Daemon

WhoWhere Daemon

This Qt Quick/Qt C++ example application demonstrates how to use the Qt Mobility Service Framework.

14 April 2011
Mirror House

Mirror House

This Qt C++ example application demonstrates how to use the QCamera from the QtMobility Multimedia module and how to create a circus-style mirror effect with it.

01 April 2011
QML Templates

QML Templates

The QML UI Templates Library provides commonly used UI components for generic use with QML.

21 March 2011
QCamera Example v1.1

QCamera Example v1.1

This Qt C++ example application shows the viewfinder picture from the device camera and allows the user to capture images, store them, and send them as MMS messages.

23 February 2011
Qt: QWhoWhere Example v1.2

Qt: QWhoWhere Example v1.2

This Qt example application demonstrates how to use the Qt Mobility APIs. The Qt Mobility project delivers a set of new APIs to Qt, offering features that are well known from the mobile device world, particularly mobile phones.

20 January 2011
Qt Quick: MultiWindows Example v1.1

Qt Quick: MultiWindows Example v1.1

This Qt Quick example application demonstrates how to create an application that uses multiple windows.

03 January 2011

QtWebKit: ListEm Example v1.1

ListEm is a hybrid application which demonstrates software development using web technologies and Qt native code.

23 December 2010

Qt: QFriendFeed Example

This Qt C++ example application demonstrates using the RESTful API and SAX parser to retrieve, post, and parse XML data. It also shows how a cross-platform UI can be tailored using CSS style sheets.

22 December 2010

Qt: Noughts and Crosses Game Example v1.3

This Qt example application is a cross-platform application with a custom layout using QLayoutManager and style sheets for buttons supporting touch UI and keyboard.

26 October 2010

Qt: QAnimatedGallery Example v1.2

This cross-platform Qt code example demonstrates the Qt Animation Framework. The application uses different transition effects to show images to the user.

14 October 2010
QtWebKit: Cartoon Reader Example v1.2

QtWebKit: Cartoon Reader Example v1.2

Cartoon Reader is a Qt WebKit application that demonstrates the use of web technologies such as HTML5 and CSS3 with Qt native code.

12 October 2010

Qt: QRentBook Example v1.2

This Qt C++ application demonstrates how to use the QtSql module to access a SQLite 3 database.

08 September 2010

Qt: QMobilePaint Example v1.2

This updated Qt code example demonstrates drawing on the touch UI. Tested on Maemo and Symbian.

08 April 2010

Qt: QTabs Example v1.1

This Qt C++ application demonstrates how to implement a Qt application with tabs.

29 March 2010

Qt: QSharedMemory Example v1.2

This Qt C++ client/server application demonstrates how to share memory between processes.

28 January 2010

QtWebKit: Beta Labs Example

This Qt hybrid application demonstrates how to use the QtWebKit module to display web content in Qt.

12 January 2010

Qt for Symbian: QMemoryGame Example v1.2

This Qt C++ example application demonstrates how to implement the Qt UI with animation on top of an existing Open C++ engine.

30 December 2009

Simple Qt Animation Example

This Qt application proves how easily you can use the Qt Animation Framework to create animations and transitions for Qt applications. The example has been tested to work on the Nokia N97 mini, Nokia N900 and MacOS, Linux, and Windows.

01 December 2009

Qt for Symbian Examples v1.4

This updated package contains five basic Qt for Symbian example applications.

22 October 2009

Maemo 5: Hello World Example v1.0

This basic Hello World example is a part of the Get started with Maemo 5 e-learning module.

22 October 2009

Qt for Symbian: qutIM Example v1.0 Beta

This Qt example application is a qutIM instant messaging application ported for the Symbian platform. The application is an open source multi-protocol instant messenger for Windows and Linux systems. This example shows how it has been ported from the desktop to the Qt for Symbian environment. The application supports touch UI. This example is based on qutIM codes qutim-02_beta2 (http://www.qutim.org/uploads/src/qutim-0.2_beta2.tar.gz). Porting notes are provided in the Qt for Symbian Developer's Library. Important classes: QWizard, QTreeView, QTcpSocket, QHostAddress, QWebPage, QPluginLoader.

02 October 2009

Qt: QPlugin Example v1.2

This Qt C++ example application demonstrates how to extend an application with Qt plug-ins.

02 October 2009

Qt: QSimpleImageViewer Example v1.1

This Qt C++ application demonstrates how to scale, load, and convert images and show them on the screen.

29 June 2009

Qt for S60: QStackedWidget Example

This Qt C++ application provides a method to implement multiple views in Qt for S60 applications (an alternative to using tabs). Views (QWidgets) are stored in a stack (QStackedWidget). On application startup, only the default view is created in the stack. To optimise memory consumption, the other views are not created until they are needed. Every view has its own Options menu and CBA buttons with view-specific commands. The example has been tested to work on S60 3rd Edition and 5th Edition devices with Qt for S60 4.5.2 Tower release. Important classes: QWidget, QStackedWidget, QMainWindow.

Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2012 All rights reserved