Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.0
-
None
-
PySide6 on Windows 11
-
9b7843457 (dev), e0689651d (6.7), 4937f983b (tqtc/lts-6.5)
Description
Calling `pyside6-project qmllint` automatically generates type and `qmldir` files for classes to be registered with QML.
However, it ultimately fails when running on Windows as the paths get passed to `pyside6-qmllint` with Windows-style \ separators, but `importQmlDirs` (see qtdeclarative/src/qmlcompiler/qqmljsimporter.cpp at dev ยท qt/qtdeclarative (github.com)) requires the file to end in `/qmldir` (with a forward slash).
Manually re-running the command but replacing that final \ with a / causes the command to work without issue, but this prevents using `pyside6-project` as recommended.
EDIT: Fixed typo, `/qmllint` -> `/qmldir`
Attachments
For Gerrit Dashboard: QTBUG-125393 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
561765,3 | qmlcompiler: Sanitize qmldir paths before using them | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
562070,3 | qmlcompiler: Sanitize qmldir paths before using them | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
563181,3 | qmlcompiler: Sanitize qmldir paths before using them | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |