Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated Qt::TimeSpec usage in QDateTime constructorEce Cinucen24 hours2-1/+10
| | | | | Change-Id: Iea443b9e541935bb904b6ad9d533909c313a7b81 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* type hints: Fix QInputDialog get methodsEce Cinucen7 days1-0/+5
| | | | | | | | | | | QInputDialog.get* methods should accept None as parent Fixes: PYSIDE-3078 Pick-to: 6.8 6.9 Change-Id: I5e6889800040a44649f99e1e7f95ab07e127c550 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix crash retrieving a QGraphicsProxyObject from QVariantFriedemann Kleint13 days2-2/+9
| | | | | | | | | | | | | | | | | | Remove the default-superclass specification QGraphicsItem for QGraphicsObject since it causes the type discovery to directly cast from QGraphicsObject* to QGraphicsItem*. This crashes since QGraphicsObject inherits from QObject as first base class. The intention of the class attribute was to ensure that any QGraphicsObject class is stored as a QGraphicsItem. To preserve this, hardcode it in QVariant_resolveMetaType(). Pick-to: 6.9 Fixes: PYSIDE-3069 Task-number: PYSIDE-86 Task-number: PYSIDE-1887 Change-Id: I3704988f105b118b1e4ef8d078b68c01ba89386c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* libshiboken: Add utility class for stashing Python errorsFriedemann Kleint2025-05-072-5/+2
| | | | | | | | | It encapsulates fetching/restoring errors and uses the old or new exception API depending on version. Task-number: PYSIDE-3067 Change-Id: I6e39d92c7e79fed864b364a90c5bd5b474a41ed6 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix unused variable warning in QVariant conversionFriedemann Kleint2025-05-021-3/+1
| | | | | | | | Amends caa9d339c3ba96879ae5972b08787506ec36d92b. Task-number: PYSIDE-3084 Change-Id: I17c70441e050b713edca8f3f31ebc8c6bf251bba Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6/type system: Remove obsolete "since" attributesFriedemann Kleint2025-04-235-88/+88
| | | | | | Pick-to: 6.9 Change-Id: I184a939af6814a04f76f1047217bc9736143bd74 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix QMetaEnum conversions into QVariantRenato Araujo Oliveira Filho2025-04-232-1/+13
| | | | | | | | | Make sure to store QtEnums in QVariant when the enum has a metatype. Fixes: PYSIDE-3084 Change-Id: I94b89f89e6fb3c58560325f2a6843a5260d86557 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix crash when entering a Qt message handler with a Python error setFriedemann Kleint2025-04-231-0/+5
| | | | | | | | | | Stash and restore the Python errors in the message handler. Fixes: PYSIDE-3067 Pick-to: 6.9 6.8 6.5 Change-Id: If0d8ec08f939dae6c4d6bd33a0b15f9a21d740af Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* 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 Pick-to: 6.9 6.8 Change-Id: I2989ec411ae73790515ac282a2c3eccc7d222c97 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Expose QPolygonF operator==, != inherited from QListRenato Araujo Oliveira Filho2025-04-161-0/+5
| | | | | | | | These operators were missing. Change based on QPolygon fix Change-Id: I8d0a4846f91aac1e2dfa1817ec6d15903519e819 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Add class QMessageLoggerShyamnath Premnadh2025-04-104-0/+85
| | | | | | | | | | | | | | | - 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 Pick-to: 6.9 6.8 Change-Id: Iaaf586288de4aaccf01d1e6547df9a2f478a7c8c Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Use QT_CONFIG when possibleCristián Maureira-Fredes2025-04-073-5/+5
| | | | | | | | | | A few places were still using the double negation on a couple of Qt configuration options. Pick-to: 6.9 Change-Id: Id182e7a3958af21368cb890e645dc4a2902f8260 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* qtasyncio: fix f-string quotationCristián Maureira-Fredes2025-04-071-2/+2
| | | | | | | | | | | Considering we still support old Python versions, we cannot have the same quotation mark for f-string and for variables within the f-string. Fixes: PYSIDE-3068 Pick-to: 6.8 6.9 6.9.0 Change-Id: Ie9f1ed91f1a1965631bc71f35600780bb4f00603 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* 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 Pick-to: 6.8 6.9 Change-Id: I31e556933f25f6c21e18debb274db6a13ffbe2ed Reviewed-by: Christian Tismer <tismer@stackless.com>
* type hints: Add optional to QTreeWidget.setItemWidgetEce Cinucen2025-03-271-1/+1
| | | | | | | | Fixes: PYSIDE-3057 Pick-to: 6.8 6.9 Change-Id: Iceced6c84fbfabfb484663a71ccdf13c2f69ab0a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* type hints: Add optional to QProgressDialog.setCancelButtonEce Cinucen2025-03-271-1/+1
| | | | | | | Fixes: PYSIDE-3050 Pick-to: 6.8 6.9 Change-Id: Ic200e75717518b2363e0aca6fe4cfc31e5fe6256 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* type hints: Add optional to QTabBar.setTabButtonEce Cinucen2025-03-271-0/+5
| | | | | | | | Fixes: PYSIDE-3055 Pick-to: 6.8 6.9 Change-Id: I5b3ee124b57643991afcb70cd9293f0cd30ff83d Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Add support for std::chrono::secondsFriedemann Kleint2025-03-262-4/+17
| | | | | | | | | | | Introduced by qtnetworkauth/58c92af6e870fde2718a2aa9a6631a9c7ab40fad. Complements 2c3c5c0db5f1dbaafd23befc07633382b86e890d. Task-number: QTBUG-124332 Task-number: PYSIDE-2862 Pick-to: 6.9 Change-Id: I9857e2ee5cabde02469f8c3a32d8a12ba05971a3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* 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 Pick-to: 6.8 6.9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
* 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 Pick-to: 6.8 6.9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Type system: Add missing "const" to some signaturesFriedemann Kleint2025-03-191-7/+7
| | | | | | | | This is matched by a fallback mechanism at the moment. Pick-to: 6.9 6.8 Change-Id: I9247fc512eb26007a88172d9c2a66b10e916d423 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* type hints: Make str Optional in QLineEdit.setTextCristián Maureira-Fredes2025-03-191-0/+3
| | | | | | | Change-Id: I0565751f0189fea3e59cea7aa953d205527dd8b2 Pick-to: 6.8 Fixes: PYSIDE-3041 Reviewed-by: Christian Tismer <tismer@stackless.com>
* type hints: add explicit optional to setItemWidgetCristián Maureira-Fredes2025-03-141-1/+1
| | | | | | | | Change-Id: I9d14b23d9fe2e084ffdacd66560c84c8c0d54764 Fixes: PYSIDE-3042 Pick-to: 6.8 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* type hints: remove QModelIndex.constInternalPointerCristián Maureira-Fredes2025-03-141-0/+2
| | | | | | | Change-Id: I204fe9a3716de359a5d75629c6757d2045e78f43 Fixes: PYSIDE-3036 Pick-to: 6.8 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Make Remote Objects usable beyond ModelsBrett Stottlemyer2025-03-133-4/+53
| | | | | | | | | | | | While present, the Qt Remote Objects bindings to Python have not been very useful. The only usable components were those based on QAbstractItemModel, due to the lack of a way to interpret .rep files from Python. This addresses that limitation. Fixes: PYSIDE-862 Change-Id: Ice57c0c64f11c3c7e74d50ce3c48617bd9b422a3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Brett Stottlemyer <brett.stottlemyer@gmail.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>
* 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-031-0/+10
| | | | | | | | | | | | | | | | | 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-032-1/+21
| | | | | | | | 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>
* 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: 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. Pick-to: 6.8 Change-Id: Ic468dbff755285456034a176e4d3eae348dcbf15 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix QCanDbcFileParser parse function overloadsEce Cinucen2025-02-201-0/+2
| | | | | | | | | | | 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>
* 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-206-138/+158
| | | | | | | | | | | 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>
* libshiboken: Rename AutoArrayPointer to ArrayPointerFriedemann Kleint2025-02-203-4/+4
| | | | | | | | | | | 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-193-10/+210
| | | | | | | | | | | | | | | | | | 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>
* PySide6: Add QFont.Tag(str), QFont.Tag.fromString(), QFont.Tag.fromValue()Friedemann Kleint2025-02-132-1/+56
| | | | | | | | | | The constructor is a non-type template that checks the string length. Add a function for it. Pick-to: 6.8 Fixes: PYSIDE-3013 Change-Id: I35626c29edddf38c04c5b913a35b36c540c45d6a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix QAbstractSpinBox.fixup() behaviorFriedemann Kleint2025-02-111-0/+3
| | | | | | | | | | | Add the missing native return value conversion. Complements 6c0a0d70305cd6e12260a352099e74d34f3c239e. Pick-to: 6.8 Fixes: PYSIDE-3014 Task-number: PYSIDE-106 Change-Id: I7cce422512175dcbf15ca0e9c0a0a3be5dfb93d6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Build system: Adapt to 2 digit minor version numbersFriedemann Kleint2025-02-111-2/+2
| | | | | | | | | Use string literals instead of str(version), which causes 6.10 to be returned as "6.1". Task-number: PYSIDE-3011 Change-Id: I2c5a295c6f283d1efb92dabcb05c3baed8b20b9e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Consider all base classes when finding a modificationFriedemann Kleint2025-02-061-50/+0
| | | | | | | | | | | | | | | | | | This enables removing a duplicate modification for QGraphicsWidget::getContentsMargins() which is inherited from class QGraphicsLayout, QGraphicsLayoutItem (2nd base class) and activates other base modifications for QGraphicsObject-derived classes. Also add a flag indicating whether the modification is inherited from a base class or directly specified for later use in size reduction. [ChangeLog][shiboken6] Modifications from base classes in multiple inheritance will now be correctly applied. Task-number: PYSIDE-2701 Change-Id: I190764a673fb6b7ad44aea5ed90ff64c57eda324 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Adapt to 6.9Friedemann Kleint2025-02-0613-3/+36
| | | | | | Fixes: PYSIDE-2862 Change-Id: I7cef186d1fb1e1b23cb62daa659db6fab2f460d9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Change binding for QSignalSpy to Py_DECREF wrapped typeBrett Stottlemyer2025-01-251-0/+6
| | | | | | | | | | | | This is arguably a bug, but would only be noticed in testing. It was preventing proper garbage collection in tests using QSignalSpy. I can see an argument it should keep the target object alive while running, but I don't see a good way to DECREF on close, so not holding a reference seems like the best option. Change-Id: I730d8b0a6efd3fef63dfd224917c2e5927d144c4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Remove OpenGL as dependency for QtGraphsWidgetsCristián Maureira-Fredes2025-01-221-3/+7
| | | | | | | Fixes: PYSIDE-2988 Pick-to: 6.8 Change-Id: I29f5fcbcafdf240a8cb6f91f6c4b8d7fce47ec72 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* shiboken6/documentation: Add emphasis for doc injectionFriedemann Kleint2025-01-203-4/+4
| | | | | | | | | | Add a custom admonition for modified functions to highlight Python-specific aspects. Pick-to: 6.8 Task-number: PYSIDE-1106 Change-Id: I3fd32151b0786b6225970a7a05df56953d999fb1 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add missing binding for QPdfOutputIntentEce Cinucen2025-01-062-0/+2
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-487 Change-Id: I8aea7a1e0e6a11a44728c7c4a402576d27ad4790 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>