PYSIDE6-QMLTYPEREGISTRAR(1)
π PYSIDE6-QMLTYPEREGISTRAR(1) π
okay bestie, sit down, hydrate, and let me tell you about pyside6-qmltyperegistrar β which is, for the record, the qmltyperegistrar tool hanging out in the PySide6 tools section of your manual. she's a build-time queen and she has one job: turn your MOC-generated json into QML type registrations. no cap. π
β¨ NAME β¨
pyside6-qmltyperegistrar β literally just qmltyperegistrar. that's the name. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
qmltyperegistrar [options] [MOC generated json file]
that's it. options first, MOC json last. she eats json and produces type registrations. slay. π
π OPTIONS π
every single one, no skips, we are thorough in this group chat:
-h,--helpβ shows you the help for the commandline options. your emotional support flag. π«Ά--help-allβ help, but extra: this one also throws in the generic Qt options. the deluxe edition. β¨-v,--versionβ tells you the version info. icon behaviour honestly.-o<file>β write the output into the file you specify. pick a good one.--private-includesβ pulls in headers that end in_p.husing#include <private/foo_p.h>instead of#include <foo_p.h>. so if you're the "private headers, yes please" type, this is your flag. π₯--import-name<module name>β the name of the module used for type and module registrations. name your module, bestie. π·οΈ--past-major-version<past major version>β the past major version used for type and module registrations. yes, past, she's the previous one.--major-version<major version>β the major version used for type and module registrations. the big number. π--minor-version<minor version>β the minor version, used for module registration. the lil number. π--namespace<namespace>β generates the type registration functions inside a C++ namespace. cozy containment container energy. π§--generate-qmltypes<qmltypes file>β generate the qmltypes into the file you name. π--foreign-types<foreign types>β a comma separated list of other modules' metatypes files to consult for foreign types while generating the qmltypes file. comΒ·ma seΒ·paΒ·ratΒ·ed. do not forget the commas. π--follow-foreign-versioningβ set this and the versioning scheme of foreign base classes gets respected instead of ignored. mostly useful for modules that want to follow Qt's versioning scheme. it's giving "we do it the Qt way here". π--jsrootβ use the JavaScript root object's meta types as the sole input and generate no C++ output at all. only useful in combination with--generate-qmltypes. read that again β no C++ output, so don't pair her with anything else. π--extractβ extract QML types from a module and register them usingQML_FOREIGN. the glow-up pipeline. β¨
πΌ Arguments πΌ
[MOC generated json file]β the MOC generated json output. this is the snack she eats. π
heads up bestie:--jsrootgenuinely produces no C++ output, so it only makes sense next to--generate-qmltypes. and--foreign-typesis a comma separated list β that comma is load-bearing. π«‘
that's the whole page, no skips, no crumbs left. this was pyside6-qmltyperegistrar 6.11, dated September 2026 β mwah, love that for us. go build something iconic. ππ
π¦ 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