aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2023-03-16 14:59:15 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-03-16 16:32:34 +0000
commit646bd6bceae8e5c9c4476004f07bff53a21f80ab (patch)
tree46ceb6a55aa44c488b697aaafbb64a7c4689752b
parentb2f6e1b26156b6972264ca3ab3cc3743f92136a9 (diff)
doc: adjust usage of -uic and -rcc tools
We encourage people to use the option '-o' rather than '>' to avoid having output messages inside the generated file. Change-Id: Ie45303265c8f391c4e54e0e2af9d7e810a0797aa Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit d8c628599d1145dd5b871b325f38f7990f7383ed) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/charts/chartthemes/README.md2
-rw-r--r--sources/pyside6/doc/tutorials/basictutorial/qrcfiles.rst2
-rw-r--r--sources/pyside6/doc/tutorials/portingguide/chapter3/chapter3.rst4
-rw-r--r--sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst2
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/charts/chartthemes/README.md b/examples/charts/chartthemes/README.md
index 806e391d2..1b1ab51f7 100644
--- a/examples/charts/chartthemes/README.md
+++ b/examples/charts/chartthemes/README.md
@@ -3,7 +3,7 @@
To generated the file `ui_themewidget.py`, the following
command need to be executed:
-`pyside6-uic themewidget.ui > ui_themewidget.py`
+`pyside6-uic themewidget.ui -o ui_themewidget.py`
Also, if you modify the UI file, then you would need
to run the previous command again.
diff --git a/sources/pyside6/doc/tutorials/basictutorial/qrcfiles.rst b/sources/pyside6/doc/tutorials/basictutorial/qrcfiles.rst
index 477c5b738..5b397bd0b 100644
--- a/sources/pyside6/doc/tutorials/basictutorial/qrcfiles.rst
+++ b/sources/pyside6/doc/tutorials/basictutorial/qrcfiles.rst
@@ -67,7 +67,7 @@ a Python class containing the binary information about the resources
To do this, we need to run::
- pyside6-rcc icons.rc -o rc_icons.py
+ pyside6-rcc icons.qrc -o rc_icons.py
The `-o` option lets you specify the output filename,
which is `rc_icons.py` in this case.
diff --git a/sources/pyside6/doc/tutorials/portingguide/chapter3/chapter3.rst b/sources/pyside6/doc/tutorials/portingguide/chapter3/chapter3.rst
index 1d48d4ea3..59ce6c9f1 100644
--- a/sources/pyside6/doc/tutorials/portingguide/chapter3/chapter3.rst
+++ b/sources/pyside6/doc/tutorials/portingguide/chapter3/chapter3.rst
@@ -23,7 +23,7 @@ prompt:
.. code-block::
- pyside6-uic bookwindow.ui > ui_bookwindow.py
+ pyside6-uic bookwindow.ui -o ui_bookwindow.py
Try porting the remaining code now. To begin with, here is
how both the versions of the constructor code looks:
@@ -103,7 +103,7 @@ to generate ``rc_books.py``.
.. code-block::
- pyside6-rcc books.qrc > rc_books.py
+ pyside6-rcc books.qrc -o rc_books.py
Once you have the Python script generated, make the
following changes to ``bookdelegate.py`` and ``main.py``:
diff --git a/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst b/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst
index d9de42ee2..9520f0b5d 100644
--- a/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst
+++ b/sources/pyside6/doc/tutorials/qmlintegration/qmlintegration.rst
@@ -109,7 +109,7 @@ application and PySide6 integration:
.. literalinclude:: style.qrc
:linenos:
- Generate the *rc* file running, `pyside6-rcc style.qrc > style_rc.py`
+ Generate the *rc* file running, `pyside6-rcc style.qrc -o style_rc.py`
And finally import it from your `main.py` script.
.. literalinclude:: main.py