On this page

Duplicated name

This warning category is spelled [duplicated-name] by qmllint.

Duplicated property, signal, or method name

What happened?

You gave a property, signal or method a name which is already in use in the current QML component.

Why is this bad?

The QML runtime doesn't create components with duplicate member names at runtime: they will be null instead.

Example

import QtQuick

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

To fix this warning, remove or rename the duplicate members:

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.