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