aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* build: use posix_prefix to get installation pathCristián Maureira-Fredes2024-12-032-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | On Debian, Python 3.10 introduced some changes to the scheme in the system, defaulting to 'posix_local' instead of the 'posix_user' which was previously used, and is currently used in other Linux distributions. For example, these values got changed from (posix_user): data = '/usr' platlib = '/usr/lib/python3.10/site-packages' purelib = '/usr/lib/python3.10/site-packages' to (posix_local): data = '/usr/local' platlib = '/usr/lib/python3.10/dist-packages' purelib = '/usr/lib/python3.10/dist-packages' This change forces the usage of the 'posix_user' scheme. Fixes: PYSIDE-2003 Pick-to: 6.8 Change-Id: Ice0ca9adc37c2652f5ef6ce9e0aec0f2f324206b Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* build: bump clang version in shibokenhelperCristián Maureira-Fredes2024-12-031-2/+2
| | | | | | | Pick-to: 6.8 Change-Id: I35beb0cd1869df890238f8a0f011c05455a704a3 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Venugopal Shivashankar <[email protected]>
* Raise Python version to 3.8Friedemann Kleint2024-12-0314-59/+33
| | | | | | | | | | | | | | 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 <[email protected]>
* Fix flake 8 errors in utility scriptsFriedemann Kleint2024-12-033-20/+19
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-2943 Change-Id: Iaf02a21112e3d8b89fa6396481afd584a14bd952 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* 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 <[email protected]>
* Examples: Add doc for some QML examplesShyamnath Premnadh2024-12-0210-159/+46
| | | | | | | | | | | | | | - The examples without 'doc' are not clickable in the documentation. Hence, the examples that demonstrate QML to Python signal-slot interactions was broken in the documentation. - This patch adds the documentation for the missing examples. - Additionally, 2 examples were removed because the functionality was already covered in other examples. Pick-to: 6.8 Change-Id: I2d397b47426cc1941914ceb3f66b5f7f98968c09 Reviewed-by: Ece Cinucen <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* 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 <[email protected]>
* Brush up the document viewer demoFriedemann Kleint2024-11-291-9/+5
| | | | | | | | Adapt to qtdoc/1c75be529062c08291da10cff40b5116de11adb1. Pick-to: 6.8 Change-Id: I14ddc49684c8546e5bcfbcb6123b64a0faa04165 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Example: Fix on slider in example playerEce Cinucen2024-11-291-3/+10
| | | | | | | | Slider was not adjusting the volume. This bug on multimedia/player example fixed. Pick-to: 6.8 Change-Id: If73eed44959acaf66727412f2ddff42eb616abee Reviewed-by: Christian Tismer <[email protected]>
* 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 <[email protected]>
* shiboken6: Add a documentation file hint to complex type entriesFriedemann Kleint2024-11-289-38/+106
| | | | | | | | | | | | | | | | | | | | Complements ad5eb64daaaa1b927bcbf9e568738f417fef845f. Add a doc-file attribute to complex type entries (object/value/namespaces) like it was done for enums and free functions by ad5eb64daaaa1b927bcbf9e568738f417fef845f. This is mainly intended for namespaces that can be extended by other modules. Change the functions to parse WebXML to accept lists of files. Improve the error message about not finding qdoc files. Pick-to: 6.8 Task-number: PYSIDE-2918 Task-number: PYSIDE-1106 Change-Id: I2811e0715b7f44a4461876019580295f5af4ea06 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Desktop Deployment: Upgrade Nuitka to 2.5.1Shyamnath Premnadh2024-11-274-15/+22
| | | | | | | | | | | | | | - 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 <[email protected]>
* Refactor pep384impl.cppFriedemann Kleint2024-11-271-105/+56
| | | | | | | | | | - Use nullptr - Remove C-style casts - Streamline code, using AutoDecRef Pick-to: 6.8 Change-Id: Ib583269f75bce7a2bd44758a3b75842197f5ea97 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Deployment: Support .webp filesShyamnath Premnadh2024-11-263-9/+6
| | | | | | | | | | | | - 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* doc: hide examples in dropdownsCristián Maureira-Fredes2024-11-251-10/+9
| | | | | | | | | | Avoid displaying the full grid of examples, and instead provide the option to select first the module to display the cards with the examples. Pick-to: 6.8 Change-Id: I248d3d848a4b262b7faee283b09686d48640f7e2 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Tool: Update Missing BindingsEce Cinucen2024-11-252-28/+32
| | | | | | | | | Missing bindings tool adapted to 6.8 Pick to: 6.8 Change-Id: I688d3cb8a4c81e93e1feeed6a2d8d08754e8a37e Reviewed-by: Shyamnath Premnadh <[email protected]>
* Delete QQmlApplicationEngine on application exitJaime Resano2024-11-2522-38/+57
| | | | | | | | | | | | | | 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 <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Deployment: Fix crash when from . import x is usedJaime Resano2024-11-251-1/+1
| | | | | | | | | | | | When ast library parses a "from . import x" statement, it will return a module name of None. Therefore, using .startswith() on None will raise an exception. Task-number: PYSIDE-1612 Pick-to: 6.8 Change-Id: I6532f4ebc469695ee977840c3cb40f641fb3cdb6 Reviewed-by: Jaime Resano <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* type hints: Support properties in constructors, snake_caseChristian Tismer2024-11-256-35/+52
| | | | | | | | | | | | | | | | | Support properties by allowing keyword-only parameters in the __init__ functions. The support for snake case properties is now implemented. As a drive-by: The dictionary access to type_map was re-optimized by using a string-only dict again. Snake case computation was optimized to use C++, only. Change-Id: I9285c6d51e1129126f799ca7523028de32c9e6f3 Pick-to: 6.8 Task-number: PYSIDE-1019 Task-number: PYSIDE-2846 Reviewed-by: Friedemann Kleint <[email protected]>
* shiboken6: Write override method cache only when neededFriedemann Kleint2024-11-254-16/+29
| | | | | | | | | | | | Tighten the check for virtual overrides by checking for virtual methods instead of just a virtual destructor. Make the AttroCheck flag the authoritative flag to check for the method cache, used in the helper useOverrideCaching(). Task-number: PYSIDE-2701 Pick-to: 6.8 Change-Id: Id8714c32fa1af748f288b4868d242993500c84ae Reviewed-by: Christian Tismer <[email protected]>
* shiboken6: Move attro check into class info cacheFriedemann Kleint2024-11-252-35/+43
| | | | | | | | | | | Move the entire flag instead of the previously used boolean flag indicating a mixture of static and normal methods into the cache structure. Pick-to: 6.8 Task-number: PYSIDE-2701 Change-Id: Iac4f86678fccf5bd30ce6a943cb07abdf3f5660c Reviewed-by: Christian Tismer <[email protected]>
* type hints: Support properties in constructorsChristian Tismer2024-11-225-38/+92
| | | | | | | | | | | | | | | | | Support properties by allowing keyword-only parameters in the __init__ functions. Mapping was not extended but even reduced by a new parser.py algorithm that solves unknown imports. [ChangeLog][PySide6] Type hints now show property support in the constructors. Change-Id: If7f2c342fafa106f405201a0ba96503fe495a314 Pick-to: 6.8 Task-number: PYSIDE-1019 Task-number: PYSIDE-2846 Reviewed-by: Friedemann Kleint <[email protected]>
* type hints: Use positional parameters according to PEP 570Christian Tismer2024-11-215-24/+29
| | | | | | | | | | | 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 <[email protected]>
* Documentation: Use function parameter names from WebXML/qdoc when they are ↵Friedemann Kleint2024-11-216-44/+80
| | | | | | | | | | | | missing In some cases, the Qt headers do not have parameter names. Use the ones from the WebXML documents in that case. Pick-to: 6.8 Task-numer: PYSIDE-1106 Change-Id: I719a4fb09b9fbef9fc734036e3f53c02376a5d5f Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Fix the bars.pyproject fileFriedemann Kleint2024-11-211-1/+1
| | | | | | | | | Amends abfc11c4c2fb5cd35db910284c53b4e2e282b3fe. Task-number: PYSIDE-841 Pick-to: 6.8 Change-Id: I6f53d08f5838ed5e6e7a7b254405741e5d70859b Reviewed-by: Shyamnath Premnadh <[email protected]>
* 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 <[email protected]> Reviewed-by: Topi Reiniö <[email protected]> Reviewed-by: Paul Wicking <[email protected]>
* Fix a crash in Qt3DRenderChristian Tismer2024-11-211-2/+2
| | | | | | | | | | | | | | While working on property support in PYI files, an error occurred when trying module Qt3DRender interactively. It turned out that there is a wrong assumption in basewrapper.cpp that leads to a crash when trying the interactive shell. Change-Id: Ie8afbbb5fb8105010774c6824e7d01aaaf2d8e27 Pick-to: 6.8 Task-number: PYSIDE-2846 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]>
* Add parameter names to added global functionsFriedemann Kleint2024-11-218-55/+56
| | | | | | | | It brings some clarity to the documentation. Pick-to: 6.8 Change-Id: I8787e5d6a3ceedcd91442e0e1f9561dbea657d7c Reviewed-by: Shyamnath Premnadh <[email protected]>
* 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 <[email protected]>
* shiboken6: Fix potentially undefined behaviorFriedemann Kleint2024-11-212-8/+16
| | | | | | | | | | | | | Initialize m_PyMethodCache by member initialization rather than in the constructor since the header generator also generates a fully inlined constructor from the original object where the call was forgotten. As a drive-by, drop the comment meant to separate snippets. Pick-to: 6.8 Change-Id: Ia9af5d9227cc40d40b61bd6b3a716169442964a7 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Example: Add simple bar graphEce Cinucen2024-11-218-0/+692
| | | | | | | | | Adding missing example from c++ Task-number: PYSIDE-841 Pick-to: 6.8 Change-Id: I36fe2cafd7bc50a76e2f261635c702ce0ee30329 Reviewed-by: Shyamnath Premnadh <[email protected]>
* PySide6: Fix spelling error in PySideEasingCurveFunctorFriedemann Kleint2024-11-213-3/+3
| | | | | | Pick-to: 6.8 Change-Id: I55de688e62287c4fef8e88964fa878690f6134a0 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Avoid including dev folders in deployed executableJaime Resano2024-11-202-3/+3
| | | | | | | | | | | The .git, __pycache__ and .vscode folders should not be included in the deployed executable. Windows, it causes permission errors when the cleanup is performed Pick-to: 6.8 Task-number: PYSIDE-1612 Change-Id: Icfcbe6aa0d3cb2b869a0bb9a68dbe8d1e1d9a5ec Reviewed-by: Shyamnath Premnadh <[email protected]>
* limited api: remove macro declaration from headerCristián Maureira-Fredes2024-11-202-49/+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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* PySide6: Add qInfo()Friedemann Kleint2024-11-191-0/+4
| | | | | | Pick-to: 6.8 Change-Id: I0e97b7eaf45f35fc2bd86c84417e4231198a6134 Reviewed-by: Shyamnath Premnadh <[email protected]>
* 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 <[email protected]>
* Brush up the mandelbrot exampleFriedemann Kleint2024-11-181-24/+26
| | | | | | | | | | Fully qualify enumerations and make some conversions explicit. Pick-to: 6.8 Task-number: PYSIDE-1735 Task-number: PYSIDE-2916 Change-Id: Ib6dffb2de7b1cb5a32da67801459d44d771a6d7c Reviewed-by: Christian Tismer <[email protected]>
* libshiboken: Streamline newObjectForTypeFriedemann Kleint2024-11-181-7/+5
| | | | | | | | | | Avoid duplicated wrapper map lookups and repeated calls to BindingManager::instance(). Pick-to: 6.8 Task-number: PYSIDE-2854 Change-Id: I10445102d9cb3c2c8b9159b715b6e8cca49971a8 Reviewed-by: Christian Tismer <[email protected]>
* 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 <[email protected]>
* shiboken6: Do not generate argument conversion error check for parameterless ↵Friedemann Kleint2024-11-151-2/+5
| | | | | | | | | functions Pick-to: 6.8 Task-number: PYSIDE-2701 Change-Id: Ic31029586fd2265bbab99777a54d6fd247581c26 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Revert "Exclude smart pointer tests on macOS"Friedemann Kleint2024-11-151-5/+0
| | | | | | | | | | | This reverts commit ee017da5e5848ac82fbf427b479641b16e68a225. The offending test is now skipped. Pick-to: 6.8 Task-number: PYSIDE-2854 Change-Id: Ia6886ba911c191943f199dc4c3a72b71c6708f48 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Fix smart pointer testing on macOSFriedemann Kleint2024-11-152-0/+3
| | | | | | | | | | | | | | | | | | The clang parser on macOS was not seeing namespace std for std::optional. Add the system include <optional> to fix this. This however unveils a problem with "T &std::optional::value()", which returns a reference to the contained value instead of the value as done by the synthesized function. The reference is handled as a pointer conversion for object types and the std::optional itself instead of the value is returned since it is found in the instance map at the address (unhandled in findColocatedChild()). Skip the test for the time being. Pick-to: 6.8 Task-number: PYSIDE-2854 Change-Id: Ifcb65643ff0a39c060fb329933a1e6949ed8777c Reviewed-by: Christian Tismer <[email protected]>
* 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 <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Finance Manager - Part 3 - DocumentationShyamnath Premnadh2024-11-143-0/+217
| | | | | | | | | | - 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 <[email protected]>
* Documentation: Typo fixEce Cinucen2024-11-131-1/+1
| | | | | | | | Typo fixed in the example Pick-to: 6.8 Change-Id: Ibf0b9c5d996eba5eb60ba77d1492b84a480670bd Reviewed-by: Shyamnath Premnadh <[email protected]>