Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
examples.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
6
\page qtquick-codesamples.html
7
\title Qt Quick Examples and Tutorials
8
\brief Building UIs with QML
9
\ingroup qtquick
10
\keyword qtquick-samples
11
12
Qt includes several examples to demonstrate a particular usage. The examples
13
run as applications or as non-GUI examples in \l{\QC Documentation}{\QC}. Qt tutorials show
14
the step-by-step information and give insight to particular code snippets.
15
16
This page lists the \l{Qt Qml} and \l{Qt Quick} examples, however, many other
17
\l{All Modules}{Qt modules} contain examples related to their QML API.
18
19
\section1 Running the Examples and Demos
20
21
The examples are packaged with the \l{Getting Started with Qt}{Qt installers}
22
and are accessed through \QC. For more information about running
23
examples in \QC, see \l{\QC: Tutorial: Build and run}.
24
25
Open and run examples in the \QC \uicontrol {Welcome} mode. Most of the
26
examples run on various platforms and to search for platform-specific
27
examples, type the platform name (or any keywords) in the search field. For
28
example, typing \c mobile in the search field lists the examples that are
29
fully compatible with the \l{Platform Support}{mobile} platforms.
30
31
To view other examples and tutorials, visit the \l{Qt Examples And Tutorials}
32
page.
33
34
\section1 Qt Quick Demos
35
36
Here is a list of fully-functional demo applications. They are full applications
37
that show how a deployable Qt application is built and structured. Many of the
38
demos are deployable to mobile and desktop platforms.
39
40
\annotatedlist{qtquickdemos}
41
42
\section1 Developing Qt Quick Applications
43
44
The following pages show how to develop Qt applications using
45
\l{\QC Documentation}{\QC} and Qt Quick. The pages demonstrate various
46
steps such as use cases and introductory material. For more information about
47
Qt Quick Applications and related modules, visit the \l{QML Applications} page.
48
49
\div {class="multi-column"}
50
\div {class="doc-column"}
51
\b{Development Environment}
52
\list
53
\li \l{\QC: Create Qt Quick Applications}
54
\li \l{\QC: Using QML Modules with Plugins}
55
\endlist
56
\enddiv
57
\div {class="doc-column"}
58
\b{Beginning with QML and Qt Quick}
59
\list
60
\li \l{First Steps with QML}
61
\li \l{Getting Started Programming with Qt Quick}{Alarms Application}
62
\li \l{\QDS: Your First UI}{\QDS Tutorials}
63
\li \l{QML Advanced Tutorial}{SameGame}
64
\endlist
65
\enddiv
66
\div {class="doc-column"}
67
\b{Use Cases}
68
\list
69
\li \l{qtquick-usecase-visual.html}{Visual types in QML}
70
\li \l{qtquick-usecase-userinput.html}{Responding to User Input in QML}
71
\li \l{qtquick-usecase-animations.html}{Animations in QML}
72
\li \l{qtquick-usecase-text.html}{Displaying Text in QML}
73
\li \l{qtquick-usecase-layouts.html}{Layouts in QML}
74
\li \l{qtquick-usecase-integratingjs.html}{Integrating JavaScript in QML}
75
\endlist
76
\enddiv
77
\enddiv
78
79
\section2 Extending QML
80
81
The following tutorials show how a QML-based application can be combined and
82
exteneded with C++ code using the \l{Qt Qml} module.
83
\list
84
\li \l {Writing QML Extensions with C++}
85
\li \l {Writing advanced QML Extensions with C++}
86
\endlist
87
88
\section1 Examples
89
90
Examples are small applications which show how to implement various Qt Quick
91
features. The examples run on various platforms and are opened from within Qt
92
Creator.
93
94
\div {class="multi-column"}
95
\div {class="doc-column"}
96
\b{QML Types and Controls}
97
\list
98
\li \l{Qt Quick Controls - Gallery}{Controls Gallery}
99
\li \l{tableview/gameoflife}{TableView}
100
\li \l{Qt Quick Examples - Text}{Text and Fonts}
101
\li \l{Qt Quick Controls - Table of Contents}
102
\endlist
103
\enddiv
104
\div {class="doc-column"}
105
\b{Layouts and Views}
106
\list
107
\li \l{Qt Quick Layouts - Basic Example}
108
\li \l{Qt Quick Layouts - Responsive Layout Example}
109
\li \l{Qt Quick Examples - Positioners}{Positioners}
110
\li \l{Qt Quick Examples - Views}{Views}
111
\li \l{Qt Quick Examples - Window and Screen}{Windows and Screen}
112
\li \l{Models and Views: List Model using a worker thread for data fetching}{Threaded List Model Example}
113
\endlist
114
\enddiv
115
\div {class="doc-column"}
116
\b{Image and Graphics}
117
\list
118
\li \l{Qt Quick Examples - Image Elements}{Image Elements}
119
\li \l{Qt Quick Examples - Animation}{Animation}
120
\li \l{Qt Quick Examples - Canvas}{Canvas API}
121
\li \l{Qt Quick Examples - Shader Effects}{Shader Effects}
122
\li \l{Qt Quick Examples - MultiEffect Test Bed}{MultiEffect}
123
\li \l{Qt Quick Examples - MultiEffect Item Switcher}{MultiEffect-based Item Transitions}
124
\li \l{Qt Quick Examples - RectangularShadow NeumorphicPanel}{RectangularShadow Effect}
125
\endlist
126
\enddiv
127
\div {class="doc-column"}
128
\b{Shapes}
129
\list
130
\li \l{Qt Quick Examples - Shapes}{Shapes}
131
\li \l{Weather Forecast Example}{Weather Forecast}
132
\endlist
133
\enddiv
134
\enddiv
135
136
\div {class="multi-column"}
137
\div {class="doc-column"}
138
\b{Keyboard, Focus, and Touch}
139
\list
140
\li \l{Qt Quick Examples - Key Interaction}{Key Interaction}
141
\li \l{Qt Quick Examples - Pointer Handlers}{Pointer Handlers}
142
\endlist
143
\enddiv
144
\div {class="doc-column"}
145
\b{System and Events}
146
\list
147
\li \l{Qt Quick Examples - Accessibility}{Accessibility}
148
\li \l{Qt Quick Examples - Drag and Drop}{Drag and Drop}
149
\li \l{Qt Quick Examples - Item Variable Refresh Rate}{Item Variable Refresh Rate}
150
\endlist
151
\enddiv
152
\div {class="doc-column"}
153
\b{Scene Graph}
154
\list
155
\li \l{Scene Graph - Custom Material}{Custom Material}
156
\li \l{Scene Graph - RHI Under QML}{Portable QRhi-based 3D rendering as a scene underlay}
157
\li \l{Scene Graph - RHI Texture Item}{Displaying a QRhi-rendered image in a QQuickItem}
158
\li \l{Scene Graph - Custom QSGRenderNode}{Implementing a QRhi-based QSGRenderNode}
159
\li \l{QQuickRenderControl RHI Example}{Redirecting Qt Quick rendering into a QRhiTexture}
160
\li \l{Scene Graph - Two Texture Providers}{Texture Providers and Materials}
161
\li \l{Scene Graph - Custom Geometry}{Custom Geometry}
162
\li \l{Scene Graph - Graph}{Graph}
163
\endlist
164
\enddiv
165
\enddiv
166
167
\div {class="multi-column"}
168
\div {class="doc-column"}
169
\b{Extending the Scene Graph using native 3D APIs}
170
\list
171
\li \l{Scene Graph - Vulkan Under QML}{Vulkan-based 3D rendering as a scene underlay}
172
\li \l{Scene Graph - Vulkan Texture Import}{Implementing a custom QQuickItem that displays a native Vulkan image}
173
\li \l{Scene Graph - Metal Under QML}{Metal-based 3D rendering as a scene underlay}
174
\li \l{Scene Graph - Metal Texture Import}{Implementing a custom QQuickItem that displays a native Metal texture}
175
\li \l{Scene Graph - Direct3D 11 Under QML}{Direct3D 11-based rendering as a scene underlay}
176
\li \l{Scene Graph - OpenGL Under QML}{OpenGL-based rendering as a scene underlay}
177
\li \l{QQuickRenderControl OpenGL Example}{Redirecting Qt Quick rendering into an OpenGL texture}
178
\li \l{QQuickRenderControl D3D11 Example}{Redirecting Qt Quick rendering into a Direct 3D texture}
179
\endlist
180
\enddiv
181
\div {class="doc-column"}
182
\b{Adding Qt Quick scenes in QWidget applications}
183
\list
184
\li \l{Qt Quick Widgets Example}{Using QQuickWidget}
185
\li \l{QQuickWidget - QQuickView Comparison Example}{QQuickWidget - QQuickView Comparison (OpenGL)}
186
\li \l{Qt Quick Examples - Embedded in Widgets}{Embedding a QQuickView as Native Window}
187
\endlist
188
\enddiv
189
\div {class="doc-column"}
190
\b{Qt Quick for Android}
191
\list
192
\li \l{Qt Quick for Android Studio Projects}
193
\li \l{Exposing QtAbstractListModel to QML}
194
\li \l{Using QtAbstractItemModel in Android Studio Projects}
195
\endlist
196
\enddiv
197
\enddiv
198
*/
qtdeclarative
src
quick
doc
src
examples.qdoc
Generated on
for Qt by
1.14.0