En esta página

Nombre duplicado

qmllint escribe esta categoría de advertencia como « [duplicated-name] ».

Nombre duplicado de propiedad, señal o método

¿Qué ha pasado?

Has asignado a una propiedad, señal o método un nombre que ya está en uso en el componente QML actual.

¿Por qué es un problema?

El QML Runtime no crea componentes con nombres de miembros duplicados en tiempo de ejecución: en su lugar, serán nulos.

Ejemplo

import QtQuick

Item {
    property int helloWorld
    property int helloWorld // duplicate property
    signal helloWorld() // duplicate signal
}

Para solucionar esta advertencia, elimina o cambia el nombre de los miembros duplicados:

import QtQuick

Item {
    property int helloWorld
    signal helloWorldSignal()
}

© 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.