| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
| |
- Expanding on part2 documentation to include detailed steps on
creating a backend REST API using FastAPI and SQLite.
Pick-to: 6.8
Task-number: PYSIDE-2850
Change-Id: Icfe2b9582e53b1fc59a67be661da1c5fe290fe6f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
- This tutorial expands on part1 by integrating SqlAlchemy with PySide6,
by storing the data in a SQLite database.
Pick-to: 6.8
Task-number: PYSIDE-2850
Change-Id: I195149bd861b1fb1a25623a9fe05e42f1e85054c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Detailed tutorial with instructions, explanaton of code concepts,
gifs, steps to run and deploy the application.
- Additionally, register a new role {deco} to be used in markdown.
It is the same as :deco: in reStructuredText.
Pick-to: 6.8
Task-number: PYSIDE-2850
Change-Id: Icb732e830948ee7ad1cb9dcf6bd07b5077c89497
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The custom pages that document specific classes/functions
need a title to be properly displayed once searching in the
documentation page.
The extra module pages don't need a specific title.
Change-Id: Icff3991cc1dee38a2072b49810b22a5bf228147e
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
| |
It is useful for leak checking.
Pick-to: 6.8
Change-Id: Ida19cb863e8232e26c86fa82a64d0d3f741b4646
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
libclang 16 was not working, and to have consistency it is changed to 18+
Pick-to: 6.8
Change-Id: I54e4db59f45ff90bc19916ca77434eb2541272b4
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Change-Id: I7d22571e97e9bbbca663783aaa480b21e1bc991c
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Discovered while testing deployment on macOS,
nuitka fails when the directory and file (e.g. Main/Main.qml)
have the same name.
This might be able to be fixed by other arguments or even
upstream in Nuitka, this is a simple change that will encourage
people not to use the same name in the meantime
Pick-to: 6.8
Fixes: PYSIDE-2919
Task-number: PYSIDE-2910
Change-Id: I596d820e4a30996f9cf934a9f93e6436e51ad0d2
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The other missing things are sequence and mapping methods
which need some more support from cppgenerator. Will be
added later.
typing.Self is only known since Python 3.11 .
We emulate that by patching it into typing and adjusting
the Python version for mypy.
Task-number: PYSIDE-2846
Change-Id: Icb1060c7bba355061d8f134c8e76fb14369d7dda
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The enum Loops provides constants ( Infinite = -1, Once = 1) to be
passed to functions taking int. Change the type to IntEnum to enable
this.
Fixes:
self._sound.setLoops(QSpatialSound.Infinite)
TypeError: 'PySide6.QtSpatialAudio.QSpatialSound.setLoops' called with wrong argument types:
PySide6.QtSpatialAudio.QSpatialSound.setLoops(Loops)
Pick-to: 6.8
Change-Id: Ife4d7a6197220f13a2d59547d8a6b3a503eaff55
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Remove old macros usages for the Limited API compatibility,
and doing some refactorings to their usages.
Change-Id: I10d675a1831d26b3fc878151e3a6ec40c5caddb1
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
macros
Removing old macros for compatibility with the limited api,
and refactoring some of their usages
Change-Id: I33954199d2ef9884c64b963863b97aed851c440f
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add missing find_package() statement and simplify condition.
Amends 83603fed574fc7b0eed452b347170862b12a98f6.
Task-number: PYSIDE-2910
Pick-to: 6.8 6.5
Change-Id: I9d899f141495c486002f01bf7e5db036244d009a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Removing old compatibility macros for the initial limited api
implementation.
Change-Id: Iced149450bd9bda18e43ac0acea0061cdcdb211e
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PySequence_Fast_GET_SIZE is defined as:
(PyList_Check(o) ? PyList_GET_SIZE(o) : PyTuple_GET_SIZE(o))
and when using the Limited API we re-define the _GET_SIZE macro
to be the _Size function, and considering this is our standard
use case, the macro could be replaced directly by the function.
Replacing also some cases were int was used instead of Py_ssize_t
when using PySequence_Size.
Pick-to: 6.8
Change-Id: I31aecd571a1d8ea82a3441f0b9e16ee19f026b05
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PySequence_Fast_GET_ITEM is defined as:
(PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i))
and when using the Limited API we re-define the _GET_ITEM macro
to be the _GetItem function, and considering this is our standard
use case, the macro could be replaced directly by the function.
However, the function returns a new reference, so we need to manually
drecrease a reference after the usage, to avoid reference counting
issues.
Change-Id: If361e80b9e40b033e009ad46b2b9430e5b4c8eaa
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Modify
virtual QByteArray QQuick3DInstancing::getInstanceBuffer(int*)
to return a tuple of <QByteArray, int>.
Pick-to: 6.8
Change-Id: I3a6c249e2e72c4a490aa34c6caa847528b1ceb62
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Addressing a few comments from tests that were related
to the Python 2 compatibility.
Pick-to: 6.8
Change-Id: I88c614549cfb91f879fe3e0d82a6988362e0ce19
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It was still commented out due to not being present in the 6.7
snapshot used for adaption in
a2486060f78a42739d88a460b47f23b0c75b4a79. Remove private class
QWebEngineMediaSourceModel.
It needs to be a value type since it is used in signal
QWebEnginePage.desktopMediaRequested(const QWebEngineDesktopMediaRequest &),
but has no default constructor. This is normally not supported but works
due to it not being used in any other API.
Task-number: PYSIDE-2497
Fixes: PYSIDE-2913
Pick-to: 6.8
Change-Id: Ifaf6bd11988e802b245b33724b1b0b071f7e098a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
It turned out that mypy is not loaded by COIN tests when
requirements_coin.txt is used. Also enforce mypy existence
in COIN to prevent further configuration errors.
As a drive-by, a new cache is used that is > 10% faster.
Task-number: PYSIDE-2846
Change-Id: I75a27cfd0cb0fb0d7cd44c2a121291af052b0d8f
Pick-to: 6.8 6.8.0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The __all__ support for the PySide6 module works just fine.
But there is a last incompatibility that might strike others
as it did hit ourselves when using PySide6.__dict["__all__"]:
Use a derived dict type and define a __missing__ attribute.
Derive further a module type, then it works without problems.
A little support function in Shiboken allows to replace the
dict of PySide6 with this derived type.
amends 703d975f16aff95bc9014a2689a3ae824b5a552f.
Pick-to: 6.8
Task-number: PYSIDE-2895
Task-number: PYSIDE-1890
Change-Id: I018228116a5fdd1401c1ebd42ceb886f6829deeb
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
By default, mypy stores its cache data in $(pwd)/.mypy_cache .
It is better to save it in the pyside_setup folder under a version
specific name. This makes the cache survive full rebuilds.
We tested that this folder is really writable.
Task-number: PYSIDE-2846
Change-Id: I739e74cb24b5aaa1b2b457195e8a143b56a2bc44
Pick-to: 6.8 6.8.0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
First attempt to explain a little how mypy errors were treated.
Task-number: PYSIDE-2846
Change-Id: I13a0d2b8298d5fd1637d3bca9e2b979c7062b811
Pick-to: 6.8 6.8.0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Referencing inner classes like QByteArray::FromBase64Result did not
properly work due to the inner classes being generated to separate
documentation pages.
Change this such that inner classes are nested into the documentation
of the outer class.
The problem though is that this causes excessively long pages for Qt
modules with namespaces like Qt3D/QtDataVisualization (all
deprecated). For them, a type system attribute is added to keep the
old behavior.
Pick-to: 6.8
Task-number: PYSIDE-1106
Change-Id: I51330afa739027c28930af3902b83b1e762b92ef
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Extract longer QtCore documentation snippets to a separate file such
that a minimum build also has doc snippets. This also makes maintenance
easier.
Pick-to: 6.8
Change-Id: I9fb0c93f52d3560e2e07cff076ae516ba96c90a4
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
- Add indentation
- Use refs for classes and decorators
- Fix method/parameter listings
Pick-to: 6.8
Change-Id: Iaada9d40e734935d5e56d75fc2a9b1a72da58e33
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Introduce references. Add a note pointing to the Qt.ConnectionType
parameter.
Pick-to: 6.8
Task-number: PYSIDE-2901
Change-Id: Ibed6d439ef536053dc00c1b941b6d0b02f626b95
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Turn it into a proper class documentation, which can be referenced.
Fix the tutorial link.
Pick-to: 6.8
Task-number: PYSIDE-2901
Change-Id: Id09946fc8598ccc0eb9658ae1a8a5cbef102a2e5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Adapt to qtbase/482287debbecf0c4ee9057faed2c17f0e1126b56.
Task-number: QTBUG-69988
Pick-to: 6.8
Change-Id: I9277b74fa9d7cb2029921432cda96bf552d7ccca
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When trying to write a module.__all__ variable without
interference with different runtime folders, this version
uses the __getattr__ support that Python 3.7 has introduced.
This creates the __all__ variable on demand, when someone
accesses that variable, for instance by "from PySide6 import *"
which is the intended use.
amends 703d975f16aff95bc9014a2689a3ae824b5a552f.
Task-number: PYSIDE-1890
Change-Id: Ia4ead5bc7e499573d534ec7237b27ee737590a91
Fixes: PYSIDE-2895
Pick-to: 6.8 6.8.0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: Idd43e3263d27217f142b9f484d3053fb0b832677
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
After addition of subtypes support, filtering is necessary
to exclude subtypes from resolving.
Deleting the subtype was a bad idea with an unordered_map.
Better is to use a list of names to resolve.
Task-number: PYSIDE-2404
Change-Id: Ide5b13fbd37bab44881a25d4466ec30c89cd9918
Fixes: PYSIDE-2898
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extract the error handling code which existed duplicated in
GlobalReceiverV2::qt_metacall() and
SignalManagerPrivate::handleMetaCallError() as a static helper of
SignalManager and call that from the DynamicSlot functions.
Amends 33bd61d13d8d9e3794b6049891be62f3351313d9.
Pick-to: 6.8 6.8.0
Task-number: PYSIDE-2810
Fixes: PYSIDE-2900
Change-Id: Ife9f156e6752dde7002218d36d369ba68ad595b0
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: I03fd38ffbae1a9a38b8d7efc130c0460da45534f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Testing Mypy on the whole project costs some time,
about 33 s on a Mac Studio Max M1 in debug mode.
On CI with release Windows, this is about 8 sec.
An option "--skip-mypy-test" is added to save time.
The mypy tool is only enforced to exist in COIN.
Otherwise it is optional.
Task-number: PYSIDE-2846
Change-Id: Ibbabbf6b893537ac923fbbaba9ff832ebd675a21
Fixes: PYSIDE-2672
Fixes: PYSIDE-2886
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The multiple signatures suffer from the problem that
many are reported as error, because one larger type
is evaluated before another type.
An Example: PySide6.QtCore.QCborSimpleType is shadowed by int
when int is listed first. That is due to the mro:
int.mro() [<class 'int'>, <class 'object'>]
QCborSimpleType.mro() [<enum 'QCborSimpleType'>, <enum 'IntEnum'>,
<class 'int'>, <enum 'ReprEnum'>,
<enum 'Enum'>, <class 'object'>]
We are implementing a topological sort by mro length that
puts the list into the right order.
Result is from 226 down to 30.
Change-Id: I155e2169c3c8ab4afd5b7bb8f3411ccf6467d440
Task-number: PYSIDE-2846
Fixes: PYSIDE-2687
Fixes: PYSIDE-2886
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
All callables have now arguments.
Task-number: PYSIDE-2846
Fixes: PYSIDE-2884
Change-Id: Ibf6b1d93350304550addbc459c1440bd5cefc057
Pick-to: 6.8
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
PyArg_ParseTupleAndKeywords() can return Py_None for invalid
types in the property decorator, for which getTypeName()
returns "void". Set an error in this case.
Pick-to: 6.8
Task-number: PYSIDE-2840
Change-Id: I98a497df445d9b543dddaa495d85042e00673e78
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Amends b55e221464c18053fa44f18132071ebdaee8f432.
Task-number: PYSIDE-1106
Fixes: PYSIDE-2893
Pick-to: 6.8
Change-Id: I4a2688bfb5fcdddc5c6baea49d2fdc9c0f2381f1
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
This makes installing them easier.
Amends b55e221464c18053fa44f18132071ebdaee8f432.
Task-number: PYSIDE-2893
Task-number: PYSIDE-1106
Pick-to: 6.8
Change-Id: Ic93a1db34ca778ba1df8065c87e51e64e01c5900
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The addition of nested types made it necessary to filter
subtypes out of resolveLazyClasses because incarnateType
should be called for toplevel types, only.
Added a star test to pyenum_relax_options_test.py to
test this case without using extra time.
Task-number: PYSIDE-2404
Change-Id: I4b95c0f65c055376defb6a8e9ea888285c82a8e2
Fixes: PYSIDE-2888
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: Ib753505c12a489ad0db8c941817b6fb0d196ec7d
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
- Fix for full documentation build by adding a new cli option
for the output directory.
Pick-to: 6.8
Task-number: PYSIDE-2853
Change-Id: I06d76567364a4fbc37cb3f8d03a2020d93b9e513
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Callables wrapping C-function and their objects (as returned by
"qobject.deleteLater()") may be temporary objects like methods.
For the connection cache key, use self and the actual C-function
as so that a disconnect succeeds.
This did not show in the old design since the disconnect code
did expensive checks to retrieve the slot index of the function
and used the index code path.
Amends 33bd61d13d8d9e3794b6049891be62f3351313d9.
Pick-to: 6.8
Task-number: PYSIDE-2810
Task-number: PYSIDE-2221
Change-Id: Ic33af0d5da60589df16ca35c17824da592910a4d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Add instructions to download Android SDK and NDK.
- Add instructions to download the wheels.
- Modified 'How to Use' section to include the new instructions.
Pick-to: 6.8
Task-number: PYSIDE-1612
Task-number: PYSIDE-2620
Change-Id: I4d5e4ec634e149288a1f923fe506611dcd09af27
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Amends 008853632d48752ff4604f6ac2f13fe351ff7139,
bc87b5d3319d758827edcdff2798777bcf36ae6b.
Pick-to: 6.8
Change-Id: Ic1d2cb5dc2b19995cd9dfab2311d761d411837e5
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
QWebEngineFrame is used like a value type (stored in QList, etc), but
does not have a default-constructor. Hack around by by adding a
function returning a default-constructed instance using a struct with
the same data members.
Task-number: PYSIDE-2620
Pick-to: 6.8
Change-Id: Id792a47fa9cc3f3c55eb1e52c06d01e03a104a74
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
It somehow got lost in the Qt 5 to 6 transition.
Pick-to: 6.8
Change-Id: I53eb13b516d51a907cf9dd247a735103ec91375d
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Task-number: PYSIDE-2620
Change-Id: I815941a65c9b96c21f98eab4ef671124d8f410bc
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
| |
Fixes: PYSIDE-2883
Change-Id: I56733c7b2bb3e573084ba0b281ad48e7fc6da5f7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|