aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Docs: Fix the finance manager tutorial part 3Shyamnath Premnadh2025-03-121-5/+5
| | | | | | | | | | | - A description was wrong along with the emphasized code. This is now fixed. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: I44f2b4c9a89496a96c974e78611b30f4dcec6cf6 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Documentation: Use flat documentation mode for Qt3DAnimationFriedemann Kleint2025-03-121-1/+1
| | | | | | | | | | All classes are in a namespace Qt3DAnimation, which produces an overly long page. Fixes an oversight in a8b0954cae4b4322ee8a206875f942977174b826. Pick-to: 6.8 Change-Id: I61b7d703f260ac9cbe09170a32580ef5ba635720 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
* pyproject.toml: 1. Refactor pyside6-projectJaime Resano2025-03-129-161/+316
| | | | | | | | | | | | This patch refactors the code of the pyside6-project tool to simplify the upcoming change of the project file format, pyproject.toml. The CLI tool documentation is also improved. Task-number: PYSIDE-2714 Change-Id: I010bbb58f3ed8be5ad5f38687f36b4641a4a021d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Refactor pyside6-deployJaime Resano2025-03-114-137/+143
| | | | | | | | This patch cleans up the pyside6-deploy tool code. Adds some type hints and fixes some casing consistency issues. Change-Id: I16988ebf8a15bd3d2bfd12366ebacb3ffe4001e2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add changelog 6.8.3Friedemann Kleint2025-03-101-0/+52
| | | | | | Pick-to: 6.8 Change-Id: Ieba750117cb69ed9f1ac9f6a32a687aa3624558a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Log instantiated containers and smart pointersFriedemann Kleint2025-03-101-0/+27
| | | | | | | Complements 91d0ec1e864c5c657e351c32af1f8d78a26c543d. Change-Id: I7d1e3471e5fe455ce8cda51a9e6bd9a7f050d632 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Add a way to exclude smart pointer instantiationsFriedemann Kleint2025-03-107-35/+112
| | | | | | | | | | | [ChangeLog][shiboken6] It is now possible to exclude smart pointer instantiations from underlying base modules to prevent symbol clashes. Pick-to: 6.8 Task-number: PYSIDE-454 Change-Id: I5a54f72af050f334dfea26b29059f094508205e3 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* type hints: fix spaces according to PEP8Ece Cinucen2025-03-103-83/+62
| | | | | | | | | | | | | A new implementation fixes visibility automatically. We can remove code when Python is always >= 3.10 . As a drive-by, the unused nameless signatures were removed Pick-to: 6.8 Task-number: PYSIDE-3012 Change-Id: I5442615241041982a8c15938f077258eb5531d49 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Switch `find_package` from `Qt6<module>` to `Qt6::<component>`Cristian Le2025-03-052-8/+13
| | | | | | | | This guarantees that all find_package hints for `Qt6` are accounted for. Fixes: PYSIDE-3026 Change-Id: Iab7d3a72b1743747e360e7f5ed2372e1b30fa047 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Example: Update widgetgraphgallery exampleEce Cinucen2025-03-053-54/+94
| | | | | | | | Updated according to the Qt example. Pick-to: 6.8 Change-Id: Id2e64b2ab46ddd25f80ff8cc64bfb13ed02a92c5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* type hints: Modernize part of the signature parserChristian Tismer2025-03-041-13/+13
| | | | | | | | | | Using a class for initialization and the re.finditer method which was introduced in Python 3.7 . Task-number: PYSIDE-3012 Change-Id: Id9d4b9a72789dbcab4c31ab83dc721d728878067 Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* QtAsyncio: Improve logging when an Exception occurs in a taskLoan Guilbaud2025-03-042-2/+9
| | | | | | | | | | When an exception occurs in a task, the logging is not helpful since it prints out nothing specific about the error that occurred. Catching the traceback and printing it out with the task in which it happened brings a lot of details to resolve the exception faster. Task-number: PYSIDE-3001 Pick-to: 6.8 Change-Id: If199da28a37406779ac5bec178fe756d1757b08c Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* shiboken6: Add a way of removing redundant overloads that differ in one ↵Friedemann Kleint2025-03-0313-18/+261
| | | | | | | | | | | | | | | | | parameter When retrieving the function groups, check if there overloads that differ in one parameter and remove them based on rules specified in the type system. For example, when QByteArray::number(qint64) and QByteArray::number(int) exist, it does not make sense to generate an overload for int with parameter checking. [ChangeLog][shiboken6] It is now possible to specify rules to remove redundant overloads that differ in one parameter. Task-number: PYSIDE-2701 Change-Id: I8e1ccbccfe7b5ad76486dc197e8d9c36f1809fbe Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Add support for std::chrono::millisecondsFriedemann Kleint2025-03-033-1/+22
| | | | | | | | Add it as an integer-type. A follow-up change is needed to remove the resulting redundant overloads with int. Change-Id: Iba6eb399d218d5116c8030144c1e4984d11218a7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* type hints: remove object inheritance from classesEce Cinucen2025-03-012-2/+2
| | | | | | | | | It is no more necessary. Pick-to: 6.8 Task-number: PYSIDE-3012 Change-Id: Ibef345dd20e5c682e29ff174286fc5eb23ec1964 Reviewed-by: Christian Tismer <tismer@stackless.com>
* type hints: Print erroneous PYI files, but only if COIN is presentChristian Tismer2025-02-281-1/+1
| | | | | | | | | It turned out to be boring if the PYI files are printed locally. Task-number: PYSIDE-3012 Change-Id: Ic47e1828367c1f00c263451a6090cb5e03313103 Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix connecting signals by QMetaMethodFriedemann Kleint2025-02-282-2/+23
| | | | | | | | | | | The old implementation was calling the string-based overload, but did not add the '1'/'2' markers added by SIGNAL/SLOT. Call the QObject overload directly. Fixes: PYSIDE-1277 Pick-to: 6.8 Change-Id: I912f46c33959b622301b0a75e771057c8874f7e3 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Add a log file for general messagesFriedemann Kleint2025-02-286-17/+45
| | | | | | | | | | | | Add a new log file mjb_shiboken.log for informational messages to reduce clutter and make warnings stand out. [ChangeLog][shiboken6] An additional log file, mjb_shiboken.log has been introduced which contains informational messages about the types encountered. Change-Id: I042fdfee7bae174d5b214d171a32e3e3cca7a3d7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Reduce warnings about rejected functions/fieldsFriedemann Kleint2025-02-282-8/+14
| | | | | | | | | | | | | For rejected functions, print the warnings only for abstract functions, which can cause a compilation error. For fields, add the warning about mismatched type to the log file instead of printing it. [ChangeLog][shiboken6] Warnings about rejected functions/fields have been removed or redirected to the log files. Pick-to: 6.8 Change-Id: Iaf1b9cc419867153c2f241a054a7f4d91fc6bbb3 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Documentation: Fully qualify enum values in tablesFriedemann Kleint2025-02-281-0/+3
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: Ib41f63aed677c8fdf22a8af3b82d54d0c6acfc9c Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Documentation: Exclude QtChartsFriedemann Kleint2025-02-281-3/+2
| | | | | | | | It causes duplicate entries in QtGraphs. Complements a9307dd0fe4d35d1d8a5b15c7d9361ac2cad8ac9. Change-Id: I9fadcdad789795dfc61a522fab9deaa1786f8d71 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* type hints: Print erroneous PYI files for COIN support (cleanup)Christian Tismer2025-02-271-1/+0
| | | | | | | | | Reason: We cannot find an error which happens in CI on Windows 11, only Task-number: PYSIDE-3012 Change-Id: I99a2d72e49027cc76767c70bdc94d8d3f6451782 Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Improve type annotations, first stepEce Cinucen2025-02-279-31/+34
| | | | | | | | | | Import Callable, Iterable and Sequence from collections.abc, since using them from typing is deprecated. Pick-to: 6.8 Task-number: PYSIDE-3012 Change-Id: I131c00005df410fdaa40b338a2a728512269aaa0 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Improve type annotations, fixing old Python versionsEce Cinucen2025-02-272-2/+30
| | | | | | | | | | | | | | | | When trying to change typing.Sequence to collections.abc.Sequence the remarkable incompatibilities with certain Python versions came up: Python < 3.10.1 or Python 3.9.8 produces wrong annotations. Solution: The inspect module needed patching. Change-Id: Ifdf4990477ea7478c0027c899d21d1848a83c807 Pick-to: 6.8 Task-number: PYSIDE-3012 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* type hints: Fix Slot() type annotationEce Cinucen2025-02-261-1/+1
| | | | | | | | | The restricting type annotation for call function in Slot class is updated to more flexible one. Pick-to: 6.8 Task-number: PYSIDE-2846 Change-Id: Ic26ebb42bb6bfe4f4d0455125ac92b3552c62d06 Reviewed-by: Christian Tismer <tismer@stackless.com>
* type hints: Print erroneous PYI files for COIN supportChristian Tismer2025-02-251-1/+21
| | | | | | | | | Reason: We cannot find an error which happens in CI on Windows 11, only Task-number: PYSIDE-3012 Change-Id: I8f2e4c56ee8c81e8d3b348c624be5df80d5df275 Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* libshiboken: Fix a Windows warning about inconsistent linkage of ↵Friedemann Kleint2025-02-252-28/+0
| | | | | | | | | | | PyImport_GetModule() Remove libshiboken's copy of PyImport_GetModule() since it has been added to the stable API as of Python 3.8. Pick-to: 6.8 Change-Id: I176e755814f85aef5febe69ca1dba5e39f68a43b Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Remove obsolete rejectionsFriedemann Kleint2025-02-242-4/+0
| | | | | | Pick-to: 6.8 Change-Id: I0780ee2f7f5f42a9281f4add3818109628df8332 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Fix compiler warningFriedemann Kleint2025-02-241-1/+1
| | | | | | | | Amends f07b4bbf23417cd6e92e99a2a480575c4cf6d0ab. Pick-to: 6.8 Change-Id: Ib4d8c1431157fad199a396134c1f7bc648fba871 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Remove unused variable warningFriedemann Kleint2025-02-241-2/+1
| | | | | | | Amends 2a3624f460a569708b0dafb048536dec7dade8e2. Change-Id: I4a14da4dff9200f4a5f19a700e6fbdb68a6ae899 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Remove unused flags from AbstractMetaFunction::compareTo()Friedemann Kleint2025-02-243-76/+16
| | | | | | | | | | | | Remove dead code that had no effect and the Comparison flags that belonged to it. Change function return type and argument type comparison to use the exact type to detect differences in the calling convention. Task-number: PYSIDE-2701 Change-Id: I70d8c2b998f4e361abe82828568d410a47544e33 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Add a file cache for the type system snippet readerFriedemann Kleint2025-02-2113-159/+265
| | | | | | | | | | | | Add a file cache caching a small number of files with a convenience API for retrieving lines and regexp-delimited snippets. This avoids re-opening snippet files several hundreds times during building. As a drive-by, fix a broken doc snippet. Pick-to: 6.8 Change-Id: Ic468dbff755285456034a176e4d3eae348dcbf15 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* libshiboken: Refactor helper listToArgcArgv()Friedemann Kleint2025-02-213-33/+45
| | | | | | | | Provide a function for deleting the array. Use new char[] consistently. Change-Id: Ic02407f216814a7736e6073a0d27a6e9f83f9acd Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken tests: Move more injected code into snippetsFriedemann Kleint2025-02-212-321/+316
| | | | | | | | In the remaining code, use nullptr and streamline. Pick-to: 6.8 Change-Id: I3c58aaef3a6cdd332ba2e32e0bcb2c17e32f0244 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Shortcut the meta type comparisonFriedemann Kleint2025-02-211-2/+2
| | | | | | | Task-number: PYSIDE-2701 Pick-to: 6.8 Change-Id: Ie678829aade1182f3de94de56cb82508b64c385e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Remove unused templates in testsFriedemann Kleint2025-02-201-16/+0
| | | | | | Pick-to: 6.8 Change-Id: I482396e8ef3f52dc5d8c21a86e16f7a35cdf4c80 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix QCanDbcFileParser parse function overloadsEce Cinucen2025-02-205-1/+60
| | | | | | | | | | | Add the overload-number attribute to parse function to execute first QString check and then QStringList. Test for parser added. Fixes: PYSIDE-3017 Pick-to: 6.8 Change-Id: I7e5a02fec50405bc3d71c5662a7909d34f4d20df Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* type hints: Make the error messages more verboseChristian Tismer2025-02-201-1/+1
| | | | | | | | | | | | | The --pretty switch shows a little context. If that does not help, we will have to send the whole PYI file back from CI. Task-number: PYSIDE-2846 Task-number: PYSIDE-3012 Change-Id: I45a4111c6ea78bf6c487077c43eb37b946602ec8 Pick-to: 6.8 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Change some templates to be snippetsFriedemann Kleint2025-02-207-117/+100
| | | | | | | | Brush up the code and remove unused templates. Pick-to: 6.8 Change-Id: Ic9a0a6fb941e0d110124df7f02b2fc3c91664656 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Enable code snippets for templatesFriedemann Kleint2025-02-2011-153/+193
| | | | | | | | | | | Prototypically move some template code from QtGui into snippets. [ChangeLog][shiboken6] It is now possible to use file snippets for XML template content. Change-Id: Ifb23407819c843e9059225a5bd269d954f837ee3 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix disconnecting a string-based connection by passing a callableFriedemann Kleint2025-02-202-10/+69
| | | | | | | | | | | | Amends cab304e70cce68bbdaa70d7f7b2bf6e95e85e6d2. Restructure the test. Pick-to: 6.8 Fixes: PYSIDE-3020 Task-number: PYSIDE-1057 Change-Id: I8954a534648ded5d476fec608d0699132a026461 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* libshiboken: Rename AutoArrayPointer to ArrayPointerFriedemann Kleint2025-02-205-13/+16
| | | | | | | | | | | The old name was modeled after std::auto_ptr, which has been deprecated for quite a while. [ChangeLog][shiboken6] Helper class AutoArrayPointer has been renamed to ArrayPointer. A convenience typedef is provided. Change-Id: I067b22a102961348067a131fcc6e6b5fc42d3f76 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Remove some unused templatesFriedemann Kleint2025-02-203-59/+0
| | | | | | Pick-to: 6.8 Change-Id: I9530a1b3f2b315a91fbc8d0885a46640c73c4f2a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* QtWidgets: Use the new sequence templatesFriedemann Kleint2025-02-202-19/+8
| | | | | | | | | Use templates introduced by e3631c3322d28447068de3a874055ff937b237c4. Pick-to: 6.8 Task-number: PYSIDE-3002 Change-Id: I5b7948c83768fa0c03c6b360717d202270ebbc9e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Fix the type of the "result" parameter of the native event filtersFriedemann Kleint2025-02-201-4/+4
| | | | | | | | | | It has been widened to qintptr in Qt 6 (qtbase/3b38c)3c7ffa71c00c172cf0e05742835a304300). Pick-to: 6.8 6.5 Task-number: QTBUG-72968 Change-Id: I17846607108b29527415c97bbaabe2acecf9bac0 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Remove XML template typesystem file opengl_common.xmlFriedemann Kleint2025-02-205-40/+3
| | | | | | | | | Use the existing code snippet for glGetString. callArrayFunction appears to be unused. Pick-to: 6.8 Change-Id: I7eeff9866bc7b4eb6e0f9bb409ae0382723c96c4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Silence some shiboken warnings about internal QtQml/QtQuick typesFriedemann Kleint2025-02-192-0/+2
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-3011 Change-Id: I92fde30427d6fc8572f1d65e267809c1255b0d31 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix overriding QPaintEngine virtual functions taking a C-style array of ↵Friedemann Kleint2025-02-194-10/+296
| | | | | | | | | | | | | | | | | | geometry primitives Add argument conversions PySequence<->C-style array, modelled after QGraphicsView::drawItems(). Move some templates around to the common template file and add generic conversions for lists of value types. [ChangeLog][PySide6] The virtual functions of QPaintEngine taking a C-style array of geometry primitives have been fixed. Fixes: PYSIDE-3002 Pick-to: 6.8 Change-Id: Ife8fed0e17c79091f25f57bf97bcca438452e177 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Improve documentation on modifying argumentsFriedemann Kleint2025-02-192-11/+38
| | | | | | | | | Describe where the conversions are used. Pick-to: 6.8 Task-number: PYSIDE-3002 Change-Id: Ib11669aadec9ab6c711cd36183e68d6fcd324122 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Improve message about being unable to generate binding callsFriedemann Kleint2025-02-183-5/+21
| | | | | | | | | Make the message more verbose and print some reasons. Pick-to: 6.8 Task-number: PYSIDE-3002 Change-Id: I7b617395f562ad52d3621e8890f0742c36eb94b5 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>