| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Use the new SignalManager::callPythonMetaMethod() overload
introduced by ed8fc457e04f4ead8a3b2a2da797bdc14bd5b210 in
PySideQSlotObject to convert the void ** arguments to Python.
Amends acab25a3ccb836818e5089b23d40196bc7414b7a.
Change-Id: I024bc7f8df7fa65b8b1761f517a99a854de2cec8
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
| |
Extract a helper for calling Python slots and add an overload
that only takes a list of parameter types and return type.
Change-Id: I407c3b1ae66eb4f01370ceac3112eb9407796efa
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
QObject::connectNotify() is meant to be called with the signal method.
The code retrieved the signal method from the receiver though,
potentially causing an index violation. Fix it to use the source.
Remove misleading comments from
4edd9a1278efdf37f366e9aa6e82f151a357ef32.
Change-Id: Id5afdde16ce002e156710128e9610804b748be74
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
| |
The audio device returned an unknown format as preferred one,
build a minimal format.
Pick-to: 6.7
Change-Id: Ib9a4db805d2993575aaed066de2ab7e123409f88
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Suppress return value heuristics for them.
Pick-to: 6.7
Task-number: PYSIDE-1057
Change-Id: Id249d8c769f808600545f7a48861bd4fe7eae6fe
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
| |
Suppress return value heuristics for them.
Pick-to: 6.7
Task-number: PYSIDE-2793
Change-Id: I4ebf8c971b02fb00b9c6658b02157eb26d71f418
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Fixes non-unity build compilation error in anystringview_helpers.h
(missing qsizetype). Amends 16098891ad21c2ba984582a1de770e49f961f22b.
Pick-to: 6.7
Task-number: PYSIDE-2792
Fixes: PYSIDE-2804
Change-Id: Ia6d08ce162c66464da5325f53fa564c7a3c6cce6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
signal handling
Use QObject.sender() instead of functools.partial to retrieve the reply.
The callable stored in the signal manager then no longer references it.
Pick-to: 6.7
Task-number: PYSIDE-2793
Change-Id: I43e9f393a7291944da0a7b0b310f8ff889d7906e
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
We can already use the modern typing syntax introduced with Python 3.10
in 3.9 via future statement definitions, even before we raise the
minimum Python version to 3.10.
Task-number: PYSIDE-769
Task-number: PYSIDE-2786
Change-Id: I560d0c25f3503217f920906a5b26193282b0247b
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
| |
Properly document the arguments to QtAsyncio.run() with a docstring
instead of leaving it only to the module rst.
Task-number: PYSIDE-769
Change-Id: Ia4d63b3cdf81d052203a2752ed3ca6cb0b40f814
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the optional application argument from the constructor of
QAsyncioEventLoopPolicy, as it is unnecessary. If a QCoreApplication or
other type of qApp was created outside of QtAsyncio, it will always be
retrieved by QCoreApplication.instance(), and therefore passing it as an
argument makes little sense.
Task-number: PYSIDE-769
Change-Id: Iac7a913a1c9d6ebbb0984fe11f8b5cda955baab1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
| |
The include paths have changed in 2.0
Task-number: PYSIDE-2789
Pick-to: 6.7 6.5 6.2 5.15
Change-Id: I052eaba0f8ed6a5d39817fefad5befc42a8ac871
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Use 50200 as does the C++ example,
Pick-to: 6.7 6.5
Task-number: PYSIDE-2793
Change-Id: Ie827a1f0d3f3b0c0e2bf8ed4ffe343ac26f62275
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.7
Change-Id: I3b460f270965706a1b8ed04ef6f51d540db3ba72
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
| |
Change-Id: If63dc248bfe2970bbdf2a0de28b71cc09700ae6a
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
| |
Pick-to: 6.7
Task-number: PYSIDE-1612
Change-Id: I4e31b27e9614479e0d9b0eeb858dc9701dc5b8d6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Fixes sporadic crashes with Python 3.12
- Supports Numpy 2.0. This is not relevant for us currently, but
it's good to have the latest version.
Pick-to: 6.7
Fixes: PYSIDE-2781
Task-number: PYSIDE-1612
Change-Id: I96a437795018792906ba6cf44e6466dacc154dbf
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a metatype registration for the class for them to work.
[ChangeLog][PySide6] Properties of type QAbstractItemModel can now be
used in QML.
Pick-to: 6.7
Change-Id: I3c0c08175a09f1decb00726b65edc73746fa71a7
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
PyEval_GetFrame() has been observed to return 0 in some cases;
add a check.
Amends f92b7dcac9537fb091dc15d3ee218f1984d8abef.
Task-number: PYSIDE-1735
Fixes: PYSIDE-2796
Pick-to: 6.7 6.5
Change-Id: I403b0483a2654c20192e5554c86d5170188702d9
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
qualified aliases
Change the behavior of registerConverterName() to always overwrite
existing entries. It should then only be used for fully qualified
names. Add a function registerConverterAlias() which does not
overwrite existing entries for registering partially qualified names.
Use registerConverterAlias() for the primitive types since they
are re-registered in multiple modules.
This prevents clashes when registering duplicate classes. For example,
registering a globally scoped class "Connection" will then overwrite
the partially qualified alias "Connection" of
"QMetaObject::Connection".
Fixes: PYSIDE-2792
Change-Id: I2bd3c0bff96da6d3ceddd46a2368fe6b94bbed68
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Move the functionality to register partially qualified names
(previously in helper registerConverterInScopes() and elsewhere), to
register names with indirections, and to use typeid() into the
streamable class controlled by flags. Simplify the code accordingly.
This requires adding indexOf() to the helpers for QAnyStringView.
Task-number: PYSIDE-2792
Change-Id: I7af0d8333e3c417e03f6615b471dc7220c95d388
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
type name
Invoking them would crash. They don't have any effect anyways since
registerConverterName() ignores existing names. Amends
465587ffbac4c7f7b8b6a2219661e42939cb15f3.
Task-number: PYSIDE-454
Task-number: PYSIDE-2792
Change-Id: Idcb9d9b4c8f89ef84047f98ae1f7d627bf3ff5be
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
| |
Change-Id: Ic85973e29870456bf422a3ac75fd9d68524ad886
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Some of the build steps are still flaky, so ignore possible failures
on CI for now.
Change-Id: I58562d0a7f3085dc2796c8e6891be43c9d2a4a66
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.7
Change-Id: I0731c9c02de928dcdf268f5fc773148363b9a8fe
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
- Initialize variables
- Use auto *
- Use nullptr
- Remove repeated return types
- Minor cleanups
Change-Id: I26cacce81a4c8ebc885f8c34d59fdac5d0026af9
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Initialize variables
- Use auto *
- Remove repeated return types
- Fix else after return
- Fix some invocations of static methods
- Make functions const/static where appropriate
- Fix some int types to avoid lossy conversions
- Use Py_RETURN_NONE where appropriate
- Minor cleanups
- Remove some macros
Change-Id: I7fa7a29e7b3dc47037027978001824e0709d001f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Initialize variables
- Use auto *
- Use const references to prevent copies
- Remove const from function returns
- Remove repeated return types
- Fix else after return/throw
- Make functions const/static where appropriate
- Add missing override
- Fix some invocations of static methods
- Fix some int types (qsizetype) to avoid lossy conversions
- Minor cleanups
- Remove some macros
Change-Id: I414b8451703b136f135383289de49e743e84fb3a
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Fix a number of miscellaneous flake8 and typing issues exposed after
updating to the modern typing syntax from 3.10 onwards.
Task-number: PYSIDE-2786
Change-Id: I5476d1208dd1da3fa93bdec02bc6124a80b247fc
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Split coin instructions into separate files specifically for
Desktop, Android and common instructions
- Make changes to cross_compilation script to support coin.
- new 'coin' cli argument introduced. This is required because
Qt installation from CI servers differ from the Qt installation
from the maintenance tool.
- Add a shell script to override the Python used for cross-compilation
for the macOS 13 x86_64 system.
This system is responsible for building the arm64 Android wheels.
The system by default uses Python 3.10. However, python-for-android
requires Python 3.11. Hence, we manually install python 3.11 into
a non default path and use it for cross-compilation.
The default Python of the aforementioned system has been updated to
3.11, but system still uses qt5#6.7. Hence it is not reflected yet.
When ac72bb1d489f7442fe8d9aa168298a94ff62d941 is merged, we will
finally get 3.11 and the need for this script can be removed.
- Add markupsafe==2.0.1 to the requirements.txt file. This is required
to prevent an error while installing Jinja2.
ToDo: Tag Jinja2 version so that this requirements can possibly be
removed.
- Currently only x86_64 and arm64 wheels are produced since they are
the most important. Most Android devices these days are arm64. This
can be expanded to also include x86, but armv7 requires a Windows
host and that is currently not possible with the CI. For armv7 wheels,
users will have to build the wheels themselves using the provided
cross compilation Python script.
Task-number: PYSIDE-1612
Task-number: PYSIDE-2766
Change-Id: I8f15a85887e207a5c6605fd8696d15b4646fb2fd
Reviewed-by: Simo Fält <simo.falt@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
We can already use the modern typing syntax introduced with Python 3.10
in 3.9 via future statement definitions, even before we raise the
minimum Python version to 3.10.
Note that direct expressions with "|" don't work yet.
Task-number: PYSIDE-2786
Change-Id: Ie36c140fc960328322502ea29cf6868805a7c558
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
| |
Pick-to: 6.7
Change-Id: I220202cef2661d07ad311e8a2cf8b6a7bc754606
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
Add a future statement to all Python source files.
Task-number: PYSIDE-2786
Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When building on Fedora rawhide, we sometimes end up running
generate_pyi.py script while shibokenmodule is still being built,
resulting in the following error message:
ImportError: (...)/Shiboken.cpython-313-x86_64-linux-gnu.so: file too
short
Pick-to: 6.7
Change-Id: I500679bf12e4ba5a820db6c7971f8cdb0012b965
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Łukasz Patron <priv.luk@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
The singleShot overload that accepts a context argument was used inside
the do() method of the QAsyncioExecutorWrapper class, but this usage was
unnecessary and adds confusion.
Task-number: PYSIDE-769
Change-Id: Idcdd99eda6ae3bfd11ec50b9a42ff15ade005cc9
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
| |
Pre 3.8 is no longer supported. Move the code into a static helper
for macOS only. This also fixes analyzer warnings about
ignoring return codes.
Pick-to: 6.7
Change-Id: Idd1a53729152f132958f94d288c13ac4399b6c78
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
| |
Fixes a static analysis warning about using macros and makes it
consistent with the generated code.
Change-Id: Ia5ea094e4e41a622d409f25c69492682d08f1c52
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Initialize variables
- Use auto *
- Use range-based for
- Move '#include "sbktypefactory.h"' from basewrapper.h to shiboken.h
(for use by the generated code)
- Fix some int types (Py_ssize_t/size_t) to avoid lossy conversions
Change-Id: I7cc8b33850afcd07cc8f9a115e56a77cbacd58b0
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
| |
|
|
|
|
| |
Pick-to: 6.7
Change-Id: I5fbc1be390c7d24ef7f204721cd060e5d61c88e0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.7
Change-Id: If870ad3e34721da6c7f3d618b1b36378ec4bc754
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
|
| |
|
|
|
|
|
|
|
| |
- Not relevant with the latest Nuitka version that we use with
pyside6-deploy
Pick-to: 6.7 6.5 6.2
Change-Id: Id3e9cc5bcad678cb00a1b6049c740c5e321fbdde
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
- Additionally, remove some comments from default.spec that are not
relevant anymore.
Pick-to: 6.7
Task-number: PYSIDE-1612
Change-Id: Iea2fed95507b6e649285e409cf8678287bf15a56
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the scenario where 'pyside6-deploy --init' is used on the first run
and for the consequent invocations, only running just 'pyside6-deploy'
without any additional options, the deployment should have worked.
This currently had a bug where it overrides the main Python entrypoint
file with the default option of 'main.py'. This issue is caused due to
the order of 'if' loop in the changed function.
Pick-to: 6.7
Task-number: PYSIDE-1612
Change-Id: I605c4b9ff2035e85c0b5f73049a3ecc84d0fd80c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
- enable the tool for macOS
- add dependency .xml to the Android wheels
Pick-to: 6.7
Task-number: PYSIDE-2766
Change-Id: I77495466b8a9cc3565c640beac202d533ee1d2a6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Amends 32e353e9d91f45c23dcb07b0798237c79795cf0a
Pick-to: 6.7
Task-number: PYSIDE-1612
Task-number: PYSIDE-2622
Change-Id: If14d53e5547d2f91d6cdad6a3460a50b375cdd9f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Return a shared ptr to function from
AbstractMetaBuilderPrivate::traverseFunction(), avoiding
leaks when a function is not used.
Pick-to: 6.7
Change-Id: I2fd215a25301fa6773f589bb3f085cf4c1febdd7
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* opcodes have changed numbers. That made "import *" etc. fail.
* PUSH_NULL is sometimes inserted before a call.
* enum_test needed an overhaul due to opcode changes.
Python 3.13 works fine.
Supporting --disable-gil is a different issue.
Task-number: PYSIDE-2751
Change-Id: I37b447148787e2923a58c091a5c8ac808d579bc0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
- Full support for Python 3.12
- Experiemental support for Python 3.13
Pick-to: 6.7
Task-number: PYSIDE-1612
Change-Id: Ib4699351ec4105de756b4ac16cd7b3a49054a614
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Keeping a reference to the original import function is
needed in case someone else modifies import, too.
Thanks to Tony Roberts for this finding.
Change-Id: I6c362698e86e57b1a27cdd9367a89705e944825f
Fixes: PYSIDE-2780
Pick-to: 6.7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- enables the standalone mode of Nuitka for pyside6-deploy
- the mode can be set either through the command line or the config file
- adapt tests
- update documentation
Pick-to: 6.7
Fixes: PYSIDE-2622
Task-number: PYSIDE-1612
Change-Id: I5a10c857d3e79174d2643139eb2e4f7b5e10d955
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|