summaryrefslogtreecommitdiffstats
path: root/doc/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/examples')
-rw-r--r--doc/src/examples/qml-calculator.qdoc36
-rw-r--r--doc/src/examples/qml-examples.qdoc939
-rw-r--r--doc/src/examples/qml-extending.qdoc303
-rw-r--r--doc/src/examples/qml-flickr.qdoc37
-rw-r--r--doc/src/examples/qml-folderlistmodel.qdoc138
-rw-r--r--doc/src/examples/qml-minehunt.qdoc37
-rw-r--r--doc/src/examples/qml-photoviewer.qdoc36
-rw-r--r--doc/src/examples/qml-rssnews.qdoc36
-rw-r--r--doc/src/examples/qml-samegame.qdoc37
-rw-r--r--doc/src/examples/qml-snake.qdoc37
-rw-r--r--doc/src/examples/qml-twitter.qdoc37
-rw-r--r--doc/src/examples/qml-webbrowser.qdoc39
12 files changed, 1712 insertions, 0 deletions
diff --git a/doc/src/examples/qml-calculator.qdoc b/doc/src/examples/qml-calculator.qdoc
new file mode 100644
index 00000000..bc60c853
--- /dev/null
+++ b/doc/src/examples/qml-calculator.qdoc
@@ -0,0 +1,36 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Calculator
+ \example demos/declarative/calculator
+ \depends helper/qmlapplicationviewer
+
+ \brief The Qt Quick Calculator demo shows how to write a simple calculator application in QML and JavaScript.
+
+ \image qml-calculator-example.png
+*/
diff --git a/doc/src/examples/qml-examples.qdoc b/doc/src/examples/qml-examples.qdoc
new file mode 100644
index 00000000..4edfc286
--- /dev/null
+++ b/doc/src/examples/qml-examples.qdoc
@@ -0,0 +1,939 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Animation: Basics Example
+ \example declarative/animation/basics/color-animation
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create and combine \l{QML Animation}{animations} in QML.
+
+ \table
+ \row
+ \o \image qml-coloranim-example.png
+ \row
+ \o color-animation.qml
+ \endtable
+*/
+
+/*!
+ \title Animation: Basics Property Animation Example
+ \example declarative/animation/basics/property-animation
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create and combine \l{QML Animation}{animations} in QML.
+
+ \table
+ \row
+ \o \image qml-propertyanim-example.png
+ \row
+ \o property-animation.qml
+ \endtable
+*/
+
+/*!
+ \title Animation: Behavior Example
+ \example declarative/animation/behaviors/behavior-example
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use QML behaviors.
+
+ \image qml-behaviors-example.png
+*/
+
+/*!
+ \title Animation: Wiggly Text Example
+ \example declarative/animation/behaviors/wigglytext
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to animate text.
+
+*/
+
+/*!
+ \title Animation: Easing Example
+ \example declarative/animation/easing
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows the different easing modes available for \l{QML Animation}{animations}.
+
+ \image qml-easing-example.png
+*/
+
+/*!
+ \title Animation: States Example
+ \example declarative/animation/states
+
+ \brief These examples show how to use states and transitions.
+
+ \depends helper/qmlapplicationviewer
+
+ The \c states.qml example shows how an item can change between states, and \c transitions.qml
+ shows how these state changes can be animated.
+
+ \note Due to deployment configurations transitions.qml is opened by default when running this example.
+ states.qml can be opened by editing the main.cpp file.
+
+ \table
+ \row
+ \o \image qml-states-example.png
+ \row
+ \o states.qml
+ \endtable
+
+ \table
+ \row
+ \o \image qml-transitions-example.png
+ \row
+ \o transitions.qml
+ \endtable
+*/
+
+/*!
+ \title Image Elements: Border Image Example
+ \example declarative/imageelements/borderimage
+
+ \brief These examples show how to use the BorderImage element.
+
+ \depends helper/qmlapplicationviewer
+
+ \table
+ \row
+ \o \image qml-borderimage-example.png
+ \row
+ \o borderimage.qml
+ \endtable
+*/
+
+/*!
+ \title Image Elements: Shadows Image Example
+ \example declarative/imageelements/shadows
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the BorderImage element.
+
+ \table
+ \row
+ \o \image qml-borderimage-shadows-example.png
+ \row
+ \o shadows.qml
+ \endtable
+*/
+
+/*!
+ \title Image Elements: Image Example
+ \example declarative/imageelements/image
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the \l Image element and its \l{Image::fillMode}{fillModes}.
+
+
+ \image qml-image-example.png
+*/
+
+/*!
+ \page declarative-cppextensions-reference.html
+ \title C++ Extensions: Reference examples
+
+ \brief These examples show how QML can be extended from C++ in various ways.
+
+ The code for these examples is used throughout the \l {Extending QML Functionalities using C++} reference
+ documentation, which highlights the main principles demonstrated in each example.
+
+ Furthermore, here are additional pages that discuss each example in detail:
+
+ \list
+ \o \l {declarative/cppextensions/referenceexamples/adding}{Adding Types}
+ \o \l {declarative/cppextensions/referenceexamples/properties}{Object and List Property Types}
+ \o \l {declarative/cppextensions/referenceexamples/coercion}{Inheritance and Coercion}
+ \o \l {declarative/cppextensions/referenceexamples/default}{Default Property}
+ \o \l {declarative/cppextensions/referenceexamples/grouped}{Grouped Properties}
+ \o \l {declarative/cppextensions/referenceexamples/attached}{Attached Properties}
+ \o \l {declarative/cppextensions/referenceexamples/signal}{Signal Support}
+ \o \l {declarative/cppextensions/referenceexamples/methods}{Methods Support}
+ \o \l {declarative/cppextensions/referenceexamples/valuesource}{Property Value Source}
+ \o \l {declarative/cppextensions/referenceexamples/binding}{Binding}
+ \endlist
+
+ \note These examples all print information to the console to demonstrate the concepts presented.
+ Ensure that you are able to view the application output when running these examples.
+ For example, the dbgView tool on Windows can be used to display application output.
+*/
+
+/*!
+ \title C++ Extensions: Plugins Example
+ \example declarative/cppextensions/plugins
+
+ \brief This example shows how to create a C++ plugin extension by subclassing QDeclarativeExtensionPlugin.
+
+ \image qml-plugins-example.png
+*/
+
+/*!
+ \title LayoutItem Example
+ \example declarative/cppextensions/qgraphicslayouts/layoutitem
+
+ \brief This example show how to use the LayoutItem element to integrate QML items into an existing
+ \l{Graphics View Framework}{Graphics View}-based application.
+
+ \image qml-layoutitem-example.png
+*/
+/*!
+ \title QGraphicsGridLayout Example
+ \example declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout
+
+ \brief This example shows how to use QGraphicsGridLayout to lay out QML items. This is
+ useful if you need to integrate Qt \l{Graphics View Framework}{Graphics View} layouts with
+ QML.
+
+ \image qml-qgraphicsgridlayout-example.png
+*/
+/*!
+ \title QGraphicsLinearLayout Example
+ \example declarative/cppextensions/qgraphicslayouts/qgraphicslinearlayout
+
+ \brief This example shows how to use QGraphicsLinearLayout to lay out QML items. This is
+ useful if you need to integrate Qt \l{Graphics View Framework}{Graphics View} layouts with
+ QML.
+
+ \image qml-qgraphicslinearlayout-example.png
+*/
+/*!
+ \title C++ Extensions: QGraphicsLayouts examples
+ \page declarative-cppextensions-qgraphicslayouts.html
+
+ \brief These examples show how to integrate \l{Graphics View Framework}{Graphics View}
+ layout components with QML:
+
+ \list
+ \o \l{declarative/cppextensions/qgraphicslayouts/layoutitem}{LayoutItem}
+ \o \l{declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout}{QGraphicsGridLayout}
+ \o \l{declarative/cppextensions/qgraphicslayouts/qgraphicslinearlayout}{QGraphicsLinearLayout}
+ \endlist
+
+ Also see \l {Integrating QML Code with Existing Qt UI Code} for information on using QML
+ in Qt applications that use the Graphics View framework or ordinary QWidget-based views.
+*/
+
+/*!
+ \title C++ Extensions: QWidgets Example
+ \example declarative/cppextensions/qwidgets
+
+ \brief This example shows how to embed QWidget-based objects into QML using QGraphicsProxyWidget.
+
+ \image qml-qwidgets-example.png
+*/
+
+/*!
+ \title C++ Extensions: Image Provider Example
+ \example declarative/cppextensions/imageprovider
+
+ \brief This examples shows how to use QDeclarativeImageProvider to serve images
+ to QML image elements.
+
+ \image qml-imageprovider-example.png
+*/
+
+/*!
+ \title C++ Extensions: Network Access Manager Factory Example
+ \example declarative/cppextensions/networkaccessmanagerfactory
+
+ \brief This example shows how to use QDeclarativeNetworkAccessManagerFactory to create a QNetworkAccessManager
+ with a proxy.
+*/
+
+/*!
+ \title Internationalization Example
+ \example declarative/i18n
+ \ingroup internationalization
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to enable text translation in QML.
+
+ \image qml-i18n-example.png
+
+ \section1 Introduction
+
+ The QML runtime automatically loads a translation from the i18n subdirectory
+ of the root QML file, based on the system language. The translations are
+ held in QM files that must be generated from TS files.
+
+ \section1 Updating Translations
+
+ The \c{.ts} files are created and updated by running:
+
+ \code
+ lupdate i18n.qml -ts i18n/base.ts
+ \endcode
+
+ If no translation file exists, one will be created. If a file already exists,
+ it will be updated to contain the latest strings from the QML file.
+
+ Translations for new languages are created by copying \c{i18n/base.ts} to
+ \c{i18n/qml_<lang>.ts} The TS files can then be edited with
+ \l{Qt Linguist Manual}{Qt Linguist}:
+
+ \code
+ linguist i18n/qml_fr.ts
+ \endcode
+
+ The run-time translation files are then generated by running:
+
+ \code
+ lrelease i18n/*.ts
+ \endcode
+*/
+
+/*!
+ \title Right-to-left User Interfaces: Text Alignment Example
+ \example declarative/righttoleft/textalignment
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how the horizontal alignment of \l Text,
+ \l TextInput and \l TextEdit is affected by the reading direction
+ of the text and by the layout mirrroring.
+
+ Click on the gray buttons
+ shown at the bottom of the example to toggle between different
+ horizontal alignment options.
+
+ \sa {QML Right-to-left User Interfaces}
+*/
+
+/*!
+ \title Right-to-left User Interfaces: Layout Direction Example
+ \example declarative/righttoleft/layoutdirection
+ \depends helper/qmlapplicationviewer
+
+ \ brief This example shows how to control the horizontal layout direction of
+ \l Row, \l Grid and \l Flow positioners, and \l ListView and \l GridView
+ model views.
+
+ Click on the gray buttons shown at the bottom of the example
+ to toggle the layout direction of the shown elements.
+
+ \image qml-righttoleft-layoutdirection-example.png
+
+ \sa {QML Right-to-left User Interfaces}
+*/
+
+
+/*!
+ \title Right-to-left User Interfaces: Layout Mirroring Example
+ \example declarative/righttoleft/layoutmirroring
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to mirror the application layouts
+ using \l LayoutMirroring attached property.
+
+ Click on the grey button shown at the bottom of the example to
+ enable or disable the layout mirroring.
+
+ \image qml-righttoleft-layoutmirroring-example.png
+
+ \sa {QML Right-to-left User Interfaces}
+*/
+
+/*!
+ \title Positioners Example
+ \example declarative/positioners
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use positioner elements such as \l Row, \l Column,
+ \l Grid and \l Flow.
+
+ \image qml-positioners-example.png
+*/
+
+/*!
+ \title Key Interaction: Focus Example
+ \example declarative/keyinteraction/focus
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to handle keyboard input and focus in QML.
+
+ \image qml-focus-example.png
+*/
+
+/*!
+ \title Models and Views: AbstractItemModel Example
+ \example declarative/modelviews/abstractitemmodel
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use a QAbstractItemModel subclass as a model in QML.
+
+ \image qml-abstractitemmodel-example.png
+*/
+
+/*!
+ \title Models and Views: GridView Example
+ \example declarative/modelviews/gridview
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the GridView element.
+
+ \image qml-gridview-example.png
+*/
+
+/*!
+ \title Models and Views: ListView Examples
+ \page qml-listview-examples.html
+
+ \list
+ \o \l {Models and Views: Dynamic List ListView Example}
+ \o \l {Models and Views: Expanding Delegate ListView Example}
+ \o \l {Models and Views: Highlight ListView Example}
+ \o \l {Models and Views: Highlight Ranges ListView Example}
+ \o \l {Models and Views: Sections ListView Example}
+ \endlist
+
+*/
+
+/*!
+ \title Models and Views: Dynamic List ListView Example
+ \example declarative/modelviews/listview/dynamiclist
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how items can be dynamically added to
+ and removed from a ListModel, and how these list
+ modifications can be animated.
+
+ \table
+ \row
+ \o \image qml-listview-dynamiclist-example.png
+ \row
+ \o dynamiclist.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: Expanding Delegate ListView Example
+ \example declarative/modelviews/listview/expandingdelegates
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create a dynamic delegate, which
+ expands when selected.
+
+ \table
+ \row
+ \o \image qml-listview-expandingdelegates-example.png
+ \row
+ \o expandingdelegates.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: Highlight ListView Example
+ \example declarative/modelviews/listview/highlight
+ \depends helper/qmlapplicationviewer
+
+
+ \brief This example shows how to highlight one item
+ inside a ListView element.
+
+ \table
+ \row
+ \o \image qml-listview-highlight-example.png
+ \row
+ \o highlight.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: Highlight Ranges ListView Example
+ \example declarative/modelviews/listview/highlightranges
+ \depends helper/qmlapplicationviewer
+
+
+ \brief This example shows how to highlight ranges within a
+ ListView element.
+
+ \table
+ \row
+ \o \image qml-listview-highlightranges-example.png
+ \row
+ \o highlightranges.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: Sections ListView Example
+ \example declarative/modelviews/listview/sections
+ \depends helper/qmlapplicationviewer
+
+
+ \brief This example shows how to use the ListView element.
+
+ \table
+ \row
+ \o \image qml-listview-sections-example.png
+ \row
+ \o sections.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: PathView Example
+ \example declarative/modelviews/pathview
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the PathView element.
+
+ \image qml-pathview-example.png
+*/
+
+/*!
+ \title Models and Views: Object ListModel Example
+ \example declarative/modelviews/objectlistmodel
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use a QList<QObject*> as a model in QML.
+
+ \image qml-objectlistmodel-example.png
+*/
+
+/*!
+ \title Models and Views: Package Example
+ \example declarative/modelviews/package
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the \l Package element.
+
+ \image qml-package-example.png
+*/
+
+/*!
+ \title Models and Views: Parallax Example
+ \example declarative/modelviews/parallax
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to combine and switch between views.
+
+ \image qml-parallax-example.png
+*/
+
+/*!
+ \title Models and Views: String ListModel Example
+ \example declarative/modelviews/stringlistmodel
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use a QStringList as a model in QML.
+
+ \image qml-stringlistmodel-example.png
+*/
+
+/*!
+ \title Models and Views: VisualItemModel Example
+ \example declarative/modelviews/visualitemmodel
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the VisualItemModel element.
+
+ \image qml-visualitemmodel-example.png
+*/
+
+/*!
+ \title Models and Views: WebView Examples
+ \page qml-webview-examples.html
+
+ \brief These examples show how to use the WebView element.
+
+ \list
+ \o \l {Models and Views: Alert WebView Example}
+ \o \l {Models and Views: Autosize WebView Example}
+ \o \l {Models and Views: GoogleMaps WebView Example}
+ \o \l {Models and Views: Inline HTML WebView Example}
+ \o \l {Models and Views: New Windows WebView Example}
+ \endlist
+
+
+*/
+/*!
+ \title Models and Views: Alert WebView Example
+ \example declarative/modelviews/webview/alerts
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create an alert in the WebView element.
+
+ \table
+ \row
+ \o \image qml-webview-alert-example.png
+ \row
+ \o alert.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: Autosize WebView Example
+ \example declarative/modelviews/webview/autosize
+ \depends helper/qmlapplicationviewer
+
+ \brief This example show how to use autosizing in the WebView element.
+
+ \table
+ \row
+ \o \image qml-webview-autosize-example.png
+ \row
+ \o autosize.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: GoogleMaps WebView Example
+ \example declarative/modelviews/webview/googlemaps
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use a web service API and the WebView element.
+
+ \table
+ \row
+ \o \image qml-webview-googlemaps-example.png
+ \row
+ \o googlemaps.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: Inline HTML WebView Example
+ \example declarative/modelviews/webview/inlinehtml
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use inline HTML with the WebView element.
+
+ \table
+ \row
+ \o \image qml-webview-inlinehtml-example.png
+ \row
+ \o inlinehtml.qml
+ \endtable
+*/
+
+/*!
+ \title Models and Views: New Windows WebView Example
+ \example declarative/modelviews/webview/newwindows
+ \depends helper/qmlapplicationviewer
+
+ \brief These examples show how to create new windows in the WebView element.
+
+ \table
+ \row
+ \o \image qml-webview-newwindows-example.png
+ \row
+ \o newwindows.qml
+ \endtable
+*/
+
+/*!
+ \title Screen Orientation
+ \example declarative/screenorientation
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to implement screen orientation support for your application.
+*/
+
+/*!
+ \title SQL Local Storage Example
+ \example declarative/sqllocalstorage
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the SQL Local Storage API in QML.
+*/
+
+/*!
+ \title Text: Fonts Example
+ \example declarative/text/fonts
+ \depends helper/qmlapplicationviewer
+
+ \brief These examples show how to discover available fonts from QML.
+
+ \table
+ \row
+ \o \image qml-fonts-availableFonts-example.png
+ \row
+ \o availableFonts.qml
+ \endtable
+*/
+
+/*!
+ \title Text: Banner Fonts Example
+ \example declarative/text/fonts/banner
+ \depends helper/qmlapplicationviewer
+
+ \brief These example shows how to manipulate text in various ways.
+
+ \table
+ \row
+ \o \image qml-fonts-banner-example.png
+ \row
+ \o banner.qml
+ \endtable
+*/
+
+/*!
+ \title Text: Fonts Example
+ \example declarative/text/fonts/fonts
+ \depends helper/qmlapplicationviewer
+
+ \brief These examples shows how to display a text with multiple fonts.
+
+ \table
+ \row
+ \o \image qml-fonts-fonts-example.png
+ \row
+ \o fonts.qml
+ \endtable
+*/
+
+/*!
+ \title Text: Hello Fonts Example
+ \example declarative/text/fonts/hello
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to manipulate text in various ways.
+
+ \table
+ \row
+ \o \image qml-fonts-hello-example.png
+ \row
+ \o hello.qml
+ \endtable
+*/
+
+/*!
+ \title Text: Text Selection Example
+ \example declarative/text/textselection
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how text selection, copy and paste operations
+ can be implemented on top of the TextEdit element.
+
+ \image qml-textselection-example.png
+*/
+
+/*!
+ \title Threading: Threaded ListModel Example
+ \example declarative/threading/threadedlistmodel
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use a ListModel from multiple threads using
+ WorkerScript.
+*/
+
+/*!
+ \title Threading: WorkerScript Example
+ \example declarative/threading/workerscript
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the WorkerScript element for threading in QML.
+*/
+
+/*!
+ \title Toys: Clocks Example
+ \example declarative/toys/clocks
+ \depends helper/qmlapplicationviewer
+
+ \brief This example displays a set of clocks with different times for different cities.
+
+ Each clock is created by combining \l Image elements with \l Rotation transforms
+ and \l SpringAnimation behaviors.
+
+ \image qml-clocks-example.png
+*/
+
+/*!
+ \title Toys: Corkboards Example
+ \example declarative/toys/corkboards
+ \depends helper/qmlapplicationviewer
+
+ \brief This example presents a flickable set of interactive corkboards. It is created
+ through a combination of elements like \l ListModel, \l Repeater and \l TextEdit
+ together with rotation and scaling transforms, animation and mouse interaction.
+
+ \image qml-corkboards-example.png
+*/
+
+/*!
+ \title Toys: Dynamic Scene Example
+ \example declarative/toys/dynamicscene
+ \depends helper/qmlapplicationviewer
+
+ \brief This example presents an interactive drag-and-drop scene. It demonstrates
+ how to use QML's \l{Dynamic Object Creation} support to dynamically create and
+ destroy objects.
+
+ \image qml-dynamicscene-example.png
+*/
+
+/*!
+ \title Toys: Tic-Tac-Toe Example
+ \example declarative/toys/tic-tac-toe
+ \depends helper/qmlapplicationviewer
+
+ \brief This example presents a simple implementation of Tic Tac Toe.
+
+ \image qml-tic-tac-toe-example.png
+*/
+
+/*!
+ \title Toys: TV Tennis Example
+ \example declarative/toys/tvtennis
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use animation components such as \l SpringAnimation,
+ \l SequentialAnimation and \l PropertyAction to create a game of TV tennis.
+
+ \image qml-tvtennis-example.png
+*/
+
+/*!
+ \title Touch Interaction: Gestures Example
+ \example declarative/touchinteraction/gestures
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the GestureArea element.
+*/
+
+/*!
+ \title Touch Interaction: MouseArea Example
+ \example declarative/touchinteraction/mousearea
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the MouseArea element to access information
+ about mouse input.
+
+ \image qml-mousearea-example.png
+*/
+
+/*!
+ \title UI Components: Dial Control Example
+ \example declarative/ui-components/dialcontrol
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create a dial-type control. It combines
+ \l Image elements with \l Rotation transforms and \l SpringAnimation behaviors
+ to produce an interactive speedometer-type dial.
+
+ \image qml-dialcontrol-example.png
+*/
+
+
+/*!
+ \title UI Components: Flipable Example
+ \example declarative/ui-components/flipable
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the \l Flipable element.
+
+ \image qml-flipable-example.png
+*/
+
+/*!
+ \title UI Components: Progress Bars Example
+ \example declarative/ui-components/progressbar
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create a progress bar.
+
+ \image qml-progressbar-example.png
+*/
+
+/*!
+ \title UI Components: Scroll Bar Example
+ \example declarative/ui-components/scrollbar
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create scroll bars for a \l Flickable element
+ using the \l {Flickable::visibleArea.xPosition}{Flickable::visibleArea}
+ properties.
+
+ \image qml-scrollbar-example.png
+*/
+
+/*!
+ \title UI Components: Search Box Example
+ \example declarative/ui-components/searchbox
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to combine TextInput, FocusScope and BorderImage
+ elements to display multiple text input fields.
+
+ \image qml-searchbox-example.png
+*/
+
+/*!
+ \title UI Components: Slide Switch Example
+ \example declarative/ui-components/slideswitch
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create a slide switch control.
+
+ \image qml-slideswitch-example.png
+*/
+
+/*!
+ \title UI Components: Spinner Example
+ \example declarative/ui-components/spinner
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create a spinner-type component using the PathView element.
+
+ \image qml-spinner-example.png
+*/
+
+/*!
+ \title UI Components: Tab Widget Example
+ \example declarative/ui-components/tabwidget
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create a tab widget. It also demonstrates how
+ \l {Property aliases}{property aliases} and
+ \l {Introduction to the QML Language#Default Properties}{default properties} can be used to collect and
+ assemble the child items declared within an \l Item.
+
+ \image qml-tabwidget-example.png
+*/
+
+/*!
+ \title XML: XMLHttpRequest Example
+ \example declarative/xml/xmlhttprequest
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to use the \l XmlHttpRequest API in QML.
+
+ \image qml-xmlhttprequest-example.png
+*/
+
+/*!
+ \title Labs: Shader Effects
+ \example declarative/shadereffects
+ \depends helper/qmlapplicationviewer
+
+ \brief This example shows how to create visual effects by using OpenGL shading language together with QML using \l ShaderEffectItem and \l ShaderEffectSource APIs.
+
+ \image qml-shadereffects-example.png
+*/
+
diff --git a/doc/src/examples/qml-extending.qdoc b/doc/src/examples/qml-extending.qdoc
new file mode 100644
index 00000000..fdf4f55e
--- /dev/null
+++ b/doc/src/examples/qml-extending.qdoc
@@ -0,0 +1,303 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+\example declarative/cppextensions/referenceexamples/adding
+\title Extending QML - Adding Types Example
+
+\brief The Adding Types Example shows how to add a new element type, \c Person, to QML.
+
+The \c Person type can be used from QML like this:
+
+\snippet examples/declarative/cppextensions/referenceexamples/adding/example.qml 0
+
+\section1 Declare the Person class
+
+All QML elements map to C++ types. Here we declare a basic C++ Person class
+with the two properties we want accessible on the QML type - name and shoeSize.
+Although in this example we use the same name for the C++ class as the QML
+element, the C++ class can be named differently, or appear in a namespace.
+
+\snippet examples/declarative/cppextensions/referenceexamples/adding/person.h 0
+
+\section1 Define the Person class
+
+\snippet examples/declarative/cppextensions/referenceexamples/adding/person.cpp 0
+
+The Person class implementation is quite basic. The property accessors simply
+return members of the object instance.
+
+The \c main.cpp file also calls the \c qmlRegisterType() function to
+register the \c Person type with QML as a type in the People library version 1.0,
+and defines the mapping between the C++ and QML class names.
+
+\section1 Running the example
+
+The main.cpp file in the example includes a simple shell application that
+loads and runs the QML snippet shown at the beginning of this page.
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/properties
+\title Extending QML - Object and List Property Types Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+The Object and List Property Types example shows how to add object and list
+properties in QML. This example adds a BirthdayParty element that specifies
+a birthday party, consisting of a celebrant and a list of guests. People are
+specified using the People QML type built in the previous example.
+
+\snippet examples/declarative/cppextensions/referenceexamples/properties/example.qml 0
+
+\section1 Declare the BirthdayParty
+
+The BirthdayParty class is declared like this:
+
+\snippet examples/declarative/cppextensions/referenceexamples/properties/birthdayparty.h 0
+\snippet examples/declarative/cppextensions/referenceexamples/properties/birthdayparty.h 1
+\snippet examples/declarative/cppextensions/referenceexamples/properties/birthdayparty.h 2
+\snippet examples/declarative/cppextensions/referenceexamples/properties/birthdayparty.h 3
+
+The class contains a member to store the celebrant object, and also a
+QList<Person *> member.
+
+In QML, the type of a list properties - and the guests property is a list of
+people - are all of type QDeclarativeListProperty<T>. QDeclarativeListProperty is simple value
+type that contains a set of function pointers. QML calls these function
+pointers whenever it needs to read from, write to or otherwise interact with
+the list. In addition to concrete lists like the people list used in this
+example, the use of QDeclarativeListProperty allows for "virtual lists" and other advanced
+scenarios.
+
+\section2 Define the BirthdayParty
+
+The implementation of BirthdayParty property accessors is straight forward.
+
+\snippet examples/declarative/cppextensions/referenceexamples/properties/birthdayparty.cpp 0
+
+\section1 Running the example
+
+The main.cpp file in the example includes a simple shell application that
+loads and runs the QML snippet shown at the beginning of this page.
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/coercion
+\title Extending QML - Inheritance and Coercion Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Object and List Property Types Example}
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+The Inheritance and Coercion Example shows how to use base classes to assign
+elements of more than one type to a property. It specializes the Person element
+developed in the previous examples into two elements - a \c Boy and a \c Girl.
+
+\snippet examples/declarative/cppextensions/referenceexamples/coercion/example.qml 0
+
+\section1 Declare Boy and Girl
+
+\snippet examples/declarative/cppextensions/referenceexamples/coercion/person.h 0
+
+The Person class remains unaltered in this example and the Boy and Girl C++
+classes are trivial extensions of it. As an example, the inheritance used here
+is a little contrived, but in real applications it is likely that the two
+extensions would add additional properties or modify the Person classes
+behavior.
+
+\section2 Define People as a base class
+
+The implementation of the People class itself has not changed since the the
+previous example. However, as we have repurposed the People class as a common
+base for Boy and Girl, we want to prevent it from being instantiated from QML
+directly - an explicit Boy or Girl should be instantiated instead.
+
+\snippet examples/declarative/cppextensions/referenceexamples/coercion/main.cpp 0
+
+While we want to disallow instantiating Person from within QML, it still needs
+to be registered with the QML engine, so that it can be used as a property type
+and other types can be coerced to it.
+
+\section2 Define Boy and Girl
+
+The implementation of Boy and Girl are trivial.
+
+\snippet examples/declarative/cppextensions/referenceexamples/coercion/person.cpp 1
+
+All that is necessary is to implement the constructor, and to register the types
+and their QML name with the QML engine.
+
+\section1 Running the example
+
+The BirthdayParty element has not changed since the previous example. The
+celebrant and guests property still use the People type.
+
+\snippet examples/declarative/cppextensions/referenceexamples/coercion/birthdayparty.h 0
+
+However, as all three types, Person, Boy and Girl, have been registered with the
+QML system, on assignment QML automatically (and type-safely) converts the Boy
+and Girl objects into a Person.
+
+The main.cpp file in the example includes a simple shell application that
+loads and runs the QML snippet shown at the beginning of this page.
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/default
+\title Extending QML - Default Property Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Inheritance and Coercion Example}
+\o \l {Extending QML - Object and List Property Types Example}
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+The Default Property Example is a minor modification of the
+\l {Extending QML - Inheritance and Coercion Example} that simplifies the
+specification of a BirthdayParty through the use of a default property.
+
+\snippet examples/declarative/cppextensions/referenceexamples/default/example.qml 0
+
+\section1 Declaring the BirthdayParty class
+
+The only difference between this example and the last, is the addition of the
+\c DefaultProperty class info annotation.
+
+\snippet examples/declarative/cppextensions/referenceexamples/default/birthdayparty.h 0
+
+The default property specifies the property to assign to whenever an explicit
+property is not specified, in the case of the BirthdayParty element the guest
+property. It is purely a syntactic simplification, the behavior is identical
+to specifying the property by name, but it can add a more natural feel in many
+situations. The default property must be either an object or list property.
+
+\section1 Running the example
+
+The main.cpp file in the example includes a simple shell application that
+loads and runs the QML snippet shown at the beginning of this page.
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/grouped
+\title Extending QML - Grouped Properties Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Default Property Example}
+\o \l {Extending QML - Inheritance and Coercion Example}
+\o \l {Extending QML - Object and List Property Types Example}
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/attached
+\title Extending QML - Attached Properties Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Grouped Properties Example}
+\o \l {Extending QML - Default Property Example}
+\o \l {Extending QML - Inheritance and Coercion Example}
+\o \l {Extending QML - Object and List Property Types Example}
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/signal
+\title Extending QML - Signal Support Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Attached Properties Example}
+\o \l {Extending QML - Grouped Properties Example}
+\o \l {Extending QML - Default Property Example}
+\o \l {Extending QML - Inheritance and Coercion Example}
+\o \l {Extending QML - Object and List Property Types Example}
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/methods
+\title Extending QML - Methods Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Default Property Example}
+\o \l {Extending QML - Inheritance and Coercion Example}
+\o \l {Extending QML - Object and List Property Types Example}
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/valuesource
+\title Extending QML - Property Value Source Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Signal Support Example}
+\o \l {Extending QML - Attached Properties Example}
+\o \l {Extending QML - Grouped Properties Example}
+\o \l {Extending QML - Default Property Example}
+\o \l {Extending QML - Inheritance and Coercion Example}
+\o \l {Extending QML - Object and List Property Types Example}
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+*/
+
+/*!
+\example declarative/cppextensions/referenceexamples/binding
+\title Extending QML - Binding Example
+
+This example builds on:
+\list
+\o \l {Extending QML - Property Value Source Example}
+\o \l {Extending QML - Signal Support Example}
+\o \l {Extending QML - Attached Properties Example}
+\o \l {Extending QML - Grouped Properties Example}
+\o \l {Extending QML - Default Property Example}
+\o \l {Extending QML - Inheritance and Coercion Example}
+\o \l {Extending QML - Object and List Property Types Example}
+\o \l {Extending QML - Adding Types Example}
+\endlist
+
+*/
diff --git a/doc/src/examples/qml-flickr.qdoc b/doc/src/examples/qml-flickr.qdoc
new file mode 100644
index 00000000..626a37bf
--- /dev/null
+++ b/doc/src/examples/qml-flickr.qdoc
@@ -0,0 +1,37 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Flickr Mobile
+ \example demos/declarative/flickr
+
+ \brief The Qt Quick Flickr Mobile demo shows how to write a mobile Flickr browser application in QML.
+
+ \depends helper/qmlapplicationviewer
+
+ \image qml-flickr-demo.png
+*/
diff --git a/doc/src/examples/qml-folderlistmodel.qdoc b/doc/src/examples/qml-folderlistmodel.qdoc
new file mode 100644
index 00000000..045502ab
--- /dev/null
+++ b/doc/src/examples/qml-folderlistmodel.qdoc
@@ -0,0 +1,138 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+
+\title FolderListModel - a C++ model plugin
+\example src/imports/folderlistmodel
+\depends helper/qmlapplicationviewer
+
+\brief The FolderListModel plugin example shows how to make a C++ model available to QML.
+
+It presents
+a simple file list for a single folder (directory) and allows the presented
+folder to be changed.
+
+\image declarative-folderlistmodel.png The FolderListModel used to choose a QML file
+
+We do not explain the model implementation in detail, but rather focus on the mechanics of
+making the model available to QML.
+
+\section1 Usage from QML
+
+The FolderListModel can be used from QML like this:
+
+\snippet doc/src/snippets/declarative/folderlistmodel.qml 0
+
+This displays a list of all subfolders and QML files in the current folder.
+
+The FolderListModel \c folder property can be set to change the folder that
+is currently displayed.
+
+\section1 Defining the Model
+
+We are subclassing QAbstractListModel which will allow us to give data to QML and
+send notifications when the data changes:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h class begin
+
+As you see, we also inherit the QDeclarativeParserStatus interface, so that we
+can delay initial processing until we have all properties set (via componentComplete() below).
+
+The first thing to do when devising a new type for QML is to define the properties
+you want the type to have:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h class props
+
+The purposes of each of these should be pretty obvious - in QML we will set the folder
+to display (a file: URL), and the kinds of files we want to show in the view of the model.
+
+Next are the constructor, destructor, and standard QAbstractListModel subclassing requirements:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h abslistmodel
+
+The data() function is where we provide model values. The rowCount() function
+is also a standard part of the QAbstractListModel interface, but we also want to provide
+a simpler count property:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h count
+
+Then we have the functions for the remaining properties which we defined above:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h prop funcs
+
+Imperative actions upon the model are made available to QML via a Q_INVOKABLE tag on
+a normal member function. The isFolder(index) function says whether the value at \e index
+is a folder:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h isfolder
+
+Then we have the QDeclarativeParserStatus interface:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h parserstatus
+
+Then the NOTIFY function for the folders property. The implementation will emit this
+when the folder property is changed.
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h notifier
+
+The class ends with some implementation details:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h class end
+
+Lastly, the boilerplare to declare the type for QML use:
+
+\snippet src/imports/folderlistmodel/qdeclarativefolderlistmodel.h qml decl
+
+\section1 Connecting the Model to QML
+
+To make this class available to QML, we only need to make a simple subclass of QDeclarativeExtensionPlugin:
+
+\snippet src/imports/folderlistmodel/plugin.cpp class decl
+
+and then use the standard Qt plugin export macro:
+
+\snippet src/imports/folderlistmodel/plugin.cpp plugin export decl
+
+Finally, in order for QML to connect the "import" statement to our plugin, we list it in the qmldir file:
+
+\l{src/imports/folderlistmodel/qmldir}
+
+This qmldir file and the compiled plugin will be installed in \c $QTDIR/imports/Qt/labs/folderlistmodel/ where
+the QML engine will find it (since \c $QTDIR/imports is the value of QLibraryInf::libraryPath()).
+
+\section1 Implementing the Model
+
+We'll not discuss the model implementation in detail, as it is not specific to QML - any Qt C++ model
+can be interfaced to QML.
+This implementation is basically just takes the krufty old QDirModel,
+which is a tree with lots of detailed roles and re-presents it as a simpler list model where
+each item is just a fileName and a filePath (as a file: URL rather than a plain file, since QML
+works with URLs for all content).
+
+\l{src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp}
+*/
diff --git a/doc/src/examples/qml-minehunt.qdoc b/doc/src/examples/qml-minehunt.qdoc
new file mode 100644
index 00000000..4698a292
--- /dev/null
+++ b/doc/src/examples/qml-minehunt.qdoc
@@ -0,0 +1,37 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Minehunt
+ \example demos/declarative/minehunt
+ \depends helper/qmlapplicationviewer
+
+ \brief The Qt Quick Minehunt demo shows how to create a simple Minehunt game, using QML for the
+ UI and C++ for the game logic.
+
+ \image qml-minehunt-demo.png
+*/
diff --git a/doc/src/examples/qml-photoviewer.qdoc b/doc/src/examples/qml-photoviewer.qdoc
new file mode 100644
index 00000000..697b5598
--- /dev/null
+++ b/doc/src/examples/qml-photoviewer.qdoc
@@ -0,0 +1,36 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Photo Viewer
+ \example demos/declarative/photoviewer
+ \depends helper/qmlapplicationviewer
+
+ \brief The Qt Quick Photo Viewer demo shows how to write a Flickr photo viewer application in QML.
+
+ \image qml-photoviewer-demo.png
+*/
diff --git a/doc/src/examples/qml-rssnews.qdoc b/doc/src/examples/qml-rssnews.qdoc
new file mode 100644
index 00000000..5b82526a
--- /dev/null
+++ b/doc/src/examples/qml-rssnews.qdoc
@@ -0,0 +1,36 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title RSS News
+ \example demos/declarative/rssnews
+ \depends helper/qmlapplicationviewer
+
+ \brief The Qt Quick RSS News demo shows how to write a RSS news reader in QML.
+
+ \image qml-rssnews-demo.png
+*/
diff --git a/doc/src/examples/qml-samegame.qdoc b/doc/src/examples/qml-samegame.qdoc
new file mode 100644
index 00000000..46a168b3
--- /dev/null
+++ b/doc/src/examples/qml-samegame.qdoc
@@ -0,0 +1,37 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Same Game
+ \example demos/declarative/samegame
+ \depends helper/qmlapplicationviewer
+
+ \brief The Qt Quick Same Game demo shows how to write a 'Same Game' game in QML, using Javascript
+ for all the game logic.
+
+ \image qml-samegame-demo.png
+*/
diff --git a/doc/src/examples/qml-snake.qdoc b/doc/src/examples/qml-snake.qdoc
new file mode 100644
index 00000000..b312eb55
--- /dev/null
+++ b/doc/src/examples/qml-snake.qdoc
@@ -0,0 +1,37 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Snake
+ \example demos/declarative/snake
+ \depends helper/qmlapplicationviewer
+
+ \brief The Qt Quick Snake demo shows how to write a Snake game in QML, controlled by the
+ keyboard as well as the mouse.
+
+ \image qml-snake-demo.png
+*/
diff --git a/doc/src/examples/qml-twitter.qdoc b/doc/src/examples/qml-twitter.qdoc
new file mode 100644
index 00000000..1b63f592
--- /dev/null
+++ b/doc/src/examples/qml-twitter.qdoc
@@ -0,0 +1,37 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Twitter Mobile
+ \example demos/declarative/twitter
+ \depends helper/qmlapplicationviewer
+
+ \brief The Qt Quick Twitter Mobile demo shows how to write a mobile Twitter search client in QML.
+ Use it to see what people think about Qt Quick!
+
+ \image qml-twitter-demo.png
+*/
diff --git a/doc/src/examples/qml-webbrowser.qdoc b/doc/src/examples/qml-webbrowser.qdoc
new file mode 100644
index 00000000..96d59efa
--- /dev/null
+++ b/doc/src/examples/qml-webbrowser.qdoc
@@ -0,0 +1,39 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \title Qt Quick Web Browser
+ \example demos/declarative/webbrowser
+ \depends helper/qmlapplicationviewer
+
+ \brief The Qt Quick Web Browser demo shows how to write a simple web browser in QML by combining the
+ WebView element with other components including scroll bars,
+ \l Flickable views and TextInput fields.
+
+ \image qml-webbrowser-demo.png
+*/
+