diff options
| author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2020-10-20 17:18:13 +0200 |
|---|---|---|
| committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2020-10-21 09:21:36 +0200 |
| commit | c409ba5e51c15242df248ffdb5fc2befd6853211 (patch) | |
| tree | fcd29358de6b3ea4bea3297bc74e82d06733e77b /sources/pyside2/doc/tutorials | |
| parent | 47deb5b96fa6db5999cff4fd90bb964fec669a4e (diff) | |
doc: update versions and comands
* add new way of building rst-only documentation
* Updating recommended libclang for 5.15
* recommending python 3.5+
* link commercial license
* Show videos as grid
* changing title of a tutorial to be more specific
* add missing step to build only shiboken
* add venv as an option before virtualenv
* add problem on windows and python 3.8.0
* add section to create a virtual environment
* only show titles of tutorials to avoid having a long page
Change-Id: Iebb99d2cd776c3d5b72dc44153f325f74a1626cc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/doc/tutorials')
| -rw-r--r-- | sources/pyside2/doc/tutorials/basictutorial/uifiles.rst | 17 | ||||
| -rw-r--r-- | sources/pyside2/doc/tutorials/index.rst | 6 |
2 files changed, 12 insertions, 11 deletions
diff --git a/sources/pyside2/doc/tutorials/basictutorial/uifiles.rst b/sources/pyside2/doc/tutorials/basictutorial/uifiles.rst index 804905eb8..982384629 100644 --- a/sources/pyside2/doc/tutorials/basictutorial/uifiles.rst +++ b/sources/pyside2/doc/tutorials/basictutorial/uifiles.rst @@ -1,5 +1,5 @@ -Using `.ui` Files (`QUiLoader` and `pyside2-uic`) -************************************************* +Using `.ui` files from Designer or QtCreator with `QUiLoader` and `pyside2-uic` +******************************************************************************* This page describes the use of Qt Creator to create graphical interfaces for your Qt for Python project. @@ -13,8 +13,9 @@ At Qt Creator, create a new Qt Design Form, choose "Main Window" for template. And save as `mainwindow.ui`. Add a `QPushButton` to the center of the centralwidget. -Your file (mainwindow.ui) should look something like this: -:: +Your file ``mainwindow.ui`` should look something like this: + +.. code-block:: xml <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> @@ -73,8 +74,8 @@ Your file (mainwindow.ui) should look something like this: Now we are ready to decide how to use the **UI file** from Python. -Generating a Python class -========================= +Option A: Generating a Python class +=================================== Another option to interact with a **UI file** is to generate a Python class from it. This is possible thanks to the `pyside2-uic` tool. @@ -128,8 +129,8 @@ file: You must run `pyside2-uic` again every time you make changes to the **UI file**. -Loading it directly -==================== +Option B: Loading it directly +============================= To load the UI file directly, we will need a class from the **QtUiTools** module: diff --git a/sources/pyside2/doc/tutorials/index.rst b/sources/pyside2/doc/tutorials/index.rst index 9739eee97..a159725a7 100644 --- a/sources/pyside2/doc/tutorials/index.rst +++ b/sources/pyside2/doc/tutorials/index.rst @@ -11,7 +11,7 @@ Basic tutorials --------------- .. toctree:: - :maxdepth: 2 + :maxdepth: 1 basictutorial/widgets.rst basictutorial/qml.rst @@ -25,7 +25,7 @@ Real use-cases applications --------------------------- .. toctree:: - :maxdepth: 2 + :maxdepth: 1 datavisualize/index.rst expenses/expenses.rst @@ -37,6 +37,6 @@ C++ and Python -------------- .. toctree:: - :maxdepth: 2 + :maxdepth: 1 portingguide/index.rst |
