aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
Commit message (Collapse)AuthorAgeFilesLines
* Desktop Deployment: Upgrade Nuitka to 2.6.86.8Shyamnath Premnadh2025-04-232-3/+3
| | | | | | | | | | | | - There were some updates with respect to PySide6 support - See changelog here: https://nuitka.net/changelog/Changelog.html#nuitka-release-2-6 Task-number: PYSIDE-1612 Change-Id: If091184a2661f81d3d57342ba48edc35e748fc70 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 5711a3ca9cf5eb36cadfd2aa9478500a17aa395f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 8fda329af6d305a640bdaee04db382a2936797cf)
* Fix building of .pyi files for Windows debugFriedemann Kleint2025-04-171-4/+7
| | | | | | | | | | | | | | | | Port an incomprehensible list comprehension to pathlib and strip the "_d" debug prefix from the file name. Amends 3d9e42f33fad5b2eeee62d3eced1c69aa7f35fff. Fixes: PYSIDE-3061 Task-number: PYSIDE-1890 Task-number: PYSIDE-2895 Change-Id: I2989ec411ae73790515ac282a2c3eccc7d222c97 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 30be4cdd1d0fe0f83090f4d695aa3379af821828) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 16e1b265d0d30963980deea7e033f46aa6ca8c0f)
* PySide6: Add class QMessageLoggerShyamnath Premnadh2025-04-106-0/+160
| | | | | | | | | | | | | | | | | - Also add documentation with a minimal example showing the use case of QMessageLogger in Python. [ChangeLog][PySide6] Added QMessageLogger class to handle debug, info, warning, critical, and fatal messages, including support for QLoggingCategory. Task-number: PYSIDE-3052 Change-Id: Iaaf586288de4aaccf01d1e6547df9a2f478a7c8c Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 48a2c4e67c02d0b77757a518480823b6a797b9ca) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 6f5d32b26e069c02e664518fdeb2142ace3d60c4)
* type-hints: Correct QMessagebox annotationsEce Cinucen2025-04-041-10/+30
| | | | | | | | | | | parent parameter of about, aboutQt, critical, information, question, and warning changed to Optional[QWidget]. Fixes: PYSIDE-3021 Change-Id: I31e556933f25f6c21e18debb274db6a13ffbe2ed Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit f261c2ed7964fa06f8eb34fb3ab061fb6395c915) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 351372d3ddd5b287889f2ffe6dc1da3b4758094c)
* type hints: Correct type signature for Property classEce Cinucen2025-04-031-4/+4
| | | | | | | | | | Task-number: PYSIDE-3012 Change-Id: I720dd730f6dd28ae33a6019494b7b67b8f704a10 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit d98400c1c7031e10e7cd03d9f2d2eb296563df67) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 7cb4578076f75c728fbd28ff46e90135fb22ab1b)
* type hints: Add optional to QTreeWidget.setItemWidgetEce Cinucen2025-03-271-1/+1
| | | | | | | | | | Fixes: PYSIDE-3057 Change-Id: Iceced6c84fbfabfb484663a71ccdf13c2f69ab0a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit abb28b752174ba90820975af50b81d7796fbc16b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit c245ca90c84c9a0150503da1dbcff275e56eff14)
* type hints: Add optional to QTabBar.setTabButtonEce Cinucen2025-03-271-0/+5
| | | | | | | | | | Fixes: PYSIDE-3055 Change-Id: I5b3ee124b57643991afcb70cd9293f0cd30ff83d Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit c0c7ad35e65187f718c2f2b54cd83507e4309dcf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit e1abbf13b2e05b7df9219557d537bdb3a6767aa9)
* type hints: Add optional to QProgressDialog.setCancelButtonEce Cinucen2025-03-271-1/+1
| | | | | | | | | Fixes: PYSIDE-3050 Change-Id: Ic200e75717518b2363e0aca6fe4cfc31e5fe6256 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 0d33ac559a5aafb67bd5947a825879a9f6bf2711) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 46f3b70b4601ac45ff0a784c1c06965987759123)
* type hints: Fix the type parameter in findChild and findChildrenChristian Tismer2025-03-261-3/+9
| | | | | | | | | | | | | | The PlaceholderType is needed to make the type parameter concrete. This led to further generalization of the supported constructs in the XML specs. Change-Id: Ic5ae4416a187f7f8527c86349f731e1b4e36b964 Fixes: PYSIDE-3045 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> (cherry picked from commit 1f8161f2e03d011ec6646d57645cc9159ace7dbd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 51778ac56233995d648f1337b4e6ef4ecf05bc32)
* Fix qlocale_test.py to pass after QLocale changeFriedemann Kleint2025-03-241-1/+1
| | | | | | | | | | | | | | Floating point output now uses lower case after qtbase/05c8a48612be38a3c50bb5ed9daf1adfc221b9f2. Task-number: QTBUG-134785 Task-number: QTBUG-134768 Pick-to: 6.5 Change-Id: If6c6463b3828374a2399f6bd9d26cafebc6edaf1 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 507d8cc0e7ae494018d933571049e63131bcf3ce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 55c60776ef59d28c4320f268eb6f24caabe733b9)
* Type system: Add missing "const" to some signaturesFriedemann Kleint2025-03-191-7/+7
| | | | | | | | | | This is matched by a fallback mechanism at the moment. Change-Id: I9247fc512eb26007a88172d9c2a66b10e916d423 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 53b9c1d4c0d86e66d018f544d505b9a3532159ce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 8c842d6e7f9befc0d5b355558846b189daadffdb)
* type hints: Fix an old typo in typesystem_core_common.xmlChristian Tismer2025-03-191-3/+3
| | | | | | | | | | | | | | | | | | | | | Instead of typing.Iterable, typing.List must be used in the return type of QtCore.findchildren. As a drive-by, the name "PlaceholderType" was corrected because "placeholder" is only one word. The new calculation of Optional replacement was also fixed to handle return types. Note: The Optional[PlaholderType] is special, and typing refuses to use "|" here. Change-Id: I9f7d89027496f3cae58710595d7bcaafb0e51915 Fixes: PYSIDE-3045 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1001b0bf0b073bb41beaf32964690b155d790edc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 0e764101d80ec1f9aae66d3362a5a9cb56611ce2)
* Deployment Test: Remove modules for windows win_arm64Shyamnath Premnadh2025-03-151-0/+14
| | | | | | | | Task-number: PYSIDE-1612 Change-Id: Iac8406d6e49c83c8f5aa1be757cf4c7fbfcf01bc Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 972cd70b4e0ed305a605b1c209770c1097457580) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* type hints: remove QModelIndex.constInternalPointerCristián Maureira-Fredes2025-03-151-0/+2
| | | | | | | | Change-Id: I204fe9a3716de359a5d75629c6757d2045e78f43 Fixes: PYSIDE-3036 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 30d55345be6a46cd395ff4c904e049e84fea9206) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* type hints: add explicit optional to setItemWidgetCristián Maureira-Fredes2025-03-151-1/+1
| | | | | | | | | Change-Id: I9d14b23d9fe2e084ffdacd66560c84c8c0d54764 Fixes: PYSIDE-3042 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 20fb997fe82b5a7d858b5eeb1b4e9cac19ca008d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* tests: Fix warning about QBackingStore::flush() being called without handleFriedemann Kleint2025-03-142-13/+21
| | | | | | | | | | | | Call qApp->quit() delayed from the paint event. This fixes crashes on macOS and warnings: QBackingStore::flush() called for QWidgetWindow(0x600003a22460, name="MyWidgetClassWindow") which does not have a handle. Change-Id: I2e5d8aa1cfc36c4c247f681b4219f52c1a618737 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 918cd72f5eaebf56287a5ab0ac2e149ba1617a57) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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. Change-Id: I61b7d703f260ac9cbe09170a32580ef5ba635720 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> (cherry picked from commit 42a6f976cbc35a4d0cadd9b71322f50793ac3c41) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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. Task-number: PYSIDE-2850 Change-Id: I44f2b4c9a89496a96c974e78611b30f4dcec6cf6 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 445e871e4624814600e554b22e3f467178c4f502) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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 Change-Id: If199da28a37406779ac5bec178fe756d1757b08c Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit c253dcda92cc2efb45197190beaccb926afb120c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 1cb5ce86b41ca11dfd678d70629f21703cf09aa3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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 Change-Id: I912f46c33959b622301b0a75e771057c8874f7e3 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit ad70c1a75af6cd7dbed4c43202c16e65481a2d7d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f495666f1dd540fb49661c2f126796593afaf38f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* type hints: Make the error messages more verboseChristian Tismer2025-02-271-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 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 3b7a6766ccef2696bc0f4debbc5f849bea64d021) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve type annotations, first stepEce Cinucen2025-02-274-21/+21
| | | | | | | | | | | Import Callable, Iterable and Sequence from collections.abc, since using them from typing is deprecated. Task-number: PYSIDE-3012 Change-Id: I131c00005df410fdaa40b338a2a728512269aaa0 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 00a5b350ec3d6f552ad0753d9c8fdbde4464d9ad) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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. Task-number: PYSIDE-2846 Change-Id: Ic26ebb42bb6bfe4f4d0455125ac92b3552c62d06 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 34b812b6495681d088ce3294a709f25085f6ed87) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit b6952b833e1ec336607fd909320d35c5ca74a2a5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Remove obsolete rejectionsFriedemann Kleint2025-02-242-4/+0
| | | | | | | Change-Id: I0780ee2f7f5f42a9281f4add3818109628df8332 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit b8fcad197ca245dc63914f7ab743599ac9bf97c0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6: Add a file cache for the type system snippet readerFriedemann Kleint2025-02-211-4/+4
| | | | | | | | | | | | | 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. Change-Id: Ic468dbff755285456034a176e4d3eae348dcbf15 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit f07b4bbf23417cd6e92e99a2a480575c4cf6d0ab) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Change some templates to be snippetsFriedemann Kleint2025-02-217-117/+112
| | | | | | | | Brush up the code and remove unused templates. Change-Id: Ic9a0a6fb941e0d110124df7f02b2fc3c91664656 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 6cf2051c7cab923e7acd47901917480e92feec4e)
* 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 Change-Id: I7e5a02fec50405bc3d71c5662a7909d34f4d20df Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 4cc90374fca5cacc0d85cac937cfa29b7e70ed44) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Remove some unused templatesFriedemann Kleint2025-02-203-59/+0
| | | | | | | Change-Id: I9530a1b3f2b315a91fbc8d0885a46640c73c4f2a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 73a83e3247ca26bc26e23f2a8de9cfed3998e7d2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtWidgets: Use the new sequence templatesFriedemann Kleint2025-02-202-19/+8
| | | | | | | | | | Use templates introduced by e3631c3322d28447068de3a874055ff937b237c4. Task-number: PYSIDE-3002 Change-Id: I5b7948c83768fa0c03c6b360717d202270ebbc9e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d7021af1b27177a38f72fa0b2febd5233309d786) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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.5 Task-number: QTBUG-72968 Change-Id: I17846607108b29527415c97bbaabe2acecf9bac0 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ad264fec1a8d345fc5e6e8f8d4e1c4ebbf815a6c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix disconnecting a string-based connection by passing a callableFriedemann Kleint2025-02-202-10/+69
| | | | | | | | | | | | | Amends cab304e70cce68bbdaa70d7f7b2bf6e95e85e6d2. Restructure the test. Fixes: PYSIDE-3020 Task-number: PYSIDE-1057 Change-Id: I8954a534648ded5d476fec608d0699132a026461 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 96e016d95d8e37eb76492ab45dc454767ccb21b6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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. Change-Id: I7eeff9866bc7b4eb6e0f9bb409ae0382723c96c4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit b59ccba17fd448b679936db70ba026f898e5554c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Silence some shiboken warnings about internal QtQml/QtQuick typesFriedemann Kleint2025-02-192-0/+2
| | | | | | | | Task-number: PYSIDE-3011 Change-Id: I92fde30427d6fc8572f1d65e267809c1255b0d31 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit cab7ca5fd2d5966d1d8f8b8057bd71da19ca7777) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* 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 Change-Id: Ife8fed0e17c79091f25f57bf97bcca438452e177 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit e3631c3322d28447068de3a874055ff937b237c4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* binary size: Improve the benchmark toolChristian Tismer2025-02-171-18/+29
| | | | | | | | | | | | | | | | | | | The benchmark tool now uses per default the limited API but is becoming more flexible. This will take some more checkins until it comes to convergence. The starting point stays 2025-01-27 right before a substantial change which is otherwise not measurable. The switchable size reductions will slowly vanish. The difference approach makes then no longer sense, and the --absolute switch will become the default and vanish. Task-number: PYSIDE-2701 Change-Id: I990ef26860924c10784a70ec74a2a318b4be7d41 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f4127d19b3fa4235c9f4780a8379864f5fdb9f0e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Add QFont.Tag(str), QFont.Tag.fromString(), QFont.Tag.fromValue()Friedemann Kleint2025-02-133-1/+61
| | | | | | | | | | | The constructor is a non-type template that checks the string length. Add a function for it. Fixes: PYSIDE-3013 Change-Id: I35626c29edddf38c04c5b913a35b36c540c45d6a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 8f34aaf4df4648de59d74b1b6fe72302f63d89a4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* PySide6: Fix flake8 warnings in tutorialsFriedemann Kleint2025-02-1317-56/+55
| | | | | | | | Change-Id: I90fe3e854af90618cc2e450a473110306d651b4f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> (cherry picked from commit 4b6390ae3919e5e24e4b48c127c3af41bd827b9c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix QAbstractSpinBox.fixup() behaviorFriedemann Kleint2025-02-111-0/+3
| | | | | | | | | | | | Add the missing native return value conversion. Complements 6c0a0d70305cd6e12260a352099e74d34f3c239e. Fixes: PYSIDE-3014 Task-number: PYSIDE-106 Change-Id: I7cce422512175dcbf15ca0e9c0a0a3be5dfb93d6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit af7a0c68c2b008527871ccf4135e29dba502b6b0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* binary size: Update the benchmark tool to absolute measurementChristian Tismer2025-02-071-9/+26
| | | | | | | | | | | | | | | | | | | After sizebench.py was used successfully on relative changes (with a disable switch in the code), we now add an absolute mode. This way, we can stop to support switching. The starting point is 2025-01-27 right before a substantial change which is otherwise not measurable. The new mode is activated with --absolute / -a It works much faster since it compares against a constant. Task-number: PYSIDE-2701 Change-Id: I341a23722a304473e92f8ef38c6d16b3b69a8a92 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit d7756f432f86b9e28addcce017dfcb141fd8a30a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* libpyside: Fix some clang-tidy warningsFriedemann Kleint2025-02-036-11/+9
| | | | | | | | | - Remove superfluous casts Change-Id: I8dd7cdd1e9d3f30103fc6d87bf04d7f0d0182603 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit e03a1552a701838cc616bcddaa64c8f3509c1753) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Various fixesFriedemann Kleint2025-02-031-0/+1
| | | | | | | | | | - Fix spelling and a misplaced anchor - Add note about enumerations Change-Id: Iafb8eaff6140381aeaa705c0d164b72708a00154 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit a5ecb36c75723b9e82de13d712db9060ed6a3753) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-deploy: 5. Add Design Studio project example and testsJaime Resano2025-01-2315-0/+361
| | | | | | | | | | | - Add an example of a mock Design Studio project - Add tests for pyside6-project CLI tool Task-number: PYSIDE-1612 Change-Id: Ida3e469a4d2dab2fa4d8a2e473242faf1716b075 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit d3b2898e196e84d0c170a6c2606b8738804774b3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove OpenGL as dependency for QtGraphsWidgetsCristián Maureira-Fredes2025-01-221-3/+7
| | | | | | | | Fixes: PYSIDE-2988 Change-Id: I29f5fcbcafdf240a8cb6f91f6c4b8d7fce47ec72 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 30f8707e1c677e3a42a93d1b2b17bd563b9de847) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-deploy: 2. Improve deployment of Design Studio projectsJaime Resano2025-01-221-10/+10
| | | | | | | | | | | | | Design Studio projects will specify the resources employed by the project in the .qrc file. This way, the deployment process is way simpler since all the file dependencies are stored compiled in a .py file. Task-number: PYSIDE-1612 Change-Id: Icc0047e9f9c183a4db51052a84743e5b095ec76a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 775d7bf2c6cb8b7b6b3abd12afd883e2dda1be50) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* pyside6-deploy: 1. Minor refactoringJaime Resano2025-01-211-1/+2
| | | | | | | | | | | Just adding some type hints and a bit of code cleanup None of the existing logic should be affected by this change. Task-number: PYSIDE-1612 Change-Id: I42175426a03dc463b8da82aa560c3f13ab842392 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 8a1950f66da618d59e622411604e09c9817d3b33) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentation: Fix installation steps in `Building from Source`Shyamnath Premnadh2025-01-203-29/+56
| | | | | | | | | | | | - Uses `create_wheels.py` instead of `setup.py install` - Additionally, fix some spelling mistakes. Change-Id: I79ccdc940295dc48650742af57f3abc1b3e2fd2b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit c22723e43be912f14c4f4e5d6530d62b4476e957) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* shiboken6/documentation: Add emphasis for doc injectionFriedemann Kleint2025-01-203-4/+4
| | | | | | | | | | | Add a custom admonition for modified functions to highlight Python-specific aspects. Task-number: PYSIDE-1106 Change-Id: I3fd32151b0786b6225970a7a05df56953d999fb1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 20d84ed06a2ab988267b35d33cfe6627eb84d80b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>