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