aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/doc/tutorials/basictutorial/widgets.rst')
-rw-r--r--sources/pyside6/doc/tutorials/basictutorial/widgets.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/pyside6/doc/tutorials/basictutorial/widgets.rst b/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
index 89bd23f63..ef14c7e99 100644
--- a/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
+++ b/sources/pyside6/doc/tutorials/basictutorial/widgets.rst
@@ -17,6 +17,12 @@ Here is a simple example of a Hello World application in PySide6:
app.exec()
+When you execute it the code, the application will look like:
+
+.. image:: widgets.png
+ :alt: Simple Widget
+
+
For a widget application using PySide6, you must always start by
importing the appropriate class from the `PySide6.QtWidgets` module.
@@ -43,3 +49,4 @@ After the creation of the application object, we have created a
Finally, we call `app.exec()` to enter the Qt main loop and start
to execute the Qt code. In reality, it is only here where the label
is shown, but this can be ignored for now.
+