名前の重複
この警告カテゴリは、qmllint では「[duplicated-name] 」と表記されます。
プロパティ、シグナル、またはメソッド名の重複
何が起きたのか?
プロパティ、シグナル、またはメソッドに、現在の QML コンポーネント内で既に使用されている名前を指定しました。
なぜ問題なのか?
QML Runtimeは、実行時にメンバー名が重複するコンポーネントを作成しません。その場合は、代わりに null となります。
例
import QtQuick
Item {
property int helloWorld
property int helloWorld // duplicate property
signal helloWorld() // duplicate signal
}この警告を解消するには、重複しているメンバーを削除するか、名前を変更してください:
© 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.