aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Brush up developer documentation (extras.rst)Friedemann Kleint2025-07-241-4/+7
| | | | | | | Pick-to: 6.9 Change-Id: I5199c2780b108aa1dacb7a3f352e3e7a2f9220b3 Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Ece Cinucen <[email protected]>
* Fix charts examples to run with Python 3.14Friedemann Kleint2025-07-242-2/+2
| | | | | | | | | | Default-constructing flags no longer works in Python 3.14, add value. Pick-to: 6.9 6.8 Task-number: PYSIDE-3147 Change-Id: Idd1d123fb38ee60d4877440521dca57f997a69db Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Ece Cinucen <[email protected]>
* lineandbar example: Fix warnings about adding axesFriedemann Kleint2025-07-241-1/+1
| | | | | | | | | | | | Fix: "Can not add axis. Axis already on the chart." "Can not find axis on the chart." "Can not find axis on the chart." Pick-to: 6.9 6.8 Change-Id: I95f6201635008f8b751448a035d301046723c29e Reviewed-by: Ece Cinucen <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]>
* shiboken6: Fix crash occurring when no source class can be found for typedef ↵Friedemann Kleint2025-07-221-4/+12
| | | | | | | | | entries Task-number: PYSIDE-3144 Pick-to: 6.9 6.8 Change-Id: I8696b9559f7ebe42048e7e8611834db61b7d5948 Reviewed-by: Shyamnath Premnadh <[email protected]>
* shiboken6: Add platform version optionFriedemann Kleint2025-07-225-2/+48
| | | | | | | | | | As observed for iOS, libclang falls back to a too-old OS version. Make it possible to override using a command line option. Task-number: PYSIDE-3105 Task-number: PYSIDE-2352 Change-Id: I251dca3e45e9bbc1737e54e0e9799595ab680ff9 Reviewed-by: Shyamnath Premnadh <[email protected]>
* shiboken6: Add platform version to the triplet parsingFriedemann Kleint2025-07-223-19/+59
| | | | | | | | | Complements 244b5dd5e1869ea85c5b78d27259965f7ca2c7bb. Task-number: PYSIDE-3105 Task-number: PYSIDE-2352 Change-Id: I0cb197a1683b8a4d5a7c7babbfc900180005a723 Reviewed-by: Shyamnath Premnadh <[email protected]>
* type hints: Fix QLocale.toString methodEce Cinucen2025-07-180-0/+0
| | | | | | | | | fix format parameter, type 'str' is correct instead of 'int' . Fixes: PYSIDE-3134 Pick-to: 6.8 6.9 Change-Id: I9a05ce730489a2d6a71867b21c70543f30d924cc Reviewed-by: Shyamnath Premnadh <[email protected]>
* type hints: Fix return types of QGuiApplication.screenAt and modalWindowEce Cinucen2025-07-181-0/+6
| | | | | | | | | Use Optional[...] to reflect that these functions may return None. Fixes: PYSIDE-3139 Pick-to: 6.8 6.9 Change-Id: Iea6da03b7f39ce0090804c58f0906863266fc87a Reviewed-by: Shyamnath Premnadh <[email protected]>
* type hints: Fix QLocale.toString methodEce Cinucen2025-07-161-0/+3
| | | | | | | | | | fix format parameter, type 'str' is correct instead of 'int' . Fixes: PYSIDE-3134 Pick-to: 6.8 6.9 Change-Id: I9a05ce730489a2d6a71867b21c70543f30d924cc Reviewed-by: Shyamnath Premnadh <[email protected]>
* Potential fix for stabilizing QtRemoteObjects cpp_interop testFriedemann Kleint2025-07-112-5/+14
| | | | | | | | | | | | | | The test sometimes fails, reporting an empty URL. Change the harness to use stdout for printing the URL so that the flushing can be controlled. Amends 19abd816e73bebdd489408d0a3b7676822bff39c. Pick-to: 6.9 Task-number: PYSIDE-862 Change-Id: Ie85ad5a4eb092f91add01905b711ff1db86e3a8f Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Fix OpenGL-Related error in iOS buildFriedemann Kleint2025-07-111-0/+1
| | | | | | | | | | Use the special casing from macOS. Task-number: PYSIDE-3105 Task-number: PYSIDE-2352 Change-Id: I43bc2268bcd07c5e124c08875bf1a4da56476a53 Reviewed-by: Ece Cinucen <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]>
* Fix QtMultimedia::audio_test to runFriedemann Kleint2025-07-112-5/+2
| | | | | | | | QMediaDevices needs allow-threads for the query functions. Pick-to: 6.9 6.8 Change-Id: Ieff9e9191491e6294232a0509d675ffa5a93d386 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Use newer versions of the MSVC runtimeFriedemann Kleint2025-07-111-1/+1
| | | | | | | | | Bump the archive version. Pick-to: 6.9 Fixes: PYSIDE-2938 Change-Id: I1e00c96df9c6ba4ea55f1c0cf9e6ebdd0ae1f4f3 Reviewed-by: Simo Fält <[email protected]>
* Download MSVC runtime instead of copying it from the build hostFriedemann Kleint2025-07-111-29/+2
| | | | | | | | | | | | This effectivly reverts 36f62dd5d45b8b84bd80064ceb43bab74a89321e since the MSVC runtime found on COIN hosts is quite old and cannot easily be updated. Now, the downloadable artifacts are used. Pick-to: 6.9 Task-number: PYSIDE-2938 Task-number: PYSIDE-2162 Change-Id: I228632070c92c18c60367d39c9d3540d36e7f6a2 Reviewed-by: Shyamnath Premnadh <[email protected]>
* build scripts: Introduce a cache directory for Qt artifactsFriedemann Kleint2025-07-112-15/+35
| | | | | | | | | | | Future patches will use the MSVC runtime from the downloadable artifacts for several wheels, so cache the DLLs in a directory named by the COIN job id. Pick-to: 6.9 Task-number: PYSIDE-2938 Change-Id: Id0e0889f306c45bdf9c056f4f76bede5c783645d Reviewed-by: Shyamnath Premnadh <[email protected]>
* Avoid using typing.Self due in versions < 3.11Cristián Maureira-Fredes2025-07-102-2/+8
| | | | | | | | | | | | | | | | When typing.Self doesn't exist (< 3.11) we were monkey-patching the attribute to the typing module, in order to use 'typing.Self' for our constructors stubs. This was affecting the behavior of another module, that was performing a similar check on the typing.Self attribute. Amends 1ef1fefc26038a80ba81a860cff5024db44dca37 Change-Id: I5bacbb3db6a7ecd7c10fcbf08f702172e5163868 Fixes: PYSIDE-3135 Pick-to: 6.9 6.8 Reviewed-by: Friedemann Kleint <[email protected]>
* Build: Fix super project buildShyamnath Premnadh2025-07-093-22/+29
| | | | | | | | | | | - af9721d92e393529016f8eccf4a23cc95da8b021 caused the super project build to break because now cmake detects two exports sets for each target. For super project builds, when configuring cmake, we restrict it to one target considering the super project build is useful only to configure the IDE. Change-Id: Ie37871369622034b5ca07f74b38c064982b12a90 Reviewed-by: Friedemann Kleint <[email protected]>
* PySide6: Make qobjectNextAddr thread_localFriedemann Kleint2025-07-091-1/+4
| | | | | | Task-number: PYSIDE-2221 Change-Id: I72e4a5fa239653bc69da190b5b506119889d5a8f Reviewed-by: Shyamnath Premnadh <[email protected]>
* Brush up pyside_reload_test.pyFriedemann Kleint2025-07-093-24/+23
| | | | | | | | | | Move it from QtGui to QtWidgets, completely. Use pathlib. Use a temporary directory to avoid clobbering the source directory. Pick-to: 6.9 Change-Id: Id73b87ea81a1b334e2506cb2e32b49e70a5b007d Reviewed-by: Shyamnath Premnadh <[email protected]>
* qmainwindow_test.py: Remove test testCreateToolbar()Friedemann Kleint2025-07-091-7/+0
| | | | | | | | | | It does not really test anything and just slows down test execution. Pick-to: 6.9 6.8 Change-Id: Idd84f22e261eca089c346d0ff2e5e406eb9effd1 Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Ece Cinucen <[email protected]>
* testrunner.py: Log slow testsFriedemann Kleint2025-07-092-2/+17
| | | | | | Pick-to: 6.9 Change-Id: If1da4deda2c059755d30c0f25f32d49e0868643f Reviewed-by: Shyamnath Premnadh <[email protected]>
* testrunner.py: Use dataclass instead of a named tupleFriedemann Kleint2025-07-091-8/+18
| | | | | | Pick-to: 6.9 Change-Id: I229822c8b548a19332a91768e0e250d1e4182484 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Speed up QtWidgets tests testing QDialogFriedemann Kleint2025-07-092-10/+49
| | | | | | | | | | | Use the timer logic introduced for qfontdialog to close the dialog. Reduces test time from 0.984s to 0.073s. Pick-to: 6.9 6.8 Change-Id: I5ac1dd8da9f2b814ccea4ea9a8fddb03395620c9 Reviewed-by: Ece Cinucen <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]>
* QtWidgets test qfontdialog_test.py: Fix the test to runFriedemann Kleint2025-07-092-8/+34
| | | | | | | | | | Disable native dialogs and add a timer closing the widget opened by the static getFont() function. With that. the test can enabled. Pick-to: 6.9 6.8 Change-Id: Iee9b0a341aa13527f5edcb10fd2188d111cee841 Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Ece Cinucen <[email protected]>
* Disable GIL: Remove NoGIL codeFriedemann Kleint2025-07-092-13/+0
| | | | | | | | The new approach is disable-gil. Task-number: PYSIDE-2221 Change-Id: I1b1e783883aa2e94f62548385d3f19b61cf6d1ed Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Disable GIL: Basic adaption and compile fixesFriedemann Kleint2025-07-094-3/+15
| | | | | | Task-number: PYSIDE-2221 Change-Id: Ib494a0404de4aa463078b5fd9788e40cecc25ae8 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* shiboken6: Ensure mjb_shiboken.log is always writtenFriedemann Kleint2025-07-081-2/+6
| | | | | | | | | | Use a QScopeGuard to make sure it is written also in case of ApiExtractor failing. Task-number: PYSIDE-3105 Pick-to: 6.9 Change-Id: I25fbca24633f1468c674422919405bdb11fc2811 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Fix CMake targets to be relocatable in wheelsShyamnath Premnadh2025-07-076-26/+78
| | | | | | | | | | - Create two CMake export sets. One for building PySide6 and shiboken6 together called *Targets.cmake. Another with the corrected paths based on the wheel tree structure called *WheelTargets.cmake - Copy all the necessary CMake files to the wheel. Change-Id: If538ed3dac4d8195e96157c595bc63e991a5ee90 Reviewed-by: Friedemann Kleint <[email protected]>
* PySide6: Cleanup CMake configuration filesShyamnath Premnadh2025-07-073-14/+28
| | | | | | | | | | | | | | - Variables PYSIDE_PYTHONPATH, PYSIDE_TYPESYSTEMS, PYSIDE_GLUE were corrected to correctly reflect the paths for the build-tree in the CMake configuration files during super-project build of PySide6. These were also corrected for the install-tree based on the wheel structure. - Introduce two new CMake variables PYSIDE_PYTHON_CONFIG_SUFFIX and PYSIDE_SO_VERSION shipped with the CMake config files. - Fix pyside6qml to use the export set of pyside6. Change-Id: I3b177bfed31af1d0e3a13fcc9469019a7f349d22 Reviewed-by: Friedemann Kleint <[email protected]>
* PySide: Consolidate pyside6qml into PySide6 CMake packageShyamnath Premnadh2025-07-074-48/+2
| | | | | | | | | | | | libpyside6qml is an integral part of PySide6 and is always distributed alongside libpyside6. To simplify the CMake configuration: 1. Remove separate PySide6Qml CMake package. 2. Move pyside6qml target from its own export set to PySide6Targets. 3. Delete PySide6QmlConfig*.cmake files as they are no longer needed Change-Id: If69db1b7c4056d50820eec1e60fde82664e0f1c4 Reviewed-by: Friedemann Kleint <[email protected]>
* QtAsyncio: Brush up code/add type hintsFriedemann Kleint2025-07-072-37/+53
| | | | | | | Initial-patch-by: Christian Tismer <[email protected]> Task-number: PYSIDE-769 Change-Id: I7b89d4dea9024b1b926d320a2464821eca5af748 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* QtAsyncio: Include this non-Qt module into normal testingFriedemann Kleint2025-07-0714-15/+107
| | | | | | | | | | | QtAsyncio has tests like other modules, although they were not automatically tested. Add a way to specify this kind of modules without conflicts in cmake. Initial-patch-by: Christian Tismer <[email protected]> Task-number: PYSIDE-769 Change-Id: I9897f37c98c400846af77d18533486fb048aca80 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Install QtAsyncioFriedemann Kleint2025-07-072-2/+31
| | | | | | | Initial-patch-by: Christian Tismer <[email protected]> Task-number: PYSIDE-769 Change-Id: I3e7bf645a2b55249685f7aac58eb93342bdb6eb7 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* PySide: Fix debug buildShyamnath Premnadh2025-07-071-4/+15
| | | | | | | | | - Amends 9a87f647acebacc330c7f426465cf0b45e3d1375 to include debug build scenario. Change-Id: If5b00e93cfd7446a7f7e411bf4901db1009c02f2 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Remove unused test utility processtimer.py and its testFriedemann Kleint2025-07-042-129/+0
| | | | | | | | It appears to be unused and the test has bit-rot. Pick-to: 6.9 Change-Id: If4c47e8b34b5bb7f88bb56e525a322d49ef31af3 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Add tests that were missing from CMakeLists.txtFriedemann Kleint2025-07-0410-5/+39
| | | | | | | | Some tests were also missing imports and checks, add them as well. Pick-to: 6.9 Change-Id: Id73b7ab0ec06e5d87613719d0b2f267fa165db77 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Shiboken: Cleanup CMake configuration filesShyamnath Premnadh2025-07-043-15/+9
| | | | | | | | | | | - Removed unused variables in the Config file. SHIBOKEN_SHARED_LIBRARY_DIR and SHIBOKEN_INCLUDE_DIR can be obtained from the `libshiboken` cmake target as a property, and SHIBOKEN_PYTHON_MODULE_DIR can be obtained from PYTHON_SITE_PACKAGES Change-Id: I7a27f70055835c64029cee0bef33158e48f2d7a4 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* PySide: Modify samplebinding, widgetbinding and scriptableapplicationShyamnath Premnadh2025-07-044-7/+37
| | | | | | | | | | | | | | | - With 6e7e6565024 the libshiboken headers were moved from `shiboken_generator/include` to `shiboken/include` in the installation directory. The reason behind this was libshiboken binary was shipped with shiboken and not shiboken_generator. - Update utils/pyside_config.py to return --shiboken-include-path instead of --shiboken-generator-include-path, which is used by samplebinding and scriptableapplication examples. - Additionally, add some debug messages to the CMakeLists.txt files of both examples to print the computed variables. Change-Id: Ie88283e074ba73d1103a66fe7cf6923a1a9fa048 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Modify headers installation for CMake buildsShyamnath Premnadh2025-07-0416-23/+27
| | | | | | | | | | | | | | | | | | | Previously, the headers are installed as ${CMAKE_INSTALL_PREFIX}/include/cmake_package_name, where cmake_package_name is the CMake package name, e.g., PySide6. In the wheels, the headers were included as package_name/include. Since the level of the include directory is different, this caused issues when importing the CMake package in a downstream project. - This change modifies the installation of the headers so that the CMake install prefix and the wheels are consistent. - Additionally - this change adds the libpyside6 headers to the wheels. - The include headers for libshiboken were shipped with shiboken6-generator and not with shiboken6, which has the libshiboken binary. Change-Id: I96e3280799da169836e24551b906274f5b0fc962 Reviewed-by: Alexandru Croitor <[email protected]>
* Remove QtExampleIcons moduleFriedemann Kleint2025-07-045-106/+0
| | | | | | | | | | The module will be removed from Qt since it is not used there. This effectively reverts 559fb65547236694dc04973f7fb6b39bac75d158. Task-number: PYSIDE-2206 Task-number: QTBUG-110428 Change-Id: I149c1e6a2c3672050b4d1ba4633f07c7cdac5c1d Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* test bug_332.py: Fix warning QMutex: destroying locked mutexFriedemann Kleint2025-07-041-1/+2
| | | | | | Pick-to: 6.9 6.8 Change-Id: Ieee1b2920440572b4f14188a4657704d63967b48 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* QtWidgets test bug_576.py: Remove failing test assertionFriedemann Kleint2025-07-041-1/+0
| | | | | | | | | | | | | The check has been failing since Qt 5, probably due to some changed deletion sequence, but was never caught since it is in a slot. Fixes: Traceback (most recent call last): File "sources/pyside6/tests/QtWidgets/bug_576.py", line 26, in onButtonDestroyed self.assertTrue(isinstance(button, QPushButton)) Pick-to: 6.9 Change-Id: Ibf09ba315f05ac4f457ecb856ed476bc96a6c090 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* QtWidgets test bug_941.py: Fix warningFriedemann Kleint2025-07-041-3/+10
| | | | | | | | | | | | | | Qt.Orientation was passed when emitting QHeaderView.sortIndicatorChanged(int,Qt.SortOrder), causing a warning: _pythonToCppCopy: Cannot copy-convert 0x7f87761442c0 (Orientation) to C++. Pass the right type and check. Pick-to: 6.9 6.8 Change-Id: If74037c2a00c017a40c826cabd62ec381b2c4431 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Fix crash when calling setItemDelegateForColumn/Row() repeatedlyFriedemann Kleint2025-07-041-2/+2
| | | | | | | | | | | | Use "add" instead of "set" as a refcount modification since the latter dec-refs the previously set delegates. Amends 676a89fcfc2190ffa50bcb4f011ca4a96a9dd653. Pick-to: 6.9 Fixes: PYSIDE-3132 Task-number: PYSIDE-226 Change-Id: I9e9b472dfbd62c9945c021be59bec688f9c9a840 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Fix crash on conversion errors when parsing keyword argumentsFriedemann Kleint2025-07-031-1/+1
| | | | | | | Pick-to: 6.9 6.8 Fixes: PYSIDE-3133 Change-Id: I88e0b653ea6e8a18a25c65f5518080f95ddc46ad Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Fix signature warnings about QObject properties of unknown type passed to ↵Friedemann Kleint2025-07-031-1/+4
| | | | | | | | | | | | | | | | | | | | constructor Fully qualify enumerations as is done for flags. Fixes warnings occurring in tests for example QtCore/errormessages_with_features_test.py: shibokensupport/signature/parser.py:271: RuntimeWarning: pyside_type_init:_resolve_value UNRECOGNIZED: 'QAbstractAnimation.State' OFFENDING LINE: 'PySide6.QtCore.QAbstractAnimation(self,parent:PySide6.QtCore.QObject=nullptr,*:KeywordOnly=None,state:QAbstractAnimation.State=None,loopCount:int=None,currentTime:int=None,currentLoop:int=None,direction:QAbstractAnimation.Direction=None,duration:int=None)' Amends aa07b1e05f61661253bbf30bc30ec68964f8af30. Pick-to: 6.9 Task-number: PYSIDE-1019 Task-number: PYSIDE-2846 Change-Id: I993da181b68dcdbe06de1e75ed400c92f3396943 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Re-enable test touchevent_test.pyFriedemann Kleint2025-07-032-19/+13
| | | | | | | | Port to use QPointingDevice. Pick-to: 6.9 Change-Id: Icb5050615e234a9acf1f79f85549dd3a49fb3414 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* build system: Extend sanitizer supportFriedemann Kleint2025-07-024-10/+34
| | | | | | | | | Enable address sanitizer for MSVC, which has gained support in the mean time. Add thread sanitizer with a warning. Task-number: PYSIDE-2221 Change-Id: Iaa5a377fdb1cf33c1dcad42df5528a3a3499c773 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Desktop Deployment: Upgrade Nuitka to 2.7.11Shyamnath Premnadh2025-07-023-4/+4
| | | | | | | Pick-to: 6.8 6.9 Task-number: PYSIDE-1612 Change-Id: I63250605149c1b966017dc9bcb896925c59008a7 Reviewed-by: Friedemann Kleint <[email protected]>
* Desktop Deployment: Fix warning for Qt resource filesShyamnath Premnadh2025-07-012-10/+21
| | | | | | | | | | | | | | - For qrc files, the warning was wrong because qrc_<filename>.py was checked instead of rc_<filename>.py. This is now fixed. - Additionally the warning message now explicitly displays which python resource file is missing. - Also added a comment to default.spec to explicitly indicate that the QML files won't be listed for Design Studio projects. Pick-to: 6.8 6.9 Task-number: PYSIDE-1612 Change-Id: I59a22bb720a32ae2b9f6e3f856e77d3eb7b1f21d Reviewed-by: Cristian Maureira-Fredes <[email protected]>