Duplicated Name | Qt QML 6.8.0
Description: Multiple signals or properties share the same name in the same Component.

- Qt 6.8
- Qt QML
- QML Lint Warning and Errors
- Duplicated Name
- Qt 6.8.0 Reference Documentation

# Duplicated Name

This warning category has multiple warnings:

- Duplicated Property Name
- Duplicated Signal Name

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

You can fix this warning by removing the duplicate property or renaming it:

     import QtQuick

     Item {
         property int helloWorld
     }

## Duplicated Signal Name

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

You can fix this warning by removing the duplicate signal or renaming it:

     import QtQuick

     Rectangle {
         signal helloWorld
     }