PYSIDE6-QMLFORMAT(1)
π PYSIDE6-QMLFORMAT π
okay bestie, welcome to pyside6-qmlformat β that's the tool from the PySide6 tools collection, and yes she is literally just qmlformat with a glow-up. she's here to make your QML files look as good as you do. π
β¨ NAME β¨
pyside6-qmlformat β aka qmlformat. same girl, different outfit. π
πΈ SYNOPSIS πΈ
qmlformat [options] filenames
π¦ DESCRIPTION π¦
so what does she do? she formats your QML files according to the QML Coding Conventions. no cap, that's the whole job, and she eats every time. π₯
little insider info for you: every option sitting below the "Formatting options" section can also be set through .qmlformat.ini β unless you pass --ignore-settings, in which case the ini file gets ghosted entirely. π
π OPTIONS π
-h,--helpβ shows you the help for the command line options. your girl explains herself. π--help-allβ same help energy, but it also throws in all the generic Qt options. the deluxe version. β¨-v,--versionβ spits out the version info.-V,--verboseβ verbose mode. she tells you everything, in detail, no holding back. π£οΈ--write-defaultsβ writes the default settings to.qmlformat.iniand then dips. (Warning: this will overwrite any existing settings and comments! like, gone-gone. π)--output-optionsβ outputs all the available options and their default values in JSON format. organized queen. π--ignore-settingsβ ignores all settings files and only considers the command line options you gave her. nothing else gets a vote. π-F,--files <file>β formats every file listed inside file, in-place. batch mode, we love to see it.--dry-runβ prints the settings file that would be used for this instance. This is useful to see what settings would be used without actually performing anything. she's just showing you the fit before wearing it. π«Ά-s,--settings <file>β use the specified.qmlformat.inifile as the only configuration source. Overrides any per-directory configuration lookup. one source of truth, periodt.-i,--inplaceβ edits the file in-place instead of outputting to stdout.
π Formatting options π
-t,--tabsβ use tabs instead of spaces. team tabs, rise up. π-w,--indent-width <width>β how many spaces are used when indenting.-W,--column-width <width>β breaks the line into multiple lines if it exceedes the specified width. Use-1to disable line wrapping. (that's the default btw)-n,--normalizeβ reorders and sorts the attributes of the objects according to the QML Coding Guidelines. Incompatible with--group-attributes-together. pick a lane bestie, you can't have both. π«-l,--newline <newline>β override the new line format to use (native,macos,unix,windows).--objects-spacingβ ensure spaces between objects (only works withnormalizeorgroup-attributes-togetheroption).--functions-spacingβ ensure spaces between functions (only works withnormalizeorgroup-attributes-togetheroption).--group-attributes-togetherβ reorders but does not sort the attributes of the objects according to the QML Coding Guidelines. Incompatible with--normalize. (again: one or the other, never both π)-S,--sort-importsβ sorts imports alphabetically. (Warning: this might change semantics if a given name identifies types in multiple modules!) so likeβ¦ she's iconic but she can also ruin your life. proceed with caution. β οΈ--single-line-empty-objectsβ write empty objects on a single line (only works withnormalizeorgroup-attributes-togetheroption).--semicolon-rule <rule>β specify the semicolon rule to use (always,essential).always: always adds semicolon [default].essential: adds only when ASI wouldn't be relied on.
π Arguments: π
filenamesβ files to be processed byqmlformat. hand her your files, she handles the rest. π
fr fr, that's the whole thing. now go forth and let her format your QML, you're gonna look so put together. πβ¨
mwah π β this has been pyside6-qmlformat version 6.11, brought to you by PySide6 tools, dated September 2026. she's booked, she's busy, she's formatting. periodt. π
π¦ 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