Duplizierter Name
Diese Warnkategorie wird von qmllint [duplicated-name] geschrieben.
Duplizierter Name einer Eigenschaft, eines Signals oder einer Methode
Was ist passiert?
Sie haben einer Eigenschaft, einem Signal oder einer Methode einen Namen gegeben, der bereits in der aktuellen QML-Komponente verwendet wird.
Warum ist das schlecht?
Die QML Runtime erstellt zur Laufzeit keine Komponenten mit doppelten Membernamen: sie werden stattdessen als null angelegt.
Beispiel
import QtQuick Item { property int helloWorld property int helloWorld // duplicate property signal helloWorld() // duplicate signal }
Um diese Warnung zu beheben, entfernen oder benennen Sie die doppelten Member um:
© 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.