重複した名前
この警告カテゴリーは qmllint によって[duplicated-name]
と綴られています。
プロパティ名の重複
何が起こりましたか?
同じQMLコンポーネントスコープにある複数のプロパティが同じ名前を持っています。
これはなぜ悪いのでしょうか?
プロパティ名が重複しているコンポーネントは実行時に作成されません。
例
この警告を修正するには、重複するプロパティを削除するか、名前を変更してください:
重複したシグナルmame
何が起こったのでしょうか?
同じQMLコンポーネントスコープにある複数のシグナルが同じ名前になっています。
なぜ悪いのか?
重複したシグナル名を持つコンポーネントは実行時に作成されません。
例
import QtQuick Rectangle { signal helloWorld signal helloWorld }
この警告を修正するには、重複するシグナルを削除するか、シグナル名を変更してください:
import QtQuick Rectangle { signal helloWorld }
© 2025 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.