diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2024-07-01 16:26:19 +0200 |
|---|---|---|
| committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2024-08-05 17:08:13 +0200 |
| commit | b32183d2cd5fbbd1ac6a53827edf5d40428855ff (patch) | |
| tree | 6737affc03a4f3b29b736bb26b45c9542dd9a2cf /sources/pyside6/doc/tutorials/qmlintegration | |
| parent | c042e74cb490905c5cf5dc7d1c3887f627291019 (diff) | |
Desktop Deployment: Change qmlimportscanner usage parameters
- Previously, pyside6-qmlimportscanner was run on each of the QML files
by listing the QML files. For projects with a large number of QML
files, this leads to a long command line that exceeds the maximum
command line length on Windows.
- This change modifies the command to use `-rootPath` command line
option to specify the root path of the project directory. This will
recursively find all the QML files in the project directory and its
subdirectories, and find the QML modules used.
- This solution moves all the '.qml' files in the project directory
into a temporary directory and running pyside6-qmlimportscanner on
this temporary directory.
- Additionally, memoize the function run_qmlimportscanner() to avoid
running the qmlimportscanner multiple times for the same project.
Pick-to: 6.7
Task-number: PYSIDE-1612
Task-number: PYSIDE-2803
Change-Id: Ie82fc4e5071debe505fae7b5815b76c89d99ff4c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/qmlintegration')
0 files changed, 0 insertions, 0 deletions
