1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5\page qmllint-warnings-and-errors-duplicated-name.html
6\ingroup qmllint-warnings-and-errors
9\brief Multiple signals or properties share the same name in the same Component.
11This warning category has multiple warnings:
13 \li \l{Duplicated Property Name}
14 \li \l{Duplicated Signal Name}
17\section1 Duplicated Property Name
19\section2 What happened?
20Multiple properties in the same QML component scope have the same name.
22\section2 Why is this bad?
23Components with duplicate property names will not be created at runtime: they will be null instead.
30 property int helloWorld
31 property int helloWorld
34You can fix this warning by removing the duplicate property or renaming it:
39 property int helloWorld
43\section1 Duplicated Signal Name
45\section2 What happened?
46Multiple signals in the same QML component scope have the same name.
48\section2 Why is this bad?
49Components with duplicate signal names will not be created at runtime: they will be null instead.
60You can fix this warning by removing the duplicate signal or renaming it: