Nome duplicato
Questa categoria di avviso viene indicata da qmllint con il nome " [duplicated-name] ".
Nome duplicato di proprietà, segnale o metodo
Cosa è successo?
Hai assegnato a una proprietà, a un segnale o a un metodo un nome già in uso nel componente QML corrente.
Perché è un problema?
Il QML Runtime non crea componenti con nomi di membri duplicati in fase di esecuzione: questi saranno invece impostati a null.
Esempio
import QtQuick
Item {
property int helloWorld
property int helloWorld // duplicate property
signal helloWorld() // duplicate signal
}Per risolvere questo avviso, rimuovi o rinomina i membri duplicati:
© 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.