Id shadows member
This warning category is spelled [id-shadows-member] by qmllint.
Id shadows property, method or signal
What happened?
An id is potentially shadowing a property, method, or signal in the same context.
Why is that bad?
You can't access the property, method, or signal by its unqualified name anymore. Code that used to do so will silently access the id instead, potentially leading to hard-to-spot bugs.
Example
import QtQuick
Item {
Item { id: helloWorld }
property int helloWorld: 42
Component.onCompleted: console.log(helloWorld) // not 42
}To fix this warning, rename the id or the shadowed member.
© 2026 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.