aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/faq/whyqtforpython.rst
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2023-03-14 15:24:13 +0100
committerShyamnath Premnadh <shyamnath.premnadh@qt.io>2023-03-17 15:37:09 +0100
commita922672c1c4f188cbab51b126b9cae4d7cd8706d (patch)
treed16932f2fbed8c9b2dfac6b6136c654eec4b798c /sources/pyside6/doc/faq/whyqtforpython.rst
parent012e40e6af6355ff05feee899e60e041458ea741 (diff)
doc: migrate to sphinx-design and update sphinx
sphinx-panels is deprecated, and sphinx-design is the better replacement. This patch migrates everything we had in pyside and shiboken, which was useful to remove many CSS related hacks for things we were forcing before. The example gallery was also adapted to generate sphinx-design valid code. Additional adaptation to some examples and files were included as well, which improved the overall example experience. We used this to change to update sphinx as well, which before was not possible to update due to sphinx-panels. Fixes: PYSIDE-2244 Change-Id: Ia3f57f536591ea299bf87302e930203b64fafd7e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/doc/faq/whyqtforpython.rst')
-rw-r--r--sources/pyside6/doc/faq/whyqtforpython.rst19
1 files changed, 7 insertions, 12 deletions
diff --git a/sources/pyside6/doc/faq/whyqtforpython.rst b/sources/pyside6/doc/faq/whyqtforpython.rst
index 6046249b9..0f0ab9aaf 100644
--- a/sources/pyside6/doc/faq/whyqtforpython.rst
+++ b/sources/pyside6/doc/faq/whyqtforpython.rst
@@ -10,7 +10,7 @@ Why Qt for Python?
<div style="float: right; padding-left: 20px; max-width: 30%;
background-color: #e9eff5; padding-top: 5px;">
- <img src="../../_images/tiobe.png"
+ <img src="../_images/tiobe.png"
style="width: 90%;"
alt="TIOBE index for Python" />
<p style="font-size: 80%;">
@@ -67,13 +67,9 @@ Creating Qt applications in Python requires only a few lines of code,
and not much configuration is required to execute it. As an /unfair/
example, let's check the code of a simple hello world application:
+.. tab-set::
-.. panels::
- :container: container-lg
-
- :column: col-lg-6 p-2
-
- .. tabbed:: C++ Header
+ .. tab-item:: C++ Header
.. code-block:: cpp
@@ -96,7 +92,7 @@ example, let's check the code of a simple hello world application:
#endif // MAINWINDOW_H
- .. tabbed:: C++ Implementation
+ .. tab-item:: C++ Implementation
.. code-block:: cpp
@@ -115,7 +111,7 @@ example, let's check the code of a simple hello world application:
m_button->setText("Ready");
}
- .. tabbed:: C++ Main
+ .. tab-item:: C++ Main
.. code-block:: cpp
@@ -130,10 +126,9 @@ example, let's check the code of a simple hello world application:
return app.exec(d);
}
- ---
- :column: col-lg-6 p-2
+.. tab-set::
- .. tabbed:: Python
+ .. tab-item:: Python
.. code-block:: python