- Qt 6.11
- Qt Qml
- Qt Qml Tooling
- qmllint
- QML Lint Warning and Errors
- Duplicated name
- Qt 6.11.1 Reference Documentation

Duplicate bindings ◦ Enum entry matches enum

# 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()
     }

Duplicate bindings ◦ Enum entry matches enum