QML Lint の警告とエラー

ここでは、QML Lint のすべての警告およびエラーメッセージの概要を説明します。

Alias cycle

[alias-cycle] エイリアスプロパティがエイリアスサイクルの一部となっています。

Attached property reuse

[attached-property-reuse] 添付型が複数回初期化されました。

Block scope var declaration

[var-used-in-block-scope] ブロックスコープ内で var を使用して変数が宣言されています。

Cannot access singleton as a property of an object

[access-singleton-via-object] シングルトンへのアクセス方法が不適切です。

Comma

[comma] カンマ式を使用しないでください。

Component is missing a required property

[required] コンポーネントの必須プロパティがバインドされていません。

Components must have exactly one child

[component-children-count] コンポーネントの子要素の数が不正です。

Confusing expression statement

[confusing-expression-statement] 紛らわしい式文。

Confusing minuses

[confusing-minuses] 分かりにくいマイナス記号。

Confusing pluses

[confusing-pluses] 分かりにくいプラス記号。

Context properties

[context-properties] コンテキストプロパティが使用されました。

Deprecated

[deprecated] 非推奨のプロパティまたは型が使用されました。

Do not use void in expressions

[void] void 式が使用されました。

Duplicate Imports

[duplicate-import] インポートの重複。

Duplicate bindings

[duplicate-property-binding] プロパティが複数回バインドされました。

Duplicate enum entries

[duplicate-enum-entries] 列挙型のキー X はすでに宣言されています。

Duplicate id

[syntax.duplicate-ids] IDが一意ではありません。

Duplicate inline components

[duplicate-inline-components] インラインコンポーネントの重複。

Duplicated name

[duplicated-name] 同じコンポーネント内で、複数のメンバーが同じ名前を共有しています。

Enum declared outside the root element

[non-root-enum] 列挙型がルート要素の外で宣言されています。

Enum entry matches enum

[enum-entry-matches-enum] 列挙項目の名前は、列挙型自体とは異なる名前にする必要があります。

Enum key case

[enum-key-case] 列挙型のキーが小文字で始まっています。

Enums are not types

[enums-are-not-types] 列挙型の名前が型注釈として使用されています。

Eval

[eval] eval の使用。

Function used before its declaration

[function-used-before-declaration] 関数が宣言される前に使用されました。

Id quotation

[syntax.id-quotation] IDに引用符が含まれています。

Id shadows member

[id-shadows-member] IDがメンバを隠蔽しています。

Import file selector

[import-file-selector] ファイルセレクタを使用したインポート。

Incompatible type

[incompatible-type] オブジェクト、値、または式が互換性のない型で使用されています。

Inheritance cycle

[inheritance-cycle] コンポーネントが自分自身から継承しています。

Inline component enums

[inline-component-enums] インラインコンポーネント内で列挙型が宣言されています。

Invalid qmllint directives

[invalid-lint-directive] 無効な qmllint コメント。

Literal constructor

[literal-constructor] 関数をコンストラクタとして使用しないでください。

Loose equality comparison type coercion

[equality-type-coercion] 緩やかな等価比較演算子を使用すると、値が型変換される可能性があります。

Missing enum entry

[missing-enum-entry] 列挙型の宣言から値が欠落しています。

Missing property

[missing-property] 存在しないプロパティに値をバインドしています。

Missing type

[missing-type] バインディングまたはエイリアスで使用されている型が見つかりませんでした。

Multiline strings

[multiline-strings] 文字列が複数行にまたがっています。

Non-list property

[non-list-property] リストではないプロパティに複数の値が割り当てられました。

Prefer non-var properties

[prefer-non-var-properties] var プロパティよりも non-var プロパティを優先してください。

Property override

[property-override] override、final、virtual キーワードの誤用。

Quick: Attached property type

[Quick.attached-property-type] Quick のアタッチドプロパティ型の誤用。

Readonly property

[read-only-property] 読み取り専用プロパティが記述されました。

Recursion depths errors

[recursion-depth-errors] QMLの文または式が深すぎる階層でネストされています。

Redundant Optional Chaining

[redundant-optional-chaining] 一部のオプションのチェイニング検索は、オプションではない可能性があります。

Renamed Type

[renamed-type] タイプが、エクスポートされていない名前で呼び出されました。

Restricted type

[restricted-type] 制限付き型にアクセスされました。

Shadow

[shadow] あるメンバが別のメンバを隠蔽しています。

Signal handler parameters

[signal-handler-parameters] シグナルハンドラがシグナルの型要件を満たしていません。

Stale property read

[stale-property-read] 定数でも通知可能でもないプロパティを読み取ろうとしています。

Syntax

[syntax] さまざまな構文エラー。

Top level component

[top-level-component] ルート QML 型がコンポーネントです。

Type is instantiated recursively

[type-instantiated-recursively] 型が自分自身をインスタンス化しています。

Uncreatable type

[uncreatable-type] 作成できない型。

Unintentional empty block

[unintentional-empty-block] オブジェクトリテラルに代わる形で、空のブロックが作成されました。

Unqualified

[unqualified] ID 指定なしに外側のスコープにアクセスしています。

Unreachable code

[unreachable-code] 一部の命令に到達できません。

Unresolved alias

[unresolved-alias] プロパティ alias のプロパティが見つかりませんでした。

Unresolved type

[unresolved-type] 使用されている型が見つかりませんでした。

Unterminated non-empty case block

[unterminated-case] 空ではない case ブロックが終了されていません。

Unused imports

[unused-imports] インポートされたモジュールの型が使用されていません。

Use proper function

[use-proper-function] 関数ではない可能性のあるものを呼び出しています。

Var used before declaration

[var-used-before-declaration] JavaScript変数が宣言される前に使用されました。

Warn about using assignment in conditions

[assignment-in-condition] 条件式内で代入文が使用されています。

Warnings occurred while importing

[import] インポートされたモジュールが見つかりませんでした。

With

[with] QML では with 文の使用は強く推奨されません。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.