aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix threading deadlocks of QObject::(dis)connect() with (dis)connectNotify()Friedemann Kleint2023-10-241-2/+9
| | | | | | | | | | | Do the connect/disconnect within allow-threads. Fixes: PYSIDE-2367 Pick-to: 6.5 Change-Id: I95c908d438a4a6c9cd0a23d3fce31a53e02ea19d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 310e206765cbaadee33da8d5098a053ad42b5b67) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* libpysideqml: Fix C++ version propertyFriedemann Kleint2023-10-241-1/+1
| | | | | | | | | | | Amends 862948599999e4e5701452a3f479182606e16a89. Task-number: PYSIDE-1709 Pick-to: 6.5 Change-Id: I1b01f088cbcb99f0c7ac60324bbd98dc4c52f6b0 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit e279142681b10a5edba36cc7c80750168f13cee6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Limited API: update python version usage and fix some minor bugChristian Tismer2023-10-245-19/+15
| | | | | | | | | | | | Python versions < 3.8 are gone now and we remove according queries. A basewrapper.c 3.9 query was corrected to use runtime info, instead. This was a potential refcounting but, but had no reported impact. Change-Id: I031aa6af1ce7c0553bada2436b15a04678285f0e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d10cd1e881c6a07594407f3bfba6f4430b067590) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Deployment cleanup: isort and flake8Shyamnath Premnadh2023-10-2312-37/+42
| | | | | | | | | Task-number: PYSIDE-1612 Change-Id: I620582409749b1ce1e36721f1308005c4f6d2828 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit b77586da0e7041501c5456f229d1c80b68a78e64) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add a separate __str__ function for SignalFriedemann Kleint2023-10-231-2/+16
| | | | | | | | | | | List all signatures, separated by ';'. Pick-to: 6.5 Fixes: PYSIDE-2493 Change-Id: I3c7e3367c340ab142a388a3991dc08774b6c7075 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 566a2164fea3a7fbeda9307ba91ed145b8cc4b52) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide: Fix QLocale crash on macOSShyamnath Premnadh2023-10-182-4/+14
| | | | | | | | | | | | | | | | | | | | | | | - Reproducible in macOS terminal/QtCreator because the environment does not explicitly set the locale unless the locale is changed. - If the locale of the system has not been changed, then the Python locale module's getLocale() returns 'None' as the language code. In this case, use the POSIX locale or 'C' locale as the default as stated in the Python locale module's documentation: `` According to POSIX, a program which has not called setlocale(LC_ALL, '') runs using the portable 'C' locale. `` - This issue does not exist in VSCode because VSCode set the locale in its terminal. Pick-to: 6.5 Fixes: PYSIDE-2485 Change-Id: I23ccfa0ef59912ad950143d4a1080c5a201a4865 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit a0050803761563b3e7db49dd553c13cfc4802eaa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: add qtpip and Maintenance tool contentCristián Maureira-Fredes2023-10-181-0/+88
| | | | | | | | | | Adding information related the inclusion on the Maintenance Tool, and also the qtpip tool Change-Id: Ibbce363b28b980ddb406c63d7dbdce8fcffec5f9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 8acce676f0c3af32c988fd3f35e77c94b234873e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken tests: Fix special functions (simple cases), part IIFriedemann Kleint2023-10-1814-23/+66
| | | | | | | | | | | A 2nd scan unveiled more cases. Complements 92a4a2a0ed7a8a391406030d1db813de7dd31429. Task-number: PYSIDE-2479 Change-Id: I4406a5431f5d852927dd57ed524cedb0fedd464f Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 0f8c63342fd03805c5b1d20e3536cceb2a28163b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix Unity build of QtQuickFriedemann Kleint2023-10-181-2/+10
| | | | | | | | | | | | | | | | qsgrendernode_renderstate_wrapper.cpp and qsgmaterialshader_renderstate_wrapper.cpp have static helper functions named "renderstate_..." that might clash when the order changes due further sources being added. Amends 277783b47e704505f19d00dd80f26239082974d6. Pick-to: 6.5 Task-number: PYSIDE-2155 Change-Id: I9873f2697b03aa1650847d0daaa622930d74c39d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 3073b96abf9cab6e725afdb512c9913754447441) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* libpyside: Implement QMetaMethod::tags() for @SlotFriedemann Kleint2023-10-174-8/+23
| | | | | | | | | | | | | | Tags can be used like annotations and are for example used in the DBus module. [ChangeLog][PySide6] An optional parameter "tag" has been added to @Slot, allowing to set QMetaMethod.tag(). Fixes: PYSIDE-748 Change-Id: I62bef6179917307471cb72491ac3d05970572f3f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit b21d14efdfa6730ed408e6e680e83185d62d631f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove registry existence files of 5.15Friedemann Kleint2023-10-174-151055/+0
| | | | | | | | | Pick-to: 6.5 Change-Id: I5fef2da79500ca40400ba7943183ab22d85ad22d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d099ba0fb651e91f3fa576599bf2c128adf0e847) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve error messages around signal/slot connectionsFriedemann Kleint2023-10-172-5/+7
| | | | | | | | | Task-number: PYSIDE-2487 Pick-to: 6.5 Change-Id: I93d2c350aecf1339c6b18496f376d04cdd37dc29 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 9e2ac0478db3ed4e33119f2128a9053a852f2fac) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Add additional debug statements regarding include parsingFriedemann Kleint2023-10-171-12/+53
| | | | | | | | | | | Output whether system headers are parsed or skipped to the 'qt.shiboken' logging category. Task-number: PYSIDE-1958 Change-Id: If845f57091a39167ea9e36d6736328498290a51b Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 1899b7bf10ef39de79d608a71822840ad99e3aad) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* UiTools/Designer plugins: Fix some static code analysis warningsFriedemann Kleint2023-10-175-28/+34
| | | | | | | | | | | | | Fix warnings about implicit cast to bool (pointer/int). Fix some auto * definitions of pointers. As a drive-by, modernize string constants. Pick-to: 6.5 Change-Id: I05f83de9299dd91e80fc4252514f6cbbebcf1cfc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a51fc3b524d075bc84c1f746e8bbf6016c07790b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Support running PySide on Python 3.12, QML bugChristian Tismer2023-10-171-2/+7
| | | | | | | | | | | | | An old thinking error was found that caused too late deletion of an object. Note: The AutoDecref construct should never be used in a static context. Task-number: PYSIDE-2230 Change-Id: If6519014f564ed86ee95bd45e14ba4821274aea6 Pick-to: 6.5 6.2 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit a2cb898c815987e5ddef9a9e545abe5e0a4e9d15) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove left-over define PyIndex_CheckFriedemann Kleint2023-10-161-1/+0
| | | | | | | | | | Amends 755bf6cab20fb57f60898d80f1f0c5af7a55be60. Task-number: PYSIDE-1797 Change-Id: I4351e8ad1a7a4edaddec6a63a3beed8cb49b1d48 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit 92ea5defdf40241baa5a8d04816cb7bf6f7a2322) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Support running PySide on Python 3.12, cleanupv6.6.0Christian Tismer2023-10-163-2/+9
| | | | | | | | | | | | | | | | | | | In the course of fixing 3.12 issues, a 3.11 fix for PyEnum was missing that created a 3.11 error. A bug with deployment was fixed but not reflected in the tests. This was only visible for pyenv users. Also fixes a minor cosmetic bug introduced by "Python 3.12: Fix the structure of class property" Task-number: PYSIDE-2230 Change-Id: I3a6bd6426e23168dfccdda17b408f193aacd28a0 Pick-to: 6.5 6.2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 29967cb08e6dfd19b0e49013d3b936f9fd18c6a2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix Unity build of QtGuiFriedemann Kleint2023-10-141-2/+10
| | | | | | | | | | | | | | | qtextframe_iterator_wrapper.cpp and qtextblock_iterator_wrapper.cpp have static helper functions named "iterator_..." that might clash when the order changes due further sources being added. Amends 277783b47e704505f19d00dd80f26239082974d6. Pick-to: 6.5 Task-number: PYSIDE-2155 Change-Id: Ib545b8a08be400b9243a0a1d85827e2e97782666 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 008d557918cc9931ae5b43718bd7072b10d1e326) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix crash when running a limited API build of 3.9 in 3.12Friedemann Kleint2023-10-132-2/+11
| | | | | | | | | | | | | | The size of propertyobject as needed as basic size of PyClassProperty_spec needs to be adapted according to runtime version. Otherwise, PyType_FromSpecWithBases fails with: TypeError: tp_basicsize for type 'PySide6.QtCore.PyClassProperty' (56) is too small for base 'property' (64) Pick-to: 6.5 Task-number: PYSIDE-2230 Change-Id: I03788edbb7031577f37db0fb2eb029b41f37c5f1 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 16357c822eff14ff3bfe1b6f4dcf445c407d8b2f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Output the runtime version in QLibraryInfo::build()Friedemann Kleint2023-10-131-5/+9
| | | | | | | | Task-number: PYSIDE-2230 Change-Id: Id365e1dac6a4486dd1ff995dde9b834cf6bf95b4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 88e664e049a07fbb337e593cbc307124f2f8b71a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix disconnecting non-decorated slot of base class from signalFriedemann Kleint2023-10-131-1/+2
| | | | | | | | | | | | | | | | | Further tighten the check for non-virtual slots overwritten in Python by checking that the QMetaObject actually returns a different declaring class. This works around the underlying issue that the logic automatically creating meta methods for non-decorated slots wrongly adds the entry to the derived class. Amends f048d13b4f042b04d94007fba951ed3080ccf8c9. Task-number: PYSIDE-2418 Fixes: PYSIDE-2487 Pick-to: 6.5 Change-Id: I0c62cfd9fd6dcb2ddf6bcfd1db14aa274293b34f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a8f7ee7534a44be5674ef0e68c725651cb6c418c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Browser examples: Some improvementsFriedemann Kleint2023-10-123-3/+13
| | | | | | | | | | | - Output the Render process exit code in hex - Add an option for single process mode for trouble shooting Change-Id: Ia9c9f7b7879b8a0b763f8bd74ac57c3d3579c06f Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit ef6d58cf7ab0878cd5ee79953fc786df4b6f58d9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix QtWebEngine browser on WindowsFriedemann Kleint2023-10-121-0/+1
| | | | | | | | | | Bundle the V8 startup snapshot. Change-Id: I506b795dc85bb0f68a686f819d90d17854d60a10 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 7426769f990e9d1611a0ac989ffa859428ac15bf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add QtExampleIcons to the wheelCristián Maureira-Fredes2023-10-121-0/+6
| | | | | | | | Change-Id: I5896d21f2c85de3a95c6cd6f9706206e2213c6c1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit d6afde733ee83fe713a92d4d6ea4d5758fba98a9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide build: add QtAsyncio to PySide6-Addons wheelShyamnath Premnadh2023-10-121-0/+1
| | | | | | | | | | Task-number: PYSIDE-769 Change-Id: I6cf2ed970ab3e4811841ca845dba7e1c1bfd4f87 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 42ed4d26058197b8ab5f972a7ddc706f345b1bb3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix a warning resulting from bumping Python to 3.8Friedemann Kleint2023-10-125-135/+4
| | | | | | | | | | | | | Remove PepIndex_Check, fixing: Python is at version 3.8 now. The file pep384_issue33738.cpp should be removed ASAP! Amends bcfd0a1ad2f1c333b53db071fe40b2ee3569bd6b. Task-number: PYSIDE-1797 Change-Id: Id195395fc81899c3881b2f9c6767e25d5bf8fb3d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 755bf6cab20fb57f60898d80f1f0c5af7a55be60) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Filter module dependenciesShyamnath Premnadh2023-10-111-5/+14
| | | | | | | | | | | | | | | | | | - An absolute 1:1 relation does not exist between Qt binaries and the generated PySide6 binaries eg: libQt6QmlModels.so exists and contains only QML types. Hence there are no Python bindings for it and QmlModels.abi3.so does not exist. - This patch cross checks the Qt module dependencies against available PySide6 modules and then decides if the dependency is a valid PySide6 module to be copied to the Android application `lib` folder and and also added to `libs.xml` to be loaded on application startup. - As an addition, 'isort' is ran on 'buildozer.py'. Task-number: PYSIDE-1612 Change-Id: I40a6b747ee21a2eefadf557b81b5e1500b2d0a1e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit cd168efbe0c4557b64ac5483a286cb27aec8ddad) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Pin qt5#6.6.0 sha1 and clean up wheel names for 6.6.0 releaseSimo Fält2023-10-113-5/+5
| | | | | Change-Id: If7a4a21226154ecd1283de0311f74134b03b408c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* QtAsyncio: Don't schedule events when quitting appAdrian Herrmann2023-10-111-1/+12
| | | | | | | | | | | | Do not schedule events from asyncio when the app is quit from outside the event loop, as this would cause events to be enqueued after the event loop was destroyed. Task-number: PYSIDE-769 Change-Id: Ib9ff3949653783e4a9484a8a28f1c0010dcff33f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 2199b95e00fbf0b06d23659274e080a7d75b5988) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Install Python dependencies on first callShyamnath Premnadh2023-10-111-6/+13
| | | | | | | | | | | | | | | | | | - `pyside6-android-deploy` has dependencies on Python packages `jinja2` and 'pkginfo'. Earlier they had to be manually installed by the user. - This patch automates the installation on the first invocation of the tool. - Windows and macOS desktop hosts now prints a not supported message and exits pyside6-android-deploy. - As an addition, ran `isort` on the file. Task-number: PYSIDE-1612 Change-Id: I9ecba72afb396624809e98adf43236a2f15c15eb Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 8ef13b6b75defbf0825db9e1ca27817f2b52647a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* CI: Use python 3.8 on win instead of 3.7Simo Fält2023-10-113-3/+3
| | | | | | | Change-Id: I3a3024b017554377fda06b5340d7b5dc617d94fb Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit bcfd0a1ad2f1c333b53db071fe40b2ee3569bd6b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Final details to enable 3.12 wheel compatibilityCristián Maureira-Fredes2023-10-114-9/+8
| | | | | | | | Change-Id: I0252c4e73e8c214ef8aa418ddf88bc452c0fdf53 Task-number: PYSIDE-2230 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 6c7bb7b6e1008909e49bc04d2a48024309a784cc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Deployment tool: Code fixesShyamnath Premnadh2023-10-116-33/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | - `--config-file` now defaults to pysidedeploy.spec. This enables to automatically find the config file, in case if it is present, without specifying it through the `--config-file` option. - Use `pip freeze` also to check if a Python package in installed. This is useful for packages like `patchelf` which does not provide a Python module, but only an executable. - Change some `logging.exception()` to actual exceptions because the the exception requires some manual intervention for resolution. - Some of the config options were earlier reevaluated even when an existing config file exists. This is now adapted to skip the reevaluation when a config file exists. - In case of pyenv python, add `--static-libpython=no` as extra argument accepted by Nuitka. This is because pyenv Python uses `--enable-shared` by default since release 2.3.10 - https://github.com/pyenv/pyenv/pull/2554 - Some general fixes related to logging. Task-number: PYSIDE-1612 Change-Id: Ib0fa0ca0ec3a08c07140c0c2fa32f422658d04d8 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 6337e4a306babdb4015c248a14ad734b320ed2c1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken: Get rid of tp_dict in general, amendedChristian Tismer2023-10-119-19/+43
| | | | | | | | | | | | | | | | | | | | A few more cases of cppgenerator were added. This are now really all cases, because tp_dict is no longer exported. As a very positive side effect, there is no longer direct tp_dict access in the "init_<type>" functions. Usage of PepType_GetDict would have created a permanent extra-reference. NOTE: It was necessary to set SKIP_UNITY_BUILD_INCLUSION on pep384impl.cpp in order to let this work with unity. Change-Id: I021dbc978b51265db96d5d3d438e06aa96230cc1 Pick-to: 6.5 6.2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 6d87aac5fdb5f7548d4573c8ffb967e00956bc30) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* CI: Disable debian packaging config for nowSimo Fält2023-10-111-0/+3
| | | | | | | | | | With currently used focal chroot we are missing some dependencies so there is no way that pyside debian package would be successful. Change-Id: I55453fde14b4ef342f2e184279c7bb069fd738f6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit db1b6c991e48e0ccfc71c44154e634a547c8e67b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Deployment: More code fixesShyamnath Premnadh2023-10-116-41/+46
| | | | | | | | | | | | | | | | | | | | | | - Formatting and text updates. - extract_and_copy_jar() returns the extracted path to the jar directory - Buildozer class is now initialized when `pyside6-android-deploy` is run with --init. This is because it updates the recipes folder. - Buildozer defaults for Android NDK cannot be used anymore because `pyside6-android-deploy` uses llvm-readelf from the NDK to find the binary dependencies. - Change print statement to RuntimeError incase `main.py` does not exist - Change logging.exception to RuntimeError for the function `find_pyside_modules` Task-number: PYSIDE-1612 Change-Id: I6ef5d5dfe9acae5f0029553ca2c6f07d91b6e462 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a7f7ab6ef12005f4ca86c5a4934c33d2539a23e5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* async: Remove unneeded signal from exampleAdrian Herrmann2023-10-101-6/+0
| | | | | | | | | | Remove the unneeded done_signal from the eratosthenes asyncio example. Task-number: PYSIDE-769 Change-Id: I5cc347ebb265e55afa82d37ce07fa2c6378ce133 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit caea287e8250dd5a3107e56fb8afe7c53d7866bf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Desktop Deployment: Update docsShyamnath Premnadh2023-10-101-1/+5
| | | | | | | | | Task-number: PYSIDE-1612 Pick-to: 6.5 Change-Id: I825b3cf13aba173313bcbef74d2007d3ca4c12b0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 23d21957f59b12250164c188b21e2027a1c67643) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken tests: Fix special functions for class ObjectTypeHolderFriedemann Kleint2023-10-105-11/+5
| | | | | | | | | | | | Remove the unused CT default parameter value ObjectType::defaultInstance() which would have led to deletion of a stack object. Turn it into a <object-type> and disable copy/move. Task-number: PYSIDE-2479 Change-Id: I010f8d27664a37999742c47e6e446e702853344c Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 3c703beea87b353d0b99187830f7a1a3f3d65b2b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken tests: Fix special functions for class OnlyCopyFriedemann Kleint2023-10-102-24/+9
| | | | | | | | | | | Use a shared pointer for the Private class, so that the default copy/move can be used. Task-number: PYSIDE-2479 Change-Id: Iebc75b230c7b87d47be10e10f6565eaaccb17f66 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 1faeb2e56ffdbeeed4df41b58851e51a7766c18c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken tests: Fix up class SimpleFileFriedemann Kleint2023-10-103-29/+28
| | | | | | | | | | | | | Make it a proper object type with a unique pointer. Use the new std::filesystem API to retrieve size and check for existence instead of opening and winding. Fixes: PYSIDE-2479 Change-Id: I07e64a2b002195c7b6bce3526ef3ec6ea30a555e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 95713d33383fa095d9b943e540fa927f03b65b8c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Fix some static code analysis warnings in the generated codeFriedemann Kleint2023-10-103-43/+52
| | | | | | | | | | | | | | | Remove left-over reinterpret_cast<> from SbkType to PyType (SbkType was removed). Fix warnings about implicit cast to bool (pointer/int). Fix some auto * definitions of pointers. Generate wrapper destructors as override when applicable. Pick-to: 6.5 Change-Id: I961a1c64821bbf0f2648f5e897029f1aa7d61a43 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 9b2aa20bc84b17185f6d2e1f5966ef7baff99c4e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken tests: Fix test for user added constructorsFriedemann Kleint2023-10-103-8/+25
| | | | | | | | | | | | | The test injected code to manipulate the overload number of the overload decisor and change values based on that which lead to unpleasant surprises when adding copy and move constructors. Spell it out to do some basic string parsing instead. Task-number: PYSIDE-2479 Change-Id: I7a6fb9c8c22532a20711b4854f5c9b3b0d81d213 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 0c71a7086aefbdd3c3f6a4e0e76fa8804ee8d8ea) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken tests: Fix special functions for class ExpressionFriedemann Kleint2023-10-102-58/+28
| | | | | | | | | | | | Refactor it to use shared_ptr, so that the default copy/move can be used. Note that the previously generated move functions could have caused double deletion. Task-number: PYSIDE-2479 Change-Id: I06e3787e64a726406f6bc5d0d7a2d67b6ab5d870 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 58197c0cc5a5b66952abb58fb762a272dcd32cfa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add changelog 6.6.0Friedemann Kleint2023-10-101-0/+88
| | | | | | | Change-Id: Ie4cad684d77d54baca6b574091cf6bf6ad7f700d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 6c67f5abd560e864177da257b7ad983da50c4f80) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pysidetest: Fix some static code analysis warningsFriedemann Kleint2023-10-106-10/+13
| | | | | | | | Pick-to: 6.5 Change-Id: If0050eadfc36444300b61498e46034ad3b4c8cdd Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit cb19608e2614e98139addebdd57ee3b924a52c30) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken: Get rid of tp_dict in generalChristian Tismer2023-10-0912-39/+74
| | | | | | | | | | | | | | | | It is a long due task to finally remove the direct access to type object fields. With Python 3.12, direct access to tp_dict became problematic. We use that as a reason to start removing the direct access in favor of function calls. Task-number: PYSIDE-2230 Change-Id: I6f8a7479ab0afdbef14d4661f66c3588f3a578aa Pick-to: 6.5 6.2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 8b9d69fac87cb18777e33103512c8592edd05ff4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken: unify the calculation of runtime versionsChristian Tismer2023-10-091-13/+4
| | | | | | | | | Task-number: PYSIDE-2230 Change-Id: I422cc43b4c43ac01f3805f5b2e9f32210f7257d7 Pick-to: 6.5 6.2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 65ac5d41a68dac51f85976e22ad2379d659f2f8e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Support running PySide on Python 3.12Christian Tismer2023-10-0917-31/+133
| | | | | | | | | | | | | | | | | | | | Builtin types no longer have tp_dict set. We need to use PyType_GetDict, instead. This works without Limited API at the moment. With some great cheating, this works with Limited API, too. We emulate PyType_GetDict by tp_dict if that is not 0. Otherwise we create an empty dict. Some small changes to Exception handling and longer warm-up in leaking tests were found, too. Pick-to: 6.5 6.2 Task-number: PYSIDE-2230 Change-Id: I8a56de6208ec00979255b39b5784dfc9b4b92def Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 441ffbd4fc622e67acd81e9c1c6d3a0b0fbcacf0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* libshiboken/libpyside: Fix special functionsFriedemann Kleint2023-10-068-1/+25
| | | | | | | | | Task-number: PYSIDE-2479 Change-Id: I6df19d487be7087f17e37bea3ea30a66e9b24ed7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit dc11b2d45959ebd4a088dcd7dbcc24a1753a62b3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>