- Qt 6.10
- Qt Qml
- QML Lint Warning and Errors
- Duplicated name
- Qt 6.10.1 Reference Documentation

# Duplicated name

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

## Duplicated Property Name

### What happened?

Multiple properties in the same QML component scope have the same name.

### Why is this bad?

Components with duplicate property names will not be created at runtime: they will be null instead.

### Example

     import QtQuick

     Item {
         property int helloWorld
         property int helloWorld
     }

To fix this warning, remove the duplicate property or rename it:

     import QtQuick

     Item {
         property int helloWorld
     }

## Duplicated signal mame

### What happened?

Multiple signals in the same QML component scope have the same name.

### Why is this bad?

Components with duplicate signal names will not be created at runtime: they will be null instead.

### Example

     import QtQuick

     Rectangle {
         signal helloWorld
         signal helloWorld
     }

To fix this warning, remove the duplicate signal or rename it:

     import QtQuick

     Rectangle {
         signal helloWorld
     }