summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/simple-qml/doc/src/simple-qml.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/simple-qml/doc/src/simple-qml.qdoc')
-rw-r--r--examples/qt3d/simple-qml/doc/src/simple-qml.qdoc14
1 files changed, 5 insertions, 9 deletions
diff --git a/examples/qt3d/simple-qml/doc/src/simple-qml.qdoc b/examples/qt3d/simple-qml/doc/src/simple-qml.qdoc
index 670697ee8..a2c0b734a 100644
--- a/examples/qt3d/simple-qml/doc/src/simple-qml.qdoc
+++ b/examples/qt3d/simple-qml/doc/src/simple-qml.qdoc
@@ -4,6 +4,7 @@
/*!
\example simple-qml
\title Qt 3D: Simple QML Example
+ \examplecategory {3D}
\ingroup qt3d-examples-qml
\brief A QML application that demonstrates how to render a scene in Qt 3D.
@@ -20,25 +21,20 @@
To be able to use the types in the Q3D and Q3D Render modules, we must
import the modules:
- \quotefromfile simple-qml/main.qml
- \skipto import Qt3D.Core
- \printuntil Render 2.0
+ \snippet simple-qml/main.qml 0
The first entities we create are a \l Camera, which represents the camera
used for the final rendering, and a camera controller, which allows us to
control this camera using the keyboard or the mouse:
- \skipto Camera {
- \printuntil }
- \printuntil }
+ \snippet simple-qml/main.qml 1
A \l RenderSettings entity specifies a ForwardRenderer as the active
framegraph:
- \printuntil },
+ \snippet simple-qml/main.qml 2
The event source is set by the Qt3DQuickWindow:
- \skipto InputSettings
- \printuntil }
+ \snippet simple-qml/main.qml 3
*/