Composants en ligne en double
Cette catégorie d'avertissement est orthographiée « [duplicate-inline-component] » par qmllint.
Composant en ligne en double
Que s'est-il passé ?
Deux composants en ligne portent le même nom.
Pourquoi est-ce un problème ?
Un même nom fait référence à plusieurs types, ce qui entraîne 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.