重複した名前
この警告カテゴリのスペルは[duplicated-name] です。
プロパティ名、シグナル名、メソッド名の重複
何が起こりましたか?
現在のQMLコンポーネントで既に使用されているプロパティ、シグナル、メソッド名を指定しました。
これはなぜ悪いのでしょうか?
QMLランタイムは実行時に重複したメンバー名を持つコンポーネントを作成しません。
例
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.