Composants en ligne dupliqués
Cette catégorie d'avertissement a été orthographiée [duplicate-inline-component] par qmllint.
Composant inline dupliqué
Qu'est-ce qui s'est passé ?
Deux composants inline ont le même nom.
Pourquoi est-ce mauvais ?
Un nom fait référence à plus d'un type et provoque une ambiguïté. La compilation échouera.
Exemple
import QtQuick Item { component R : Rectangle { color: "red" } component R : Rectangle { color: "blue" } // Fail to compile }
Pour corriger cet avertissement, supprimez ou renommez l'un des composants en ligne :
© 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.