aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
Commit message (Collapse)AuthorAgeFilesLines
...
* Developer documentation: Describe how to adapt generated Qt documentation to ↵Friedemann Kleint2024-12-132-1/+9
| | | | | | | | | | PySide Task-number: PYSIDE-1106 Pick-to: 6.8 Change-Id: Ia13545f935dc895da069df45c5ac3fa8cdf77a9f Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix trailing empty linesFriedemann Kleint2024-12-13119-128/+0
| | | | | | Pick-to: 6.8 Change-Id: I1a5964463f703ade0657816cb974206355a5ae5b Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* tests: handle unused imports and fix type issuesCristián Maureira-Fredes2024-12-12103-306/+233
| | | | | | | | | | Many modules were imported but unused in our tests. Additionally, some type hint issues were solved. Pick-to: 6.8 Change-Id: Ic2368690e9a6ce0fffea812206185aa4f3dc3c58 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Documentation: Update basic module pagesFriedemann Kleint2024-12-113-29/+7
| | | | | | | | | | - QtCore: Add IPC and permissions - QtGui: Remove section on Vulkan as there are no bindings Task-number: PYSIDE-1106 Pick-to: 6.8 Change-Id: Iad520387062b81b8b3be0c2c875fce674788283d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* doc: adapt example card hover colorCristián Maureira-Fredes2024-12-102-5/+9
| | | | | | | | Using a colorscheme for light mode. Pick-to: 6.8 Change-Id: I323517140e4cd637883dca7b7597b477085591d5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Documentation: Add groupsFriedemann Kleint2024-12-107-14/+52
| | | | | | | | | | | | | | There are some special WebXML pages indicated by a <group> element that contain lists of classes with brief suitable for a "class list by function" section. Generate them to a separate directory for clarity and add them to the module pages. Task-number: PYSIDE-1106 Pick-to: 6.8 Change-Id: I4e2d0ef8c626502230078415a24547cd80c95bd9 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix tutorial referencesFriedemann Kleint2024-12-1015-20/+20
| | | | | | | | Amends d2318d7aab3616df6e589b6337d2c2b8cd6e1909. Pick-to: 6.8 Change-Id: Ibb61ad87b76a7432d2f9917dc36b88d62fe27b59 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Developer Documentation: Improve sections on additional documentation filesFriedemann Kleint2024-12-101-2/+12
| | | | | | | Task-number: PYSIDE-1106 Pick-to: 6.8 Change-Id: Ib24b7c1e2a9c496f037013792e66f260631533a9 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Desktop Deployment: Add more testsShyamnath Premnadh2024-12-091-0/+49
| | | | | | | | | | | | | - Added tests for extra modules and directories to ignore. These are cli options. - Fixed an issue where updating a Python set was not functioning correctly. Task-number: PYSIDE-2945 Pick-to: 6.8 Change-Id: Ia6b0e9ef98e2e0999bc4782168b3889598cca682 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix occasional hang of test QtWidgets/bug_844.py on Linux with DBUS-based ↵Friedemann Kleint2024-12-091-5/+8
| | | | | | | | | | | | | | accessibility The test installs a global event filter on QApplication which then receives events from DBUS classes doing accessibility. Then apparently something moves the DBUS receivers to different threads which causes hangs later on when PySide tries to release the wrapper. Fix by checking the presence of a wrapper first before releasing (empirical). Pick-to: 6.8 Change-Id: I91480461afb19c8fc1fa7a329f63243c0dacb22c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* limited api: Remove PyCFunction_GET_FUNCTION, PyCFunction_GET_SELF, and ↵Cristián Maureira-Fredes2024-12-093-10/+5
| | | | | | | | | | PyCFunction_GET_FLAGS Removing old compatibility macros from the initial limited api implementation. Change-Id: I3044609ade36b5b378de05934eab8a098450f42f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Documentation/example_gallery: add card description hoverCristián Maureira-Fredes2024-12-091-11/+49
| | | | | | | | | | | | | - Adding the first paragraph (as much as possible) when the example card is hovered, and use the example headline as the title of the card. - Amends 133e8005def4314320062a9a36d950b8692e6f35 by removing the custom html tag and also merging '.sd-card:hover' into '.sd-card-hover:hover' to avoid duplication. Change-Id: I4edf96a5e61138c88a421e70f16ef9bfe4b4e04d Pick-to: 6.8 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Desktop Deployment: Disregard more non existent pluginsShyamnath Premnadh2024-12-061-8/+6
| | | | | | | | | | | - Amends 05b3c28099c1eaff74bba8b06004cc8205b24f45 - Also, ignores 'scenegraph' and 'networkaccess' Pick-to: 6.8 Task-number: PYSIDE-1612 Change-Id: Ibc1a0ea1525f7d56ed884bc652612d8985479258 Reviewed-by: Jaime Resano <Jaime.RESANO-AISA@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Documentation/example gallery: Handle tutorialsFriedemann Kleint2024-12-061-0/+23
| | | | | | | | | | | | | | | - Add the tutorial title to the example data struct and sort them to the front. - The examples under a module which are tutorials are organized under separate subtitles under the module name. - Change the grid layout for the examples and add a hover effect to the grid. Pick-to: 6.8 Task-number: PYSIDE-1106 Change-Id: I4196667404b9ff27851c2dad198b22c673de9bf9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* type hints: Fix the heuristic for ambiguous signature removalChristian Tismer2024-12-053-12/+12
| | | | | | | | | | | | | | | | | By turning over to positional-only parameters, some signatures should be preferred to remove over others. QMessage.warning had two signatures that became equal when ignoring the names. Use the version which has more default values in that case. Some forgotten return types were added. Change-Id: I200f10eb5742a595fafc3106a8e5fbc9a932c75b Pick-to: 6.8 Task-number: PYSIDE-2846 Fixes: PYSIDE-2939 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Raise Python version to 3.9Friedemann Kleint2024-12-043-3/+3
| | | | | | | Amends 262e2a6c2742eb9bb0887ae5cb7c2fb0a975f373. Change-Id: I9bb17b0ed53982fccacbef5b78687491899c3f06 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Raise Python version to 3.8Friedemann Kleint2024-12-038-22/+8
| | | | | | | | | | | | | | Fix some oversights of previous changes: - Bump limited API - Fix CMake files - Remove outdated version checks from Python code - Adapt some documentation Pick-to: 6.8 Task-number: PYSIDE-2943 Change-Id: Id8d9c4c6bb0629948de28beb3c4274991f84ff08 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix flake 8 errors in utility scriptsFriedemann Kleint2024-12-031-15/+15
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-2943 Change-Id: Iaf02a21112e3d8b89fa6396481afd584a14bd952 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add some missing bindingsFriedemann Kleint2024-12-034-2/+8
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-487 Change-Id: Ia20a9dbfc00e61781fb4be0fa0a205facbb82a1a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix crash using QDBusUnixFileDescriptor in QDBusAbstractInterface::call()Friedemann Kleint2024-11-291-1/+1
| | | | | | | | | It needs to be a value type for the underlying QVariant conversion. Fixes: PYSIDE-2936 Pick-to: 6.8 6.5 Change-Id: Id62adad6b886546a33d3f030ee98312d1b0586ab Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide: Fix some missing documentationFriedemann Kleint2024-11-284-2/+9
| | | | | | | | | | | | | | | | | Add a missing docconf files: - QtWebView - QtStateMachine Fix documentation of QtPdfWidgets (point to QtPdf). Adds documentation Qt::mightBeRichText and Qt::convertFromPlainText (namespace "Qt"/QtGui). Pick-to: 6.8 Task-number: PYSIDE-2918 Task-number: PYSIDE-1106 Change-Id: I4eccaa20cfe82c2ec44cdbef6ec091d4592c0699 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Desktop Deployment: Upgrade Nuitka to 2.5.1Shyamnath Premnadh2024-11-272-14/+14
| | | | | | | | | | | | | | - Nuitka 2.5.1 imposes strict checking for the Qt plugins included through the --include-qt-plugins option by checking if the plugin actually exists in PySide6 installation. Consequently, the plugins "accessiblebridge", and "platforms/darwin" which are not required by Nuitka are removed from the list of plugins to be included. - Adapt tests. Pick-to: 6.8 Task-number: PYSIDE-1612 Change-Id: I89cef4acf102e01c229b1dd6063fc08903ea686d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Deployment: Support .webp filesShyamnath Premnadh2024-11-261-3/+3
| | | | | | | | | | | | - Ignoring .webp files are not needed in the newer Nuitka version. - Additionally, also adds a comment differentiating between the `plugins` fields used in the deployment configuration file. - Adapt tests. Pick-to: 6.8 Task-number: PYSIDE-1612 Change-Id: Ibbaab03021fa50e4777caa346a2c128fd5e1a06c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PyPySide: Fix a garbage collector problem in a new testChristian Tismer2024-11-251-3/+7
| | | | | | | Change-Id: I82f38a1ec06b922e8554d7aac8969cf945e338ba Task-number: PYSIDE-535 Pick-to: 6.8 6.7 6.5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Documentation: Fix test example pathFriedemann Kleint2024-11-254-4/+4
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-1106 Change-Id: I28edb166ca6568841012276679ac290b09e64505 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Delete QQmlApplicationEngine on application exitJaime Resano2024-11-253-6/+9
| | | | | | | | | | | | | | Due to the API limitations, we have to ensure that the engine is deleted before other parts of the application is deleted. Otherwise exposing objects using setInitialProperties() or setContextProperty() for example will cause warnings to be printed. It is a good practice to always delete the engine manually so all the code should be consistent. Task-number: PYSIDE-1612 Pick-to: 6.8 Change-Id: I01f16359e9d90cefd5957708fe12ce489bd7edc0 Reviewed-by: Jaime Resano <Jaime.RESANO-AISA@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* type hints: Use positional parameters according to PEP 570Christian Tismer2024-11-211-5/+7
| | | | | | | | | | | This change would have been very simple (basically one constant) if there were not mypy which needed more effort to stay correct. Change-Id: I464b0522f9d174c5a302f85caf2fcbe202dcaed2 Pick-to: 6.8 Fixes: PYSIDE-2624 Task-number: PYSIDE-2846 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Documentation: Fix qdoc to runFriedemann Kleint2024-11-211-0/+16
| | | | | | | | | | | Adapt to qtdoc/545681fbf071aa1c2ccc7a1211814440e592314a. Pick-to: 6.8 Task-number: PYSIDE-1106 Change-Id: I5697cdc2ec8798b09a8b13f715821f012aeb3d74 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Add parameter names to added global functionsFriedemann Kleint2024-11-217-54/+54
| | | | | | | | It brings some clarity to the documentation. Pick-to: 6.8 Change-Id: I8787e5d6a3ceedcd91442e0e1f9561dbea657d7c Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Adapt to QDateTime/Qt::TimeSpec deprecationFriedemann Kleint2024-11-211-2/+7
| | | | | | | | | Adapt to qtbase/8c8d6ff7b6e2e6b1b673051685f1499ae4d65e05 and add a deprecation warning. Task-number: QTBUG-108199 Change-Id: Ic16b302f87fd4a9b507e1ee670447b6addd90f34 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Fix spelling error in PySideEasingCurveFunctorFriedemann Kleint2024-11-213-3/+3
| | | | | | Pick-to: 6.8 Change-Id: I55de688e62287c4fef8e88964fa878690f6134a0 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* limited api: remove macro declaration from headerCristián Maureira-Fredes2024-11-201-19/+0
| | | | | | | | | | | | | This is a continuation of the previous patches that were replacing the usage of macros for: lists, tuple, bytes, and float in the code, by the equivalent functions. [ChangeLog][PySide6] For the limited api builds (wheels) PySide had in place aliases from Python macros to their function equivalent. This is now removed, in favor of using the functions directly. Change-Id: I838bebac80067e3094b2a0dfadd1614f9644f7ca Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix QtGraps typesystem file warningEce Cinucen2024-11-201-1/+0
| | | | | | | | | | Removed PointConfiguration since it does not exist in QtGraphs. Amends 649592a8cbc9c656a7b9be77f043538bf4e242d5. Pick to: 6.8 Change-Id: Ic4f1a58700c5b3c19e5d9f51bb2d644382bfa40e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Documentation: Mention that qtpip requires a licenseFriedemann Kleint2024-11-191-0/+3
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-2926 Change-Id: Iadbbdfea8a5f515ef46f7a32169cd6d19b3ae77d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Improve the categorized logging functionsFriedemann Kleint2024-11-192-19/+12
| | | | | | | | | | | | Change the parameter to be (object type) 'QLoggingCategory *' to ensure type checking. Shiboken will then generate the argument conversion. Amends 936bdcf97f8ca657531496592dfce7d9144fa977. Task-number: PYSIDE-1899 Change-Id: I3afa43c8c410c57ee1be12f65e3cbd5675bd2d41 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Add qInfo()Friedemann Kleint2024-11-191-0/+4
| | | | | | Pick-to: 6.8 Change-Id: I0e97b7eaf45f35fc2bd86c84417e4231198a6134 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide6: Use %s-formatting for qDebug() and friendsFriedemann Kleint2024-11-192-12/+10
| | | | | | | | It causes less overhead than the previously used stream operator. Pick-to: 6.8 Change-Id: I3ed1365c7da3dee1af3258391d0150ade8a667f0 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix non-Unity buildFriedemann Kleint2024-11-181-1/+3
| | | | | | | | | | | | Additional include "pyside_numpy.h" needs to be within <extra-includes>, else it replaces the class include file. Amends 649592a8cbc9c656a7b9be77f043538bf4e242d5. Pick-to: 6.8 6.8.1 Fixes: PYSIDE-2927 Change-Id: I4883976144743f04e27589626c182e3478bea155 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide: Add numpy support for QtGraphsEce Cinucen2024-11-145-2/+71
| | | | | | | | | | | Added appendNp and replaceNp Added test for appendNp and replaceNp Added the missing file "qcharts_numpy_test.py" to QtCharts .pyproject Pick-to: 6.8 6.8.1 6.5 Change-Id: I55aeba0fd117a8a82c3f69e18a50358936610af9 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Finance Manager - Part 3 - DocumentationShyamnath Premnadh2024-11-142-0/+206
| | | | | | | | | | - Expanding on part2 documentation to include detailed steps on creating a backend REST API using FastAPI and SQLite. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: Icfe2b9582e53b1fc59a67be661da1c5fe290fe6f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Finance Manager - Part 2 - DocumentationShyamnath Premnadh2024-11-132-2/+119
| | | | | | | | | | - This tutorial expands on part1 by integrating SqlAlchemy with PySide6, by storing the data in a SQLite database. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: I195149bd861b1fb1a25623a9fe05e42f1e85054c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Finance Mananger - Part 1 - DocumentationShyamnath Premnadh2024-11-138-2/+478
| | | | | | | | | | | | - Detailed tutorial with instructions, explanaton of code concepts, gifs, steps to run and deploy the application. - Additionally, register a new role {deco} to be used in markdown. It is the same as :deco: in reStructuredText. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: Icb732e830948ee7ad1cb9dcf6bd07b5077c89497 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* doc: add titles for extra pagesCristián Maureira-Fredes2024-11-1316-0/+48
| | | | | | | | | | | | The custom pages that document specific classes/functions need a title to be properly displayed once searching in the documentation page. The extra module pages don't need a specific title. Change-Id: Icff3991cc1dee38a2072b49810b22a5bf228147e Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* libpyside: Output refcount in debug operatorsFriedemann Kleint2024-11-121-1/+7
| | | | | | | | It is useful for leak checking. Pick-to: 6.8 Change-Id: Ida19cb863e8232e26c86fa82a64d0d3f741b4646 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Documentation: Update libclang versionEce Cinüçen2024-11-121-1/+1
| | | | | | | | libclang 16 was not working, and to have consistency it is changed to 18+ Pick-to: 6.8 Change-Id: I54e4db59f45ff90bc19916ca77434eb2541272b4 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* doc: reduce size of class headersCristián Maureira-Fredes2024-11-121-0/+12
| | | | | | Change-Id: I7d22571e97e9bbbca663783aaa480b21e1bc991c Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* doc: Avoid same name for directory and main qml fileCristián Maureira-Fredes2024-11-1115-30/+32
| | | | | | | | | | | | | | | | | | Discovered while testing deployment on macOS, nuitka fails when the directory and file (e.g. Main/Main.qml) have the same name. This might be able to be fixed by other arguments or even upstream in Nuitka, this is a simple change that will encourage people not to use the same name in the meantime Pick-to: 6.8 Fixes: PYSIDE-2919 Task-number: PYSIDE-2910 Change-Id: I596d820e4a30996f9cf934a9f93e6436e51ad0d2 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* type hints: add __hash__, fix __copy__, __repr__ and __dir__Christian Tismer2024-11-081-1/+3
| | | | | | | | | | | | | | | The other missing things are sequence and mapping methods which need some more support from cppgenerator. Will be added later. typing.Self is only known since Python 3.11 . We emulate that by patching it into typing and adjusting the Python version for mypy. Task-number: PYSIDE-2846 Change-Id: Icb1060c7bba355061d8f134c8e76fb14369d7dda Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix examples/spatialaudio/audiopanning to runFriedemann Kleint2024-11-081-2/+2
| | | | | | | | | | | | | | | The enum Loops provides constants ( Infinite = -1, Once = 1) to be passed to functions taking int. Change the type to IntEnum to enable this. Fixes: self._sound.setLoops(QSpatialSound.Infinite) TypeError: 'PySide6.QtSpatialAudio.QSpatialSound.setLoops' called with wrong argument types: PySide6.QtSpatialAudio.QSpatialSound.setLoops(Loops) Pick-to: 6.8 Change-Id: Ife4d7a6197220f13a2d59547d8a6b3a503eaff55 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* limited api: Remove PyBytes_AS_STRING and PyBytes_GET_SIZECristián Maureira-Fredes2024-11-085-22/+22
| | | | | | | | | Remove old macros usages for the Limited API compatibility, and doing some refactorings to their usages. Change-Id: I10d675a1831d26b3fc878151e3a6ec40c5caddb1 Pick-to: 6.8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>