aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/index.rst
blob: 88193af9ee770a0bdc6b062bc38aed7891293589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
|project| Tutorials
====================

A collection of tutorials with walkthrough guides are
provided with |project| to help new users get started.

Some of these documents were ported from C++ to Python and cover a range of
topics, from basic use of widgets to step-by-step tutorials that show how an
application is put together.

Before you start
----------------

Here you can find a couple of common questions and situations that will
clarify questions before you start programming.
If you have not installed PySide yet, remember to check the
`Quick Start <../quickstart.html>`_ section.

.. panels::
    :container: container-lg pb-1
    :column: col-lg-4 col-md-4 col-sm-6 col-xs-12 p-2

    .. link-button:: pretutorial/whatisqt
        :type: ref
        :text: Qt, QML, Widgets... What is the difference?
        :classes: btn-link btn-block stretched-link
    ---

    .. link-button:: pretutorial/whichide
        :type: ref
        :text: Which IDEs are compatible with PySide?
        :classes: btn-link btn-block stretched-link
    ---

    .. link-button:: pretutorial/whatisshiboken
        :type: ref
        :text: Binding Generation: What is Shiboken?
        :classes: btn-link btn-block stretched-link
    ---

    .. link-button:: pretutorial/typesoffiles
        :type: ref
        :text: File Types in PySide
        :classes: btn-link btn-block stretched-link
    ---

    .. link-button:: pretutorial/distribution
        :type: ref
        :text: Distributing your application to other systems and platforms
        :classes: btn-link btn-block stretched-link

    ---

    .. link-button:: pretutorial/whyqtforpython
        :type: ref
        :text: As a Qt/C++ developer, why should I consider Qt for Python?
        :classes: btn-link btn-block stretched-link

.. toctree::
    :hidden:

    pretutorial/whatisqt.rst
    pretutorial/whichide.rst
    pretutorial/whatisshiboken.rst
    pretutorial/typesoffiles.rst
    pretutorial/distribution.rst
    pretutorial/whyqtforpython.rst

Qt Widgets: Basic tutorials
---------------------------

If you want to see the available widgets in action, you can check the
`Qt Widget Gallery <https://doc.qt.io/qt-6/gallery.html>`_ to learn their
names and how they look like.

.. panels::
    :container: container-lg pb-1
    :column: col-lg-4 col-md-4 col-sm-6 col-xs-12 p-2
    :img-top-cls: d-flex align-self-center

    :img-top: basictutorial/widgets.png

    .. link-button:: basictutorial/widgets
        :type: ref
        :text: Your First QtWidgets Application
        :classes: btn-link btn-block stretched-link
    ---
    :img-top: basictutorial/clickablebutton.png

    .. link-button:: basictutorial/clickablebutton
        :type: ref
        :text: Using a Simple Button
        :classes: btn-link btn-block stretched-link
    ---
    :img-top: basictutorial/signals_slots.png

    .. link-button:: basictutorial/signals_and_slots
        :type: ref
        :text: Signals and Slots
        :classes: btn-link btn-block stretched-link
    ---
    :img-top: basictutorial/dialog.png

    .. link-button:: basictutorial/dialog
        :type: ref
        :text: Creating a Dialog Application
        :classes: btn-link btn-block stretched-link
    ---
    :img-top: basictutorial/tablewidget.png

    .. link-button:: basictutorial/tablewidget
        :type: ref
        :text: Displaying Data Using a Table Widget
        :classes: btn-link btn-block stretched-link

    ---
    :img-top: basictutorial/treewidget.png

    .. link-button:: basictutorial/treewidget
        :type: ref
        :text: Displaying Data Using a Tree Widget
        :classes: btn-link btn-block stretched-link

    ---
    :img-top: basictutorial/uifiles.png

    .. link-button:: basictutorial/uifiles
        :type: ref
        :text: Using .ui files from Designer or QtCreator with QUiLoader and pyside6-uic
        :classes: btn-link btn-block stretched-link

    ---
    :img-top: basictutorial/player-new.png

    .. link-button:: basictutorial/qrcfiles
        :type: ref
        :text: Using .qrc Files (pyside6-rcc)
        :classes: btn-link btn-block stretched-link

    ---
    :img-top: basictutorial/translations.png

    .. link-button:: basictutorial/translations
        :type: ref
        :text: Translating Applications
        :classes: btn-link btn-block stretched-link

    ---
    :img-top: basictutorial/widgetstyling-yes.png

    .. link-button:: basictutorial/widgetstyling
        :type: ref
        :text: Styling the Widgets Application
        :classes: btn-link btn-block stretched-link


.. toctree::
    :hidden:

    basictutorial/widgets.rst
    basictutorial/clickablebutton.rst
    basictutorial/dialog.rst
    basictutorial/tablewidget.rst
    basictutorial/treewidget.rst
    basictutorial/uifiles.rst
    basictutorial/qrcfiles.rst
    basictutorial/translations.rst
    basictutorial/widgetstyling.rst


Quick/QML: Basic tutorials
--------------------------

.. panels::
    :container: container-lg pb-1
    :column: col-lg-4 col-md-4 col-sm-6 col-xs-12 p-2
    :img-top-cls: d-flex align-self-center

    :img-top: basictutorial/greenapplication.png

    .. link-button:: basictutorial/qml
        :type: ref
        :text: Your First QtQuick/QML Application
        :classes: btn-link btn-block stretched-link
    ---
    :img-top: qmlintegration/textproperties_material.png

    .. link-button:: qmlintegration/qmlintegration
        :type: ref
        :text: Python-QML integration
        :classes: btn-link btn-block stretched-link
    ---
    :img-top: qmlapp/qmlapplication.png

    .. link-button:: qmlapp/qmlapplication
        :type: ref
        :text: QML Application Tutorial (QtCreator)
        :classes: btn-link btn-block stretched-link
    ---
    :img-top: qmlsqlintegration/example_list_view.png

    .. link-button:: qmlsqlintegration/qmlsqlintegration
        :type: ref
        :text: QML, SQL and PySide Integration Tutorial
        :classes: btn-link btn-block stretched-link


.. toctree::
    :maxdepth: 1
    :hidden:

    basictutorial/qml.rst
    qmlintegration/qmlintegration.rst
    qmlapp/qmlapplication.rst
    qmlsqlintegration/qmlsqlintegration.rst

General Applications
--------------------

.. panels::
    :container: container-lg pb-1
    :column: col-lg-4 col-md-4 col-sm-6 col-xs-12 p-2
    :img-top-cls: d-flex align-self-center

    :img-top: datavisualize/images/datavisualization_app.png

    .. link-button:: datavisualize/index
        :type: ref
        :text: Data Visualization Tool
        :classes: btn-link btn-block stretched-link
    ---
    :img-top: expenses/expenses_tool.png

    .. link-button:: expenses/expenses
        :type: ref
        :text: Expenses Tool
        :classes: btn-link btn-block stretched-link

.. toctree::
    :hidden:

    datavisualize/index.rst
    expenses/expenses.rst


C++ and Python
--------------

.. toctree::
    :maxdepth: 1

    portingguide/index.rst