PYSIDE6-QMLCACHEGEN(1)
π PYSIDE6-QMLCACHEGEN
okay bestie, welcome to the PySide6 tools corner of the manual, this one's all about pyside6-qmlcachegen β¨ it lives in the PySide6 tools section, lowercase, cute, does one job and does it well.
π NAME
pyside6-qmlcachegen β literally just qmlcachegen π¦
β¨ SYNOPSIS
qmlcachegen [options] [qml file]
π OPTIONS
-h,--helpβ shows you the help for the commandline options. the classic "i forgot what the flag was" move π--help-allβ same energy but it ALSO shows the generic Qt options. the full deluxe version.-v,--versionβ tells you the version info. slay.--bareβ do not include the default import directories. use this when you wanna runqmlcachegenon a project that's using a different Qt version. fitting name honestly, it's giving minimalism π--filter-resource-fileβ filters out the QML/JS files from a resource file that can be cached ahead of time instead π₯--resource-file-mapping <old-name=new-name>β the path from the original resource file to the new one. note the<old-name=new-name>shape, keep it exact bestie.--resource <resource-file-name>β a Qt resource file that might later contain one of the compiled files.--resource-path <resource-path>β the Qt resource file path that corresponds to the file being compiled.--resource-name <compiled-file-list>β required if you wanna generateqmlcache_loaderwithout qrc files. this is the name of the Qt resource that the input files belong to. no skipping this one, it's mandatory in that case π-i <qmldir file>β import an extraqmldirπ§-I <import directory>β look for QML modules in the specified directory. capital I, don't mix it up with lowercase i, they are Not the same thing.--only-bytecodeβ generate only byte code for bindings and functions, no C++ code. bytecode only, no cap π--verboseβ outputs compile warnings. the "tell me everything" mode.--warnings-are-errorsβ treats warnings as errors. dramatic? yes. useful? also yes. πΈ--validate-basic-blocksβ performs checks on the basic blocks of a function compiled ahead of time, to validate its structure and coherence. it's like a vibe check but for control flow π--dump-aot-statsβ dumps statistics about ahead-of-time compilation of bindings and functions. numbers go brrr π--module-id <id>β identifies the module of the qml file being compiled, for aot stats. pairs great with--dump-aot-statsiykyk.-o <file name>β output file name. where the goods go π
π«Ά Arguments
[qml file]β the QML source file to generate a cache for. the main character of this whole operation β
reminder bestie: this whole thing isqmlcachegenunder the hood, thepyside6-prefix is just how you reach it π
and that's the page!! brought to you by pyside6-qmlcachegen 6.11, dated September 2026 β catch you in the next manpage, mwah ππ
π¦ where this page comes from
- ubuntu stonking: pyside6-tools 6.11.2-1build1 Β· GPL-3-EXCEPT OR LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms