****************************************************************************/
/*!
\title QML Example - Dynamic Scene
- \example qml/dynamicscene
+ \example dynamicscene
\brief This example demonstrates creating components dynamically.
\image qml-dynamicscene-example.png
*/
****************************************************************************/
/*!
\title QML Examples - Internationalization
- \example qml/i18n
+ \example i18n
\image qml-i18n-example.png
\brief This is an internationalization example
/*!
\title QML Plugin Example
- \example qml/plugins
+ \example plugins
\brief This example creates a C++ plugin extension by subclassing QQmlExtensionPlugin.
****************************************************************************/
/*!
\title QtQuick Examples - XMLHttpRequst
- \example qml/xmlhttprequest
+ \example xmlhttprequest
\brief This is a collection of XMLHttpRequest examples
\image qml-xmlhttprequest-example.png
****************************************************************************/
/*!
\title QtQuick Examples - Accessibility
- \example quick/accessibility
+ \example accessibility
\brief This example has accessible buttons.
\ingroup qtquickexamples
/*!
\title QtQuick Examples - Animation
- \example quick/animation
+ \example animation
\brief This is a collection of QML Animation examples.
\image qml-animations-example.png
\ingroup qtquickexamples
/*!
\title QtQuick Examples - Canvas
- \example quick/canvas
+ \example canvas
\brief This is a collection of QML Canvas examples.
\image qml-canvas-example.png
\ingroup qtquickexamples
/*!
\title QML Demo - Calqlatr
- \example quick/demos/calqlatr
+ \example demos/calqlatr
\brief This is an example calculator written in QML.
\image qml-calqlatr-demo-small.png
\ingroup qmldemos
****************************************************************************/
/*!
-\example qml/referenceexamples/adding
+\example referenceexamples/adding
\title Extending QML - Adding Types Example
\brief Exporting C++ Classes
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/properties
+\example referenceexamples/properties
\title Extending QML - Object and List Property Types Example
\brief Exporting C++ Properties
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/coercion
+\example referenceexamples/coercion
\title Extending QML - Inheritance and Coercion Example
\brief C++ Inheritance and Coercion
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/default
+\example referenceexamples/default
\title Extending QML - Default Property Example
\brief Default Property
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/grouped
+\example referenceexamples/grouped
\title Extending QML - Grouped Properties Example
\brief Grouped Properties
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/attached
+\example referenceexamples/attached
\title Extending QML - Attached Properties Example
\brief Attached Properties
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/signal
+\example referenceexamples/signal
\title Extending QML - Signal Support Example
\brief Signal Support
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/methods
+\example referenceexamples/methods
\title Extending QML - Methods Example
\brief Methods Support
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/valuesource
+\example referenceexamples/valuesource
\title Extending QML - Property Value Source Example
\brief Property Value Source
\ingroup qmlextendingexamples
*/
/*!
-\example qml/referenceexamples/binding
+\example referenceexamples/binding
\title Extending QML - Binding Example
\brief Binding
\ingroup qmlextendingexamples
****************************************************************************/
/*!
\title QtQuick Examples - Drag and Drop
- \example quick/draganddrop
+ \example draganddrop
\brief This is a collection of QML drag and drop examples
\image qml-draganddrop-example.png
\ingroup qtquickexamples
****************************************************************************/
/*!
\title QML Examples - Image Elements
- \example quick/imageelements
+ \example imageelements
\brief This is a collection of QML examples relating to image elements.
\image qml-imageelements-example.png
\ingroup qtquickexamples
****************************************************************************/
/*!
\title QtQuick Examples - Key Interaction
- \example quick/keyinteraction
+ \example keyinteraction
\brief This is a collection of QML keyboard interaction examples.
\image qml-keyinteraction-example.png
\ingroup qtquickexamples
****************************************************************************/
/*!
\title QtQuick Examples - Local Storage
- \example quick/localstorage
+ \example localstorage
\brief A collection of QML local storage examples.
\image qml-localstorage-example.png
****************************************************************************/
/*!
\title QtQuick Examples - MouseArea
- \example quick/mousearea
+ \example mousearea
\brief This is an example of the MouseArea element in QML
\image qml-mousearea-example.png
\ingroup qtquickexamples
/*!
\title Scenegraph Painted Item Example
\brief Shows how to implement QPainter-based custom scenegraph items.
- \example quick/customitems/painteditem
+ \example customitems/painteditem
\ingroup qtquickexamples
The Painted Item example shows how to use the QML Scene Graph framework to
/*!
\title QtQuick.Particles Examples - Affectors
- \example quick/particles/affectors
+ \example particles/affectors
\brief This is a collection of examples using Affectors in the QML particle system.
\image qml-affectors-example.png
/*!
\title QtQuick.Particles Examples - CustomParticle
- \example quick/particles/customparticle
+ \example particles/customparticle
\brief This is a collection of examples using CustomParticle in the QML particle system.
\image qml-customparticle-example.png
****************************************************************************/
/*!
\title QtQuick.Particles Examples - Emitters
- \example quick/particles/emitters
+ \example particles/emitters
\brief This is a collection of examples using Emitters in the QML particle system.
\image qml-emitters-example.png
/*!
\title QtQuick.Particles Examples - Affectors
- \example quick/particles/imageparticle
+ \example particles/imageparticle
\brief This is a collection of examples using Affectors in the QML particle system.
\image qml-imageparticle-example.png
/*!
\title QtQuick.Particles Examples - Affectors
- \example quick/particles/system
+ \example particles/system
\brief This is a collection of examples using Affectors in the QML particle system.
\image qml-system-example.png
****************************************************************************/
/*!
\title QtQuick Examples - Positioners
- \example quick/positioners
+ \example positioners
\brief This is a collection of QML Positioner examples.
\image qml-positioners-example.png
\ingroup qtquickexamples
****************************************************************************/
/*!
\title QtQuick Examples - Right to Left
- \example quick/righttoleft
+ \example righttoleft
\brief This is a collection of QML Right to Left examples.
\image qml-righttoleft-example.png
\ingroup qtquickexamples
****************************************************************************/
/*!
- \example quick/scenegraph/customgeometry
+ \example scenegraph/customgeometry
\title Custom Geometry Example
\ingroup qtquickexamples
\brief Shows how to implement a custom geometry in the Qt Quick Scene Graph.
****************************************************************************/
/*!
- \example quick/scenegraph/openglunderqml
+ \example scenegraph/openglunderqml
\title OpenGL Under QML
\ingroup qtquickexamples
\brief Shows how to render OpenGL under a Qt Quick scene.
****************************************************************************/
/*!
- \example quick/scenegraph/simplematerial
+ \example scenegraph/simplematerial
\title Simple Material Example
\ingroup qtquickexamples
\brief Shows how to define a scene graph material to fill a shape.
****************************************************************************/
/*!
\title QML Examples - Shader Effects
- \example quick/shadereffects
+ \example shadereffects
\image qml-shadereffects-example.png
\brief This is a shader effects example
\ingroup qtquickexamples
****************************************************************************/
/*!
\title QML Examples - Text
- \example quick/text
+ \example text
\brief This is a collection of QML examples relating to text
\image qml-text-example.png
\ingroup qtquickexamples
****************************************************************************/
/*!
\title QtQuick Examples - Threading
- \example quick/threading
+ \example threading
\brief This is a collection of QML Multithreading examples.
\image qml-threading-example.png
\ingroup qtquickexamples
****************************************************************************/
/*!
\title QtQuick Examples - Touch Interaction
- \example quick/touchinteraction
+ \example touchinteraction
\brief This is a collection of QML Touch Interaction examples.
\image qml-touchinteraction-example.png
/*!
\title QtQuick Examples - Views
- \example quick/views
+ \example views
\brief This is a collection of QML model/view examples
\image qml-modelviews-example.png
\ingroup qtquickexamples
url = http://qt-project.org/doc/qt-$QT_VER/qtqml
version = $QT_VERSION
+examplesinstallpath = qml
+
qhp.projects = QtQml
qhp.QtQml.file = qtqml.qhp
sourcedirs += ..
-exampledirs += ../../../examples/ \
+exampledirs += ../../../examples/qml \
../ \
snippets
/*!
\title Chapter 1: Creating a New Type
-\example quick/tutorials/extending/chapter1-basics
+\example tutorials/extending/chapter1-basics
A common task when extending QML is to provide a new QML type that supports some
custom functionality beyond what is provided by the built-in \l {Qt Quick QML Types}{QtQuick types}.
/*!
\title Chapter 2: Connecting to C++ Methods and Signals
-\example quick/tutorials/extending/chapter2-methods
+\example tutorials/extending/chapter2-methods
Suppose we want \c PieChart to have a "clearChart()" method that erases the
chart and then emits a "chartCleared" signal. Our \c app.qml would be able
/*!
\title Chapter 3: Adding Property Bindings
-\example quick/tutorials/extending/chapter3-bindings
+\example tutorials/extending/chapter3-bindings
Property binding is a powerful feature of QML that allows values of different
elements to be synchronized automatically. It uses signals to notify and update
/*!
\title Chapter 4: Using Custom Property Types
-\example quick/tutorials/extending/chapter4-customPropertyTypes
+\example tutorials/extending/chapter4-customPropertyTypes
The \c PieChart type currently has a string-type property and a color-type property.
It could have many other types of properties. For example, it could have an
/*!
\title Chapter 5: Using List Property Types
-\example quick/tutorials/extending/chapter5-listproperties
+\example tutorials/extending/chapter5-listproperties
Right now, a \c PieChart can only have one \c PieSlice. Ideally a chart would
have multiple slices, with different colors and sizes. To do this, we could
/*!
\title Chapter 6: Writing an Extension Plugin
-\example quick/tutorials/extending/chapter6-plugins
+\example tutorials/extending/chapter6-plugins
Currently the \c PieChart and \c PieSlice types are used by \c app.qml,
which is displayed using a QQuickView in a C++ application. An alternative
url = http://qt-project.org/doc/qt-$QT_VER/qtquick-index.html
version = $QT_VERSION
+examplesinstallpath = quick
qhp.projects = QtQuick
sourcedirs += ..
-exampledirs += ../../../examples/ \
+exampledirs += ../../../examples/quick \
snippets
\previouspage QML Advanced Tutorial
\nextpage QML Advanced Tutorial 2 - Populating the Game Canvas
-\example quick/tutorials/samegame/samegame1
+\example tutorials/samegame/samegame1
\section2 Creating the application screen
\previouspage QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks
\nextpage QML Advanced Tutorial 3 - Implementing the Game Logic
-\example quick/tutorials/samegame/samegame2
+\example tutorials/samegame/samegame2
\section2 Generating the blocks in JavaScript
\previouspage QML Advanced Tutorial 2 - Populating the Game Canvas
\nextpage QML Advanced Tutorial 4 - Finishing Touches
-\example quick/tutorials/samegame/samegame3
+\example tutorials/samegame/samegame3
\section2 Making a playable game
\contentspage QML Advanced Tutorial
\previouspage QML Advanced Tutorial 3 - Implementing the Game Logic
-\example quick/tutorials/samegame/samegame4
+\example tutorials/samegame/samegame4
\section2 Adding some flair
\previouspage QML Dynamic View Ordering Tutorial
\nextpage QML Dynamic View Ordering Tutorial 2 - Dragging View Items
-\example quick/tutorials/dynamicview/dynamicview1
+\example tutorials/dynamicview/dynamicview1
We begin our application by defining a ListView, a model which will provide data to the view, and a
delegate which provides a template for constructing items in the view.
\previouspage QML Dynamic View Ordering Tutorial 1 - A Simple ListView and Delegate
\nextpage QML Dynamic View Ordering Tutorial 3 - Moving Dragged Items
-\example quick/tutorials/dynamicview/dynamicview2
+\example tutorials/dynamicview/dynamicview2
Now that we have a visible list of items we want to be able to interact with them. We'll start
by extending the delegate so the visible content can be dragged up and down the screen. The
\previouspage QML Dynamic View Ordering Tutorial 2 - Dragging View Items
\nextpage QML Dynamic View Ordering Tutorial 4 - Sorting Items
-\example quick/tutorials/dynamicview/dynamicview3
+\example tutorials/dynamicview/dynamicview3
The next step in our application to move items within the list as they're dragged so that we
can re-order the list. To achieve this we introduce three new elements to our application;
\contentspage QML Dynamic View Ordering Tutorial
\previouspage QML Dynamic View Ordering Tutorial 3 - Moving Dragged Items
-\example quick/tutorials/dynamicview/dynamicview4
+\example tutorials/dynamicview/dynamicview4
Drag and drop isn't the only way items in a view can be re-ordered, using a VisualDataModel it is
also possible to sort items based on model data. To do that we extend our VisualDataModel instance