aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/doc/tutorials/portingguide/index.rst
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2019-10-30 15:26:17 +0100
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2019-11-01 13:19:04 +0100
commit4af52ffcfd89a636eff09a500836e14a7ad4d877 (patch)
tree4f88955a63aca65857ffcee791d6f5c309da3733 /sources/pyside2/doc/tutorials/portingguide/index.rst
parent25b06b8df797b3edb88f9d6054f8a7e9e77a280d (diff)
Doc: Fix sphinx warnings about indentation and linking
Change-Id: I22fc8b60d9c9209224eddbd8255f8e2b834da0ae Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/doc/tutorials/portingguide/index.rst')
-rw-r--r--sources/pyside2/doc/tutorials/portingguide/index.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/pyside2/doc/tutorials/portingguide/index.rst b/sources/pyside2/doc/tutorials/portingguide/index.rst
index 8fd4c431a..aabf4b19f 100644
--- a/sources/pyside2/doc/tutorials/portingguide/index.rst
+++ b/sources/pyside2/doc/tutorials/portingguide/index.rst
@@ -66,7 +66,7 @@ In this example, ``func()`` would treat ``var`` as a local
name without the ``global`` statement. This would lead to
a ``NameError`` in the ``value is None`` handling, on
accessing ``var``. For more information about this, see
- `Python refernce documentation <python refdoc>`_.
+`Python refernce documentation <python refdoc>`_.
.. _python refdoc: https://docs.python.org/3/reference/simple_stmts.html#the-global-statement
@@ -128,7 +128,8 @@ Here are a few important ones that you must be aware of:
equivalent for this is the `@Slot`` decorator just before the
function definition. This is necessary to register the slots
with the QtMetaObject.
-* **QString, QVariant, and other types**:
+* **QString, QVariant, and other types**
+
- Qt for Python does not provide access to QString and
QVariant. You must use Python's native types instead.
- QChar and QStringRef are represented as Python strings,
@@ -141,6 +142,7 @@ Here are a few important ones that you must be aware of:
renamed to bin_(), hex_(), and oct_() respectively. This
should avoid name conflicts with Python's built-in
functions.
+
* **QByteArray**: A QByteArray is treated as a list of
bytes without encoding. The equivalent type in Python
varies; Python 2 uses "str" type, whereas Python 3 uses