aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix exit crashes of the audiooutput exampleFriedemann Kleint2024-02-211-2/+9
| | | | | | | | | | | Make sure it stops in closeEvent(). Pick-to: 6.5 6.2 Task-number: PYSIDE-2206 Change-Id: I749e82b6bd689b8c608c3438fe3480581e82bf14 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit a9aa412970ff960384ff2671c6262581c8abb669) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix hangs when changing the device or suspending in the audiooutput exampleFriedemann Kleint2024-02-211-4/+6
| | | | | | | | | | Add some allow-thread to QAudioSink. Pick-to: 6.5 6.2 Change-Id: I64bf3ee38f8c30b2addf20b83495d4960eb5f9db Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 5d30856aecf720d744e9b11b59aa6e1085072b72) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* examples: Simplify minimal_asyncioAdrian Herrmann2024-02-161-24/+2
| | | | | | | | | | | | | For historical reasons, the minimal asyncio example was unnecessarily complicated (as it tried to follow the trio example's approach of an AsyncHelper class). Simplify the code to make it more straightforward and understandable. Task-number: PYSIDE-769 Change-Id: I376b73356f7e46f640db482a9e149f1a6fa54dd6 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit be94c0d2fe10524bd29264b0ce448a8b492eb97e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add benchmark script for lazy initialization, comment fixChristian Tismer2024-02-161-1/+0
| | | | | | | | Change-Id: I3a8b6c8f708f97a1dc26540a23bdeb5c91d87ceb Task-number: PYSIDE-2404 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 9b240cd08c69b511271c33df07028b41e0a528c9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation/example gallery: Ignore existing directoryFriedemann Kleint2024-02-161-1/+1
| | | | | | | | | | build_rst_docs can sometimes result in the directory being present and deletion can fail (particularly on Windows). Change-Id: Ib0a4f7db9e5010b6150cbfef8a30f443ce0165ee Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit 5b34cf04c066ed363cf6d1f8451f5c49269114fd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Link more tools from the package details pageFriedemann Kleint2024-02-161-2/+2
| | | | | | | | | Task-number: PYSIDE-1112 Change-Id: Idec746d10be03174c6ec74e9ad18cb1287385925 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 61832187b75a1bd76321431bac7248a152d32f0a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add benchmark script for lazy initializationFriedemann Kleint2024-02-151-0/+39
| | | | | | | | | Task-number: PYSIDE-2404 Change-Id: I0e9249504ba1dbcff7317413d9ad8c774e60fdd2 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 9b2ba5e6b3e19a1c9bcdfb2b96e79d426695a9d6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-project: Fix --dry-runShyamnath Premnadh2024-02-153-19/+39
| | | | | | | | | | Bug caused from 10715102f01bfee9c0122f21680f05414a947357 Pick-to: 6.5 Change-Id: I50631239134f154baebab0eef4d36c52e8ba398b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 7967b70159ccf330c38e8bdd73cdafafe6dc0cf2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Skip empty tokens when parsing include path optionsFriedemann Kleint2024-02-131-4/+8
| | | | | | | | | | | | | Things like "Path1;;Path2" have been observed in COIN, make sure we handle them correctly. Complements 9205a48848c881c67130e7b96e3ad98aa870052e. Task-number: PYSIDE-2505 Change-Id: I5e767ca512ad8a7fe86bd99f2b77d6f4d4e23114 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit b930d88c7341ebefdca2dfc206fd7f747cdf5e11) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Fix broken link to widget styling tutorialFriedemann Kleint2024-02-131-2/+2
| | | | | | | | | Pick-to: 6.5 Fixes: PYSIDE-2603 Change-Id: Ic0be86e7672b0b88f5512424bed98a36cd68a305 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 5fc29707445195415d68de2b1f0d38df294da4c0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/compiler support: Extract helper compilerFromCMake()Friedemann Kleint2024-02-122-7/+18
| | | | | | | | | | | It is needed by the shiboken wizard. Task-number: PYSIDE-1338 Task-number: PYSIDE-1032 Change-Id: I53e2bd7bc27940a0d00e0db6acdd0f8603e94d41 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ea20990968ccbf11a99b45247ea5d231ab55cacb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken: Fix the polymorphic names in styleOptionTypeChristian Tismer2024-02-121-22/+22
| | | | | | | | | | | | | | There is a bug that actually creates new types instead of using the existing ones. Amends de5f162a70dda9d74cfce2337a9f90ddcb4ca75f Change-Id: I9516574d04465b206777e86f46df593ea53fcc43 Task-number: PYSIDE-2404 Fixes: PYSIDE-1909 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d9f3fb812d87ba727f7c6ccae6b36505bedfb21f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Qt Linguist example: Enable building translations with pyside6-projectFriedemann Kleint2024-02-122-6/+12
| | | | | | | | | | | Remove the use of the "translations" directory and make it a resource prefix instead. Adapt the tutorial accordingly. Pick-to: 6.5 Change-Id: I9b7da17b4aac6a1470f5105b33a6267c78e1c26b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 6b5622f44b32c6808f4de2456744f81391c24235) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-project: Add a build rule for building .qm files from .ts filesFriedemann Kleint2024-02-122-0/+8
| | | | | | | | | | | [ChangeLog][PySide6] pyside6-project now also builds translation (.qm) files. Pick-to: 6.5 Change-Id: I9863ff3d031499ae7a74c04ec988ca2085a75cfa Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 591959285a651110d3057afd64d6ceff746a2b27) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtAsyncio: Fix missing attribute on WindowsAdrian Herrmann2024-02-121-2/+2
| | | | | | | | | | | | | The deprecated functions get_child_watcher() and set_child_watcher() of QAsyncioEventLoopPolicy have asyncio.AbstractChildWatcher in their signatures, but this type does not exist on Windows. Use typing forward references to fix this. Task-number: PYSIDE-769 Change-Id: I950e6294a247959875f39bd5e7706082cd4f3a0e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 467b6dae13c2af0aa58100f4a1991895ebd2d6ec) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-project: Ensure rc_.py files are built lastFriedemann Kleint2024-02-121-1/+11
| | | | | | | | | | | Resource might depend on generated files. Introduce a sort function to ensure .qrc goes last. Pick-to: 6.5 Change-Id: I8188eda00247cb192a485f30755100862d6895a1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1483ff628f4fe657eddcb78d98c348ea132d0955) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve the samplebinding build instructions for WindowsFriedemann Kleint2024-02-121-1/+1
| | | | | | | | | | | Add CMAKE_C_COMPILER definition to prevent CMake from falling back to Clang. Pick-to: 6.5 Change-Id: I755d6c99f84293c680e56b7cfa7af3f7fb0dd934 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 77ebff2d7dd661a2f203f8c5900e445b73b97204) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* create_changelog.py: Treat 6.5 as LTSFriedemann Kleint2024-02-081-2/+2
| | | | | | | | Pick-to: 6.5 Change-Id: I06c2c294decfc7936f9a65bbdcc02bfee481f578 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit f285d1709d412fe857d8f6bc7060b759859c1d95) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* metaobjectdump.py: Handle string type specifications in @Slot, @PropertyFriedemann Kleint2024-02-081-3/+12
| | | | | | | | Pick-to: 6.5 Change-Id: Ia940796bd129522e703ae35ffa2963bf21d9680f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit adbcaff5c3406b2a706c025dc897e0785e9645e5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* metaobjectdump.py: Silence warning about unknown decoratorsFriedemann Kleint2024-02-081-2/+2
| | | | | | | | | | We are only interested in Qt decorators. Pick-to: 6.5 Change-Id: Idb9737f5151e6fe4db383e8682b0c6019c3cb61d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit bbdfde46b9b81d2c4b00cbc174138828035ffc8d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QTimer: Fix singleShot overload with contextAdrian Herrmann2024-02-083-24/+44
| | | | | | | | | | | | | The singleShot overload with context had a problem where if the functor was a slot of a QObject, it would not have a sender when it should. To fix this, the newly added QObject.connect() overload with context is used. Change-Id: I654c09efb0d1b37ea0c014e9f17cd5e1913d1a96 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 6b227000f28c82e189f3cc26275ca7a930f75e2f) Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* build: undef slots to avoid conflict with qt in designercustomwidgetsCristián Maureira-Fredes2024-02-081-0/+1
| | | | | | | | | | While using unity builds, the 'slots' definition seems to come before the Python.h include. Change-Id: I6ff147874fcad31b02438190c44cd70a8e573a1c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit b7112652408c2e2bb45be5f3f80cd6f6eb2026d4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Brush up the usingmodel exampleFriedemann Kleint2024-02-072-32/+28
| | | | | | | | | | | | | | | | | Although not any more in Qt, it nicely shows the use of roles and delegates in QML. - Use a little data class for Person. - Change the custom role name away from "modelData" which is now a reserved name and caused it to no longer work. - Use a modern decorator. Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I3a3c1ad96f3a7ee89ada839236b45f461af149c7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1cb34de532ac9d5735d3bcbe7f6a40608d29e5ad) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* deploy: add pyside icons for windowsCristián Maureira-Fredes2024-02-071-1/+2
| | | | | | | | Change-Id: Ia8dc07da08cf90db5f847b595c33b649a5cdc55a Pick-to: 6.5 6.2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 9903b9154859e28b39fc30e104585902d8a7212d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QObject: Add connect() overload with context argAdrian Herrmann2024-02-077-0/+137
| | | | | | | | | | | | On C++, there is an overload of QObject::connect() that allows passing a context object. This creates a connection in the context object's event loop instead of that of the caller. This implements said overload in Python. Change-Id: Ia6a098a04470741efd450818c31aa5bffb1bd9f8 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit acab25a3ccb836818e5089b23d40196bc7414b7a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QObject: Add param names to connect/disconnectAdrian Herrmann2024-02-071-11/+10
| | | | | | | | | | Add parameter names to the QObject.connect() and QObject.disconnect() overloads for the stub file. Change-Id: Ida441288817046dc3eda043df5d64609a8b4f3bb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 290049e9e0066c195345afaa1ec573a1abe2f953) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* build/Linux: Fix shiboken6 failing to launch due to missing libicuFriedemann Kleint2024-02-061-3/+1
| | | | | | | | | | | | | | Also ship ICU for the shiboken generator. Amends 43fe3494a9d902034896e3afa7b5158c77163be0. Pick-to: 6.6.2 6.5 6.2 Task-number: PYSIDE-749 Change-Id: Ib5529693fde51f245a90be0ae4a56139e3aadf45 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> (cherry picked from commit 677839164f424e8cd844d4ff8b81c3a3297af1f3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add changelog 6.6.2Friedemann Kleint2024-02-051-0/+66
| | | | | | | Change-Id: I92bd9af13d5d9be07329a227132ac8da2e4b2d0e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 7818b0ec48b22be39ebe4717cb3a729d941fb074) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide Tools: Fix flake8 warningsShyamnath Premnadh2024-02-0218-49/+47
| | | | | | | | | | | | | | - Fix general flake8 warnings in pyside-tools. - add F401 to .flake8 to ignore unused imports from __init__.py files - add E402 from __init__.py to prevent errors related to partial initialization of modules. Pick-to: 6.5 Change-Id: Ia848b08ff6f0d2808e04f6a83c46636e2d167c02 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit fec10bbbc097eff76a1f618f2791b3df1326594f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix callable invocationsFriedemann Kleint2024-02-014-20/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | - Always make sure to decref the result by using AutoDecref. - Check whether the callback passed to QAbstractOAuth::setModifyParametersFunction() really returns a dict. - Fix bool return of the callback passed to QWebEngineCookieStore::setCookieFilter(). - Some code cosmetics Amends f56329c995d4a708d4169ef52f819b38de1810b0, 535a781d534f4c9d102342a9813528e48c576ffd, 96715550f3d980dc5554c67a3660e94b6a9a3e76, cd394249fc77063a2bd6ba7a7633fdbc10621475, 5fac301e8e5a8d15eaff91d78b5deeeb2204c7b4, Task-number: PYSIDE-1612 Task-number: PYSIDE-1815 Task-number: PYSIDE-1912 Task-number: PYSIDE-2234 Pick-to: 6.5 Change-Id: I180ed4dfa63fe8ac06a898492244a85ed926c2d6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit f6538d29fbd7d216ce00cdc2870c3a1055a24d26) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Documentation: Link the Qt Linguist and GNU gettext examplesFriedemann Kleint2024-02-013-2/+16
| | | | | | | | Task-number: PYSIDE-1112 Change-Id: Ica9c369f488afae6206b30e17d3743e0f3772642 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit aca1566cb4697f0715a9897ee5c3734d63d128e7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* examples: fix flake8 issues and add exceptionsCristián Maureira-Fredes2024-02-0186-129/+130
| | | | | | | | | | | | Exception for: - qApp and tr not being directly imported: F821 - *rc and qml modules being imported but not used: F401 Pick-to: 6.5 6.2 Change-Id: I5e40f3f54c1721ef3dc5d7f1e87d5fd8ec771b8e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 0555111721a2283a177864538fb437b31b148f63) Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* flake8: Fix path for E402 exceptionsAdrian Herrmann2024-02-011-1/+1
| | | | | | | | | | flake8 should ignore E402 not only for Python files that begin with test but also for those that end with it. Change-Id: Ie8a99d8de69b40b641a5be24c87dca787b80222e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 594a41e3ea52e38b4c202325b2733f9484484c41) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Improve code snippet error handlingFriedemann Kleint2024-01-318-20/+70
| | | | | | | | | | | | | | Type conversion errors in code snippets can be hard to diagnose, particularly when they occur in an invalid context due to misspelt snippet markers. Add some functions wrapping the in try/catch, adding some context information to the error messages. Change-Id: I7e35f298497b7fd0b582f43d6941a683e18377b3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 866f6620aaa852c6fafb4b96625017ad44ce0dcb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Remove personal fork of p4aShyamnath Premnadh2024-01-311-4/+0
| | | | | | | | | | | | - Android deployment worked by using my own fork of p4a. This can be removed now that the changes are merged into the master branch of p4a. Task-number: PYSIDE-1612 Change-Id: I530c6f6b6cbeffa80b3833c1d6efb50154eb47e9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f9e885010a55883a066c01b3ee48266b0a919df3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Explicit android group in config fileShyamnath Premnadh2024-01-313-11/+13
| | | | | | | | | | | | | | - Distinguishes the changes fields as only relevant for Android Deployment. - This distinguishing group makes it clearer when we finally have iOS wheels. Task-number: PYSIDE-1612 Change-Id: I215d2deec0117ae855e6d9a061642984eccd36ef Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit e934ae1999c6510ae2ba3cc29547c839c1a1089b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* flake8: deploy testsShyamnath Premnadh2024-01-313-8/+12
| | | | | | | | | | | | - general flake8 fixes. - this prevents flake8 from reporting E402 error for `from init_paths import init_test_paths` not being in the top of the file. Change-Id: Id21ef66979cb7e79db63c656cc150017751d1716 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 2653193e6989ea300339ff6ba7efde3597051f67) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Multi-architecture supportShyamnath Premnadh2024-01-301-115/+121
| | | | | | | | | | | | | | | - Supports creating wheels for all 4 Android platforms in one single run. - The earlier --plat-name option is now optional and takes multiple platform names. If the option is not specified, then wheels are built for all the Android platforms. Fixes: PYSIDE-2550 Task-number: PYSIDE-1612 Change-Id: I003e34046a88e792dde89a4d224918b5608111aa Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit ac6c01d3d69af99da4bef66a4e20f07c9c15ffc6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Fix armv7a platformShyamnath Premnadh2024-01-304-5/+25
| | | | | | | | | | | | | | | | | | | | | - There were a couple of errors when building Android wheels for this platform mostly caused due to having an extra "eabi" for all the clang compilers, but also that the CMAKE_HOST_PROCESSOR name was wrongly specified. - The api_level passed while creating the cross_compile.sh script was also wrong as this should always be a number. - The CMake FindPython module returns Python_SOABI as empty for armv7a due to a possible bug in the FindPython module. The Python_SOABI is obtained by running `python3-config --extension-suffix`. python3-config be a script can also be run on the host platform and hence for armv7a, the Python_SOABI can be explicitly specified to workaround the CMake bug. Task-number: PYSIDE-1612 Change-Id: I3515db730b8c4f283f4c9f1d2e78fbc9d1aa903a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 713c75a0b2ec50573dfeb387dcf64dcd763b19a5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside_tool.py: Work around console encoding issues on WindowsFriedemann Kleint2024-01-301-7/+4
| | | | | | | | | | | | Use subprocess.call() instead of capturing the output. As a drive-by, use stderr for error messages. Pick-to: 6.5 Change-Id: I28c9623754b0718cd4a5041475f451247ac5811f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 3297df54f240705e5e8058cbae39f3f6e41effb5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Document missing namespace attributesFriedemann Kleint2024-01-301-0/+12
| | | | | | | | | | Amends 91cb27a2a7180e9c05b806d870b266fa31bef041 Pick-to: 6.2 Change-Id: Id68305dbe40727e85c7d483e5692d0329bee2f02 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 7088823da7c04a433b140f070f18dba0d744f95f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtAsyncio: Introduce quit_qapp argumentAdrian Herrmann2024-01-303-7/+28
| | | | | | | | | | | | | | | | | A new optional argument quit_qapp can be passed to QtAsyncio.run() to configure whether the QCoreApplication at the core of QtAsyncio should be shut down when asyncio finishes. A special case where one would want to disable this is test suites that want to reuse a single QCoreApplication instance across all unit tests, which would fail if this instance is shut down every time. Fixes: PYSIDE-2575 Task-number: PYSIDE-769 Change-Id: I49cd0a50311fb30cc50df9b7f6a6d73fe8c58613 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 3bc157720e37198c99e2d9c8ce38185b894b2fdd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Unify cacheShyamnath Premnadh2024-01-301-82/+107
| | | | | | | | | | | | | | | | | | | | | - Instead of creating a temporary directory and adding toolchain files, cross-compiled Python etc., these are now stored in .pyside6-deploy-cache and are cached. - -apic option removed. Since cross-compiled Python is now by default added to .pyside6-deploy-cache, this option can be removed. - Run `distclean` on the cloned CPython each time Python is cross-compiled. This lays the foundation for multi-architecture support. - Add a cli option --clean-cache to clean .pyside6-deploy-cache. More control is given with this option to clean only specific folders or files. - Remove unsued variable qt_plat_name. Task-number: PYSIDE-1612 Change-Id: Iaa0e35e49e0bf9650b97c87d2b8db3c6c86e0d5c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 59724b9a3160b9678ecfe98910fd75dd456089cd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add documentation on how to adapt to new Qt versionsFriedemann Kleint2024-01-293-0/+47
| | | | | | | | | | As a drive by, add a comment about QT6_DECL_NEW_OVERLOAD_TAIL to the QtCore type system file. Change-Id: Idf395158f955fb3114431a04542a26341f53a7af Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit d174ff9888069407a1042bce67ed63712ff1e69e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Prepare for making the global scope prefix configurableFriedemann Kleint2024-01-294-20/+19
| | | | | | | | | | | | | Use helper getFullTypeName() in more places. Remove the global scope prefix from wrapper classes, they should not cause ambiguities. Task-number: PYSIDE-2590 Change-Id: I47b6a69c27ea5469f8f11ec10fc349dec4689c60 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 791f7c7e882c3c1003c0f83173495d513e452d1f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* build: made shiboken6_generator depends on shiboken6 moduleCristián Maureira-Fredes2024-01-261-0/+2
| | | | | | | | | | This was forgotten on the old to new wheels transition. Pick-to: 6.5 Change-Id: I8d48671257e0aefd4ae03ee682df53cf7e309938 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 2491dac9095aeaeedad7ccb6e1b04ec0765e1b86) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* doc: Update copyright year to 2024Adrian Herrmann2024-01-262-2/+2
| | | | | | | | | | The copyright year on the documentation footer hasn't been updated since 2021. Task-number: PYSIDE-1112 Change-Id: I8a8c1c07e77a9396479d08913f8e4b9133751bd6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 8754b6a71f7a14b6dc753fdeebc13e3cd09f778f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* build: move deps from setup.py to pyproject.tomlCristián Maureira-Fredes2024-01-263-15/+15
| | | | | | | | | | | | | | The usage of the new 'build' package version made the install_requires statement in our setup.py worthless, so we need to move for pyproject-specific configuration in order to get dependencies installed for some of our packages. Change-Id: I4e010e9c13ab005616b2e3948e3024da2a79ebea Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 29bc67566bf037d021da72e42290011c9d6d0206) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android Deployment: Remove deprecated optionsShyamnath Premnadh2024-01-261-2/+2
| | | | | | | | | | | - removed --ignore-git and --skip-docs - Fix some flake8 warnings Task-number: PYSIDE-1612 Change-Id: I76994ddf2f5c26f86ac8d6c2e422ac3764b09c01 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 1cd5bd554ed4cfb52dd0cd18bc4eace8676fe9d7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* build: check module consistency for wheelsCristián Maureira-Fredes2024-01-261-0/+32
| | | | | | | | | | | | | | A few modules have been excluded in releases because we haven't noticed they are missing from the wheels. This adds a small check to the wheel creation, so we can be aware of this situation. A similar check is done with the README content, which is what we list we are including in the wheels. Change-Id: I719e7d35b1466329a537c6095af01e705b7c6bea Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 39ab1a9f93dba84af6e179edb9dfb7c3a1ca3cf4)