PYSIDE6-QMLLINT(1)
π NAME π
pyside6-qmllint β bestie, it's literally just qmllint, your QML vibe-checker β¨
π¦ SYNOPSIS π¦
qmllint [options] files
πΈ DESCRIPTION πΈ
Okay so qmllint is the QML syntax verifier and analyzer β it reads your QML, checks that it makes sense, and drags it (gently, lovingly) when it doesn't. π
π Warning Levels π
Not me having to explain this three times but here we are β all warnings can be set to three levels (plus one bonus level):
disableβ fully disables the warning. Gone. Blocked. Not on my feed. πinfoβ displays the warning but does not influence the return code. It's just talking. Let it yap. β¨warningβ displays the warning and leads to a non-zero exit code if more warnings thanmax-warningsoccur. πerrorβ displays the warning as an error and leads to a non-zero exit code if encountered. This one's the main character and it's not playing. π
π OPTIONS π
π©· The Basics π©·
-h,--helpβ Displays help on commandline options. Classic.--help-allβ Displays help, including generic Qt options. The deluxe version. π-v,--versionβ Displays version information. Who am I? πͺ-s,--silentβ Don't output syntax errors. Shhh. π€«
π₯ Output & Settings π₯
--json <file>β Write output as JSON to file (or use the special filename-to write to stdout). Structured, organized, slay. β¨--write-defaultsβ Writes defaults settings to.qmllint.iniand exits. > β οΈ Warning: This will overwrite any existing settings and comments! Like, actually gone. No cap. π--ignore-settingsβ Ignores all settings files and only takes command line options into consideration. We're doing this raw, bestie. π
π§ Finding Your Files π§
-M,--moduleβ Lint modules instead of files. Plot twist! π--resource <resource>β Look for related files in the given resource file.-I,--qmldirs <directory>β Look for QML modules in specified directory.-Eβ Use theQML_IMPORT_PATHenvironment variable to look for QML Modules. Env var girlies rise up. π--bareβ Do not include default import directories or the current directory. This may be used to runqmllinton a project using a different Qt version. Minimalist queen. π-i,--qmltypes <qmldirs>β Import the specifiedqmldirfiles. By default, theqmldirfile found in the current directory is used if present. If noqmldirfile is found, butqmltypesfiles are, those are imported instead. When this option is set, you have to explicitly add theqmldiror anyqmltypesfiles in the current directory if you want it to be used. Importingqmltypesfiles without their correspondingqmldirfile is inadvisable. π
π Fixing Things π
-f,--fixβ Automatically apply fix suggestions. It's giving personal stylist. β¨--dry-runβ Only print out the contents of the file after fix suggestions without applying them. Also prints the settings file that would be used for this instance. Look, don't touch. π«Ά
π Plugins π
--list-pluginsβ List all available plugins. Roll call! π’-D,--disable-plugins <plugins>β List ofqmllintplugins to disable (allto disable all plugins).-P,--plugin-paths <directory>β Look forqmllintplugins in specified directory.
π Warnings About Warnings π
-W,--max-warnings <count>β Exit with an error code if more than count many warnings are found byqmllint. By default or if count is-1, warnings do not causeqmllintto return with an error exit code. Your tolerance level, your rules. π
β The Warning Flags β
Every single one takes a <level>, and unless it says otherwise the default is warning:
--access-singleton-via-object <level>β Warn if a singleton is accessed via an object (default:warning)--alias-cycle <level>β Warn about alias cycles (default:warning)--assignment-in-condition <level>β Warn about using assignment in conditions. (default:warning)--comma <level>β Warn about using comma expressions. (default:warning)--component-children-count <level>β Warn about Components that don't have exactly one child (default:warning)--confusing-expression-statement <level>β Warn about expression statement that has no obvious effect. (default:warning)--confusing-minuses <level>β Warn about confusing minuses. (default:warning)--confusing-pluses <level>β Warn about confusing pluses. (default:warning)--context-properties <level>β Warn about using context properties. (default:warning)--enums-are-not-types <level>β Warn about the use of enumerations as types. (default:warning)--equality-type-coercion <level>β Warn about coercions due to usages of==and!=(default:warning)--deprecated <level>β Warn about deprecated properties and types (default:warning)--duplicate-enum-entries <level>β Warn about duplicate enum entries (default:warning)--duplicate-import <level>β Warn about duplicate imports (default:warning)--duplicate-inline-component <level>β Warn about duplicate inline components (default:warning)--duplicate-property-binding <level>β Warn about duplicate property bindings (default:warning)--duplicated-name <level>β Warn about duplicated property/signal names (default:warning)--enum-entry-matches-enum <level>β Warn about enum entries named the same as the enum itself (default:warning)--eval <level>β Warn about uses ofeval()(default:warning)--import <level>β Warn about failing imports and deprecatedqmltypes(default:warning)--incompatible-type <level>β Warn about incompatible types (default:warning)--inheritance-cycle <level>β Warn about inheritance cycles (default:warning)--invalid-lint-directive <level>β Warn if an invalidqmllintcomment is found (default:warning)--literal-constructor <level>β Warn about using literal constructors, likeBooleanorStringfor example. (default:warning)--missing-enum-entry <level>β Warn about using missing enum values. (default:warning)--missing-property <level>β Warn about missing properties (default:warning)--missing-type <level>β Warn about missing types (default:warning)--multiline-strings <level>β Warn about multiline strings (default:info) π--non-list-property <level>β Warn about non-list properties (default:warning)--non-root-enum <level>β Warn about enums defined outside the root component (default:warning)--property-override <level>β Warn about wrongly overriding properties from a base class (default:warning)--unterminated-case <level>β Warn about non-empty case blocks that are not terminated by control flow or by a fallthrough comment (default:warning)--prefer-non-var-properties <level>β Warn aboutvarproperties that could use a more specific type (default:warning)--prefixed-import-type <level>β Warn about prefixed import types (default:warning)--read-only-property <level>β Warn about writing to read-only properties (default:warning)--redundant-optional-chaining <level>β Warn about optional chaining on non-voidable and non-nullable base (default:warning)--required <level>β Warn about required properties (default:warning)--signal-handler-parameters <level>β Warn about bad signal handler parameters (default:warning)--stale-property-read <level>β Warn about bindings reading non-constant and non-notifiable properties (default:warning)--top-level-component <level>β Warn if a top level Component is encountered (default:warning)--translation-function-mismatch <level>β Warn about usages of ID and non-ID translation functions in the same file. (default:warning)--uncreatable-type <level>β Warn if uncreatable types are created (default:warning)--unintentional-empty-block <level>β Warn about bindings that contain only an empty block (default:warning)--unqualified <level>β Warn about unqualified identifiers and how to fix them (default:warning)--unreachable-code <level>β Warn about unreachable code. (default:warning)--unresolved-alias <level>β Warn about unresolved aliases (default:warning)--unresolved-type <level>β Warn about unresolved types (default:warning)--unused-imports <level>β Warn about unused imports (default:info) π--var-used-before-declaration <level>β Warn if a variable is used before declaration (default:warning)--with <level>β Warn aboutwithstatements as they can cause false positives when checking for unqualified access (default:warning)
π¨ QtDesignStudio Plugin Warnings π¨
--QtDesignStudio.FunctionsNotSupportedInQmlUi <level>β Warn about unsupported function calls inui.qmlfiles (default:warning)--QtDesignStudio.ReferenceToParentItemNotSupportedByVisualDesigner <level>β Warn about references to the parent of a root Component inui.qmlfiles (default:warning)--QtDesignStudio.ImperativeCodeNotEditableInVisualDesigner <level>β Warn about unwanted assignmentsui.qmlfiles (default:warning)--QtDesignStudio.UnsupportedTypeInQmlUi <level>β Warn about unsupported types inui.qmlfiles (default:warning)--QtDesignStudio.InvalidIdeInVisualDesigner <level>β Warn about ambiguousidnames inui.qmlfiles (default:warning)--QtDesignStudio.UnsupportedRootTypeInQmlUi <level>β Warn about unsupported root types inui.qmlfiles (default:warning)
π¦ Quick Plugin Warnings π¦
--Quick.layout-positioning <level>β Warn about using the wrong kind of positioning in layouts (default:warning)--Quick.attached-property-type <level>β Warn about attached properties being used in the wrong type (default:warning)--Quick.anchor-combinations <level>β Warn about invalid anchor combinations (default:warning)--Quick.controls-native-customize <level>β Warn about unsupported customizing of native controls (default:warning)--Quick.unexpected-var-type <level>β Warn about incompatible types being set onvarproperties (default:warning)--Quick.property-changes-parsed <level>β Warn about legacyPropertyChangesthat rely on the custom parser (default:warning)--Quick.color <level>β Warn about invalid color values. (default:warning)--Quick.state-no-child-item <level>β Warn aboutStateObjects that have illegal child items (default:warning)
π Arguments π
filesβ list ofqmlorjsfiles to verify. Give me the goods bestie π«Ά
pyside6-qmllint 6.11 β September 2026 β PYSIDE6-QMLLINT(1)
and that's the whole page, bestie π go lint something and be 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