Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Tooling: Add pyside6-svgtoqml toolShyamnath Premnadh2024-09-051-0/+4
| | | | | | Task-number: PYSIDE-2620 Change-Id: I0627c35162d37a9fa4fdb716235aacd15cdfb698 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-201-0/+1
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Android Deployment: Enable pyside6-android-deploy in macOSShyamnath Premnadh2024-06-141-2/+3
| | | | | | | | | | - enable the tool for macOS - add dependency .xml to the Android wheels Pick-to: 6.7 Task-number: PYSIDE-2766 Change-Id: I77495466b8a9cc3565c640beac202d533ee1d2a6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Tooling: Add pyside6-balsamuiShyamnath Premnadh2024-04-191-0/+4
| | | | | | | | | | - Add documentation for the tool - Add a screenshot of the tool Pick-to: 6.7 6.6 6.5 Task-number: PYSIDE-2629 Change-Id: I63d1d7e65d92ec37012ce40bb319dfeef9c9695b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Tooling: add pyside6-balsamShyamnath Premnadh2024-04-181-0/+4
| | | | | | | | | - Also add the relevant documentation Pick-to: 6.7 6.6 6.5 Task-number: PYSIDE-2629 Change-Id: Ic2e7798a5f0ff7015cb87089dda2420ed6327ca2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Tooling: Add pyside6-qsbShyamnath Premnadh2024-04-181-0/+4
| | | | | | | | | | | - Analogous to the qsb tool in Qt - Add pyside6-qsb tool to the documentation - Update developer documentation Pick-to: 6.7 6.6 6.5 Task-number: PYSIDE-2629 Change-Id: I93058ebb2864491e951f4f828d703d8893fbcbe7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* pyside_tool.py: Work around console encoding issues on WindowsFriedemann Kleint2024-01-301-7/+4
| | | | | | | | | | Use subprocess.call() instead of capturing the output. As a drive-by, use stderr for error messages. Pick-to: 6.6 6.5 Change-Id: I28c9623754b0718cd4a5041475f451247ac5811f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix pyside6-designer crash with pyenv on UnixShyamnath Premnadh2024-01-051-1/+24
| | | | | | | | | | | | | | | | | | - With pyenv installed Python, we need to explicitly add the full Python library path to LD_PRELOAD(Linux) and DYLD_INSERT_LIBRARIES(macOS). Otherwise, these libraries are searched in the default search paths of ld and dyld, and it won't be able to find them. - for macOS, the python installed with pyenv won't be a framework build unless explicitly specified. Thus we use the same approach for linux by looking for the Python library inside the path in `LIBDIR`. In the case of a framework build with pyenv, 'PYTHONFRAMEWORKPREFIX' will not be empty and hence no explcit changes are required. Fixes: PYSIDE-2568 Pick-to: 6.2 6.5 6.6 Change-Id: I94815b721acb85fa0b7f28d1bbb00a49717120c3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Android Deployment: Add requirements.txtShyamnath Premnadh2023-12-041-5/+7
| | | | | | | | | | | | - Adds a requirements-android.txt file - Simplifies code in pyside_tool.py - Sets up installing requirements in tests without redundantly listing the dependent packages Task-number: PYSIDE-1612 Pick-to: 6.6 Change-Id: If98f6458673bc72103c898e078e6a16f1cf38b12 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Android Deployment: Install Python dependencies on first callShyamnath Premnadh2023-10-111-6/+13
| | | | | | | | | | | | | | | | | - `pyside6-android-deploy` has dependencies on Python packages `jinja2` and 'pkginfo'. Earlier they had to be manually installed by the user. - This patch automates the installation on the first invocation of the tool. - Windows and macOS desktop hosts now prints a not supported message and exits pyside6-android-deploy. - As an addition, ran `isort` on the file. Pick-to: 6.6 Task-number: PYSIDE-1612 Change-Id: I9ecba72afb396624809e98adf43236a2f15c15eb Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* pyside6-designer: Remove unused variable and commentFriedemann Kleint2023-08-031-4/+0
| | | | | | | | | | Amends b20b722c0b3d38dddb65c6889cabd30c4cfa72aa. Pick-to: 6.5 Task-number: PYSIDE-2247 Change-Id: Icb69228157605e0a9855d5c625ebc3c787eaaa80 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Tooling: Add qmlcachegenShyamnath Premnadh2023-04-181-0/+4
| | | | | | Pick-to: 6.5 Change-Id: I21ae563efb9488083289c7deb6435ae7e9405049 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* pyside6-designer: Remove Qt Designer examples from PYSIDE_DESIGNER_PLUGINSFriedemann Kleint2023-04-031-5/+0
| | | | | | | | | | Complements ffb87075e3c4ea4b0a2dd15321af8c1921e33164. Pick-to: 6.5 Task-number: PYSIDE-2247 Change-Id: I715572d42d9c098996f2005d01f82fb363a5c8c2 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Deployment: New pyside6-android-deploy toolShyamnath Premnadh2023-03-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Preliminary support for PySide6 Android deployment - Uses jinja2 to create PySide6 and shiboken6 recipes, to be used by buildozer when python_for_android builds the app distribution - Classes for Buildozer config interaction - Run deployment to android. Typical command looks like: """ pyside6-android-deploy --wheel-pyside=./PySide6-6.5.0a1-6.5.0-cp37-abi3-android_x86_64.whl --wheel-shiboken=./shiboken6-6.5.0a1-6.5.0-cp37-abi3-android_x86_64.whl --name=stringlistmodel """ - New entrypoint for pyside6-android-deploy - Helper functinos for Android Deployment - Remove unused function main_py_exists() - Added the new files to deploy.pyproject - Remove dry_run argument from install_python_dependencies() - new Python packages added in requirements.txt to enable the deploy and cross compile tool Note: python-for-android uses my local fork. This will be changed once it is merged into python-for-android dev. Task-number: PYSIDE-1612 Pick-to: 6.5 Change-Id: I7eb96fa5507a476b4e86ec0195a5e9869f0f85fd Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* pyside6-designer: Prepend virtual env path on WindowsFriedemann Kleint2023-03-131-5/+6
| | | | | | | | Task-number: PYSIDE-2251 Pick-to: 6.4 Change-Id: I0efe24e5b92bae82c122d156b7dc4e7aca07c957 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* pyside6-designer: Fix Python plugins to work with non-activated virtual ↵Friedemann Kleint2023-03-101-1/+18
| | | | | | | | | | | environment Set the VIRTUAL_ENV variable in case it is missing. Fixes: PYSIDE-2251 Pick-to: 6.4 Change-Id: Iecd6c8d71d99987f0f4c03c5f974d2229ddbea40 Reviewed-by: Christian Tismer <tismer@stackless.com>
* pyside6-rcc: Fix --binary optionFriedemann Kleint2023-01-201-1/+6
| | | | | | | | | Do not add -g Python, then. Pick-to: 6.4 6.2 Fixes: PYSIDE-2199 Change-Id: I7d9a361d5a4e1a4c01d2aa9e0d25bdc4012cbb10 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySideTools: install tool only if corresponding Qt tool existsShyamnath Premnadh2022-11-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | - PySide tools which are wrappers around Qt tools are now only installed if the corresponding Qt tool exists. - PySide6 entry points for the Qt tool are now only created if the Qt tool exists in the corresponding Qt installation. - Incase the console entrypoint still exists and the corresponding Qt tool does not exist, the tool would exit stating that the Qt tool does not exist. eg: 'pyside6-uic' is run and 'uic' does not exist. The the tool outputs that the 'uic' does not exist. Ideally as per this change, PySide6 entrypoints for missing Qt tools should not exist at all. - versions.py deleted and contents moved to __init__.py. - Adds warning from Python incase if the tool does not exist. This is in addition to the CMake warning. Fixes: PYSIDE-2097 Pick-to: 6.4 6.2 Change-Id: I3f1b26d103679f7425d9ad85dfed8d9ad17f6fbf Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Qt Designer: Fix loading the custom widgets in virtual env on Windows when ↵Friedemann Kleint2022-11-021-0/+4
| | | | | | | | | | base Python is not in path Add sys._base_executable to the path. Pick-to: 6.4 6.2 Change-Id: I08154453d6a0b4565e9aff8d46bf6950b20ef5ce Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySideTools: Add qmlimportscannerShyamnath Premnadh2022-10-251-0/+4
| | | | | | | | | | | - qmlimportscanner tool helps the deployment tools to identify all the imported QML modules in the QML files associated with the project Pick-to: 6.4 Change-Id: Id708e9de618d2cf277f67973f5474d05aa2a0c41 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Desktop DeploymentShyamnath Premnadh2022-10-101-0/+4
| | | | | | | | | | | | | | | - One step solution to deploy PySide6 applications using nuitka without worrying about the plethora of cli options provided by nuitka, at the same time retaining the option to specify advanced nuitka options. - Target: Windows, Linux, Mac - All options are specified through a config file. This makes it easier for expansion to android deployment - Tested for projects with QML files, ui files and rc files Task-number: PYSIDE-1612 Change-Id: Iefbdb55fa1c999295fac2a86b1f6d9b9ec45a0b1 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add an entry point for qtpy2cppFriedemann Kleint2022-09-021-0/+4
| | | | | | | | | [ChangeLog][pyside6] pyside6-qtpy2cpp.py, a Qt-specific, simple tool for converting Python code to C++ has been added. Fixes: PYSIDE-1945 Change-Id: I77659ec6b49c0d3f657b4d19e5866f3057561771 Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySideTools: Add qmllsShyamnath Premnadh2022-08-111-0/+4
| | | | | | | | | - added qml language server Task-number: PYSIDE-2004 Change-Id: I79c44588c7db42c87914162a5babd4e390ff9a88 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* PySideTools: Add qmlformatShyamnath Premnadh2022-08-031-0/+4
| | | | | | | | - adds qmlformat Task-number: PYSIDE-2004 Change-Id: I6b5fb160d3f832317b41504184dd27586279c802 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* tools: add pyside6-qmlShyamnath Premnadh2022-06-141-0/+5
| | | | | | | | | | | | | | | | | - pyside6-qml is a tool that mimics the capabilities of qml utility and enables quick prototyping for qml files. Most cli options of the qml tool are carried forward to this tool. example-usage: pyside6-qml -a gui examples/declarative/editingmodel/main.qml To see all the cli options available with this tool, do: pyside6-qml --help Task-number: PYSIDE-1878 Pick-to: 6.3 Change-Id: I98bd77ccf6a0a286bb54da264312e81bf2964dc7 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Use SPDX license identifiersLucie Gérard2022-05-271-39/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Long live pyside6-project!Friedemann Kleint2022-03-141-0/+4
| | | | | | | | | | | | Add a tool to build Qt Designer forms, resource files and QML type files in a .pyproject. [ChangeLog][PySide6] pyside6-project, a tool for building projects and running QML checks, has been added. Task-number: PYSIDE-1709 Change-Id: I101ef04cb07c00a1ac75d18d81a2856305253109 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix entry points for UI tools on macOSFriedemann Kleint2022-02-281-6/+11
| | | | | | | | | | | | | Use the app bundle path. Amends ba96669d4ad0c31b8703231a9346218c6b92df70 and 011cad7cd2cd617427e939d737676394425bdc6b. Pick-to: 6.2 Task-number: PYSIDE-1831 Task-number: PYSIDE-1378 Task-number: PYSIDE-1252 Change-Id: Icfe5badda3d900b8bad8f58edab6447a901d07e6 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Long live pyside6-metaobjectdump!Friedemann Kleint2022-01-271-0/+11
| | | | | | | | | Add a tool to print out the metatype information in JSON to be used as input for qmltyperegistrar. Task-number: PYSIDE-1709 Change-Id: Ie57feeeecc09b1a01aadcc08f7e529a16609b3a4 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add qmltyperegistrar/qmllintFriedemann Kleint2022-01-181-0/+8
| | | | | | | | | | | Add entry points for the tools from libexec or bin, respectively. [ChangeLog][PySide6] The tools pyside6-qmltyperegistrar and pyside6-qmllint have been added. Task-number: PYSIDE-1709 Change-Id: If578255cc2a0fda4171b1ed54f3a2e612e849964 Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Add entry points for the Qt Linguist toolsFriedemann Kleint2021-07-071-0/+12
| | | | | | | | | | | | | | | Add lupdate, lrelease, linguist. Rewrite sources/pyside-tools/CMakeLists.txt to use lists in case further tools need to be added. [ChangeLog][PySide6] pyside6-lupdate and the related tools from Qt Linguist have been re-added, enabling using the Qt translation system. Fixes: PYSIDE-1252 Change-Id: Ia528623f2b4fc3882a18347ed862ed910501d466 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Pyside6/Qt Designer: Fix Python code preview not working on UNIXFriedemann Kleint2021-07-061-7/+9
| | | | | | | | | | | | | | | | | | | | | | Qt Designer as bundled by PySide6 was unable to find the uic binary in the libexec directory of the bundled Qt since that was only copied when QtWebEngine was built and the rcc/uic binaries were copied into the main directory. Also, libexec existed as a file containing qt.conf, which was created by a copy statement not checking for the target directory. Fix that by actually creating a libexec directory for uic, rcc and QtWebEngineProcess. Patch the executables accordingly. Add checks before copying qt.conf. Adapt pyside-tool to use libexec. The Windows code path remains the same, everything uses main directory there. Change-Id: I0c9f46fb776ed0315eecb6ed00202ea8d8f17fe2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Add assistant executableFriedemann Kleint2021-06-171-0/+4
| | | | | | | | | [ChangeLog][PySide6] Assistant is now shipped along with PySide. Fixes: PYSIDE-1378 Change-Id: Ie08778964f47378acf4e570b9a6dc3690257e411 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Turn generate_pyi into a general pyi_generator tool, finishChristian Tismer2021-05-171-0/+8
| | | | | | | | | | | | | | | | After the new tool has been created, we can now produce a Shiboken.pyi file automatically and make the PySide pyi files more complete. The Shiboken internal objects are now published, and we no longer need a fake Shiboken.Object . We can continue here a bit, maybe in another commit. Pick-to: 6.1 Task-number: PYSIDE-1415 Change-Id: I9ba9336dbffa200ac519968519ee9381dd5cad84 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix Designer plugin to load on macOSChristian Tismer2021-05-141-1/+6
| | | | | | | | | | Preload a python library to provide the Python symbols. Change-Id: I349c9e5ef9812ccd6cff36d2274d8cbec678c139 Pick-to: 6.1 6.1.0 Fixes: PYSIDE-1566 Reviewed-by: Renato Araujo Oliveira Filho <renato.araujo@kdab.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6: Use the Python version the plugin is running underFriedemann Kleint2021-05-111-1/+5
| | | | | | | | Pick-to: 6.1 6.1.0 Task-number: PYSIDE-1455 Change-Id: Iba9429d2c42f471661b250829aaf124a4b8b72b2 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Fix Designer plugin to load on LinuxFriedemann Kleint2021-05-071-0/+13
| | | | | | | | | | Preload a python library to provide the Python symbols. Pick-to: 6.1 6.1.0 Task-number: PYSIDE-1455 Change-Id: I8d84bd6f3129c500471653b54e415882d5c0bde1 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Port the Qt Designer taskmenuextension exampleFriedemann Kleint2021-02-161-0/+2
| | | | | | | | | | Show how to use QDesignerTaskMenuExtension for a custom widget. Task-number: PYSIDE-1455 Change-Id: Ia3a1a65890747a0d960702c25dfe20e75084a2b2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Add a Designer pluginFriedemann Kleint2021-02-161-0/+18
| | | | | | | | | | | | | | Add a convencience class QPyDesignerCustomWidgetCollection to the Qt Designer module, which provides functions for registering widget types or adding QDesignerCustomWidgetInterface instances. A static instance of it is stored as a dynamic property on QCoreApplication, which is retrieved by a Qt Designer plugin, which provides the collection of widgets registered in Python. Task-number: PYSIDE-1455 Change-Id: If4055e6c9db6a03b32016b013a1130051bbd472a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* sources: migration from format() to f-stringsCristian Maureira-Fredes2021-01-061-1/+2
| | | | | | | | | This should be the last patch related the usage of f-strings from the 'sources' directory. Pick-to: 6.0 Change-Id: I0288d720dc4930dee088ca3396a66d1b3ba18f76 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-021-3/+3
| | | | | | | | Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Re-add missing toolsFriedemann Kleint2020-09-081-0/+89
| | | | | | | | | | | Bring back wrapper and tools from the sub-repo which was removed by 9c9b506f3b2cc64da6fbbef9f58ccec7ccfe4457. Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: Ib4f83721e4b56174109629dce64da56b9a71ffa5 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* create pyside-tools2 with qt5 branchChristian Tismer2015-06-101-0/+0
|
* Remap examples and tools submodules from gitorious to githubRoman Lacko2013-08-011-0/+0
|
* Initial commit (copy of lck/pyside-dist repo)Roman Lacko2012-06-041-0/+0