| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
|
| |
- Expands on part2 by adding a FastAPI Backend thereby creating a
REST API to interact with the database.
Pick-to: 6.8
Task-number: PYSIDE-2850
Change-Id: Ibdcc47b7998923616959e6001eda0de6cabd300c
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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>
|
| |
|
|
|
|
|
|
|
|
|
| |
- Example that extends on the Finance Manager application from Part 1
to use a SQLite database to store the data, thereby showing the
how to use SqlAlchemy with PySide6.
Pick-to: 6.8
Task-number: PYSIDE-2850
Change-Id: I2cce6d033812796ea2fe5cc200c1854494a308f5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Example of a simple finance manager application that allows the user
to add expenses and view them in a pie chart.
- Part 1 of the Finance Manager tutorial series.
Pick-to: 6.8
Task-number: PYSIDE-2850
Change-Id: If13ea04d4e734fe93bfbacc37a121ff902211629
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Updates de524f258c3980814fbc724ed61816894403fa3f. Basically the
download part should be outside the 'if download_only' block
because otherwise the ndk_path and sdk_path would remain None
when ndk_path and sdk_path are not provided via command line
arguments.
- Adds some error handling to the NDK and Command Line Tools
download functions.
Pick-to: 6.8
Task-number: PYSIDE-1612
Change-Id: I545f148caf1c185a1a2cbeeebd5aad3a5359d52b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: I80a10484e669a724e5661741f18071321244fb2d
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Adding missing example from c++
Task-number: PYSIDE-841
Pick-to: 6.8
Change-Id: I029d7c2c20affa2445e9558403bdaf114fa0f847
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@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>
|
| |
|
|
|
| |
Change-Id: Ic1e0760f6db430934fed93a931304b0151638dab
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The helper libraries are now also required on Linux. Also,
some new libraries libQt6FFmpegStub*.so* were added.
Pick-to: 6.8
Change-Id: I78ecd66139b18f48bbbe677990dc8ec570238199
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some signatures should return optional which are marked
as such, others are not marked at all.
Maintain a set of functions with missing Optional[result]
signature.
Change-Id: Ia27f07cf295bc216c3545ed6f735983cf7324317
Fixes: PYSIDE-2440
Task-number: PYSIDE-2846
Pick-to: 6.8
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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 missing WebViewQuick libraries were generating an error on pyside6-deploy.
Now the WebViewQuick files are included.
It's important to notice that it's not an actual module under
sources/pyside6/PySide6 it's only to get the libraries from the
Qt installation.
Pick-to: 6.8 6.5
Task-number: PYSIDE-2910
Change-Id: Ie8773dc24f9c3019e951075f6e274df73abb60e9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
Removing temporary macro used for limited api compatibility.
Change-Id: If55d21805f4c05a149af5fb432dd24edbf2fea03
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@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>
|
| |
|
|
|
|
|
|
|
| |
Amends 83603fed574fc7b0eed452b347170862b12a98f6.
Task-number: PYSIDE-2910
Pick-to: 6.8 6.5
Change-Id: Iabd7a2faaf1363f2dced0852acb1c6f572d297eb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: I6b9fce8b0c7b172534255e9c03e35c008cf74ca2
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current patch modifies the structure for the code
in charge of building and testing pyside in the CI.
Instructions within 'coin_test_instructions.py' and
'coin_build_instructions.py' were duplicated, and other slightly
modified, so the code was standarized and placed in
'coin/instructions_utils.py', so the first two files could be heavily
simplified.
A couple of helper functions were removed from build_scripts/utils.py
in order to reduce the code in the general build utilities for the
project.
Pick-to: 6.8
Change-Id: I0cd4bc51edb2e28c5e81a0be8a27be6cb4027bfd
Reviewed-by: Simo Fält <simo.falt@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The style needs to be available for all supported
platforms, not only Windows.
We were still deploying the plugin, and when trying to find
the library for the style, it was affecting the deployment of
applications.
Change-Id: If8c0b08627beddf59cfb682cc2594ba06aca31f2
Pick-to: 6.8
Fixes: PYSIDE-2910
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>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: Id40b51d321830477ad67545ef0e96124ccafc894
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
They were not supported, like some other dunder methods as well.
Support for them will be added in another step.
Remarkable: The mypy error handling worked without change.
Change-Id: Ia384742ef0c5063ddfbf14257a0503fccff67099
Fixes: PYSIDE-2915
Task-number: PYSIDE-2846
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Remove some unneeded reinterpret_cast<>, localize variables,
fix integer type.
Pick-to: 6.8
Task-number: PYSIDE-2916
Change-Id: Ie6e2504b138c7910195850cd6a5283eee43f42f1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We had a <2 version for Python 3.8, but there is a new limit
on NumPy's side to be compatible with Python 3.9, which is the minimum
version we support on 6.8+.
This raises the requirement to 2.0.2 (the last version to support 3.9)
and pin the latest release 2.1.3 for 3.10+
Pick-to: 6.8
Fixes: PYSIDE-2917
Change-Id: I99ea566f5ecadc8fd3077088f32920dda5d7a529
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
| |
amends a86135803fe51e5702444f8b7dcb2a4dccd3a209
Change-Id: I061f88485ea3029db9bca0a17d76f48d6f65ba62
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@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>
|
| |
|
|
|
|
|
|
|
| |
A few leftovers from Python 2 compatibility
that were around in our code base.
Pick-to: 6.8
Change-Id: I38d97ef217186da1eb5a1d8c5be33884ae9a1cc8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
| |
Reorder the class map by module and add QModelIndex.
Pick-to: 6.8
Change-Id: I23195f37cb8eaf21cdb46a71d98fba1cd776a3d1
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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>
|
| |
|
|
|
|
| |
Pick-to: 6.8
Change-Id: Id92ec75bd60c30f701a7beb34e2298b1c6ba5ce4
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>
|
| |
|
|
|
|
|
|
| |
Write out a (dummy) headline to fix the contexts.
Fixes: PYSIDE-2689
Change-Id: Ia58c682b2cdd2c1d6c25708b3567e2d6632f6e1b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Introduce a data structure for documented classes that has name/full
name and file name so that the class TOC can be sorted by name and
reference the full name. Refactor the fancyToc() function to be able
to handle that.
For the old, flat mode, the unqualified name is used as was before.
Pick-to: 6.8
Change-Id: Ie7528d388faedd5a7bab58394eb6b84db0dc57e4
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
classes
Extract a separate overload Generator::generateSmartPointerClass() for
smart pointers.
Generator::generateClass() gets a new context list parameter by
pointer. It allows the generators to handle inner lasses directly and
remove them from the list. This is useful for the doc generator.
Pick-to: 6.8
Task-number: PYSIDE-1106
Change-Id: I06bf1d23c69b81ea3ad8535eacc0d402045e607e
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>
|