Duplicated Name

This warning category has multiple warnings:

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
}

© 2024 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.