Cita de ID
qmllint escribe esta categoría de advertencia como « [syntax.id-quotation] ».
Los ID no necesitan comillas
¿Qué ha pasado?
Has puesto un identificador entre comillas.
¿Por qué es un error?
Esto podría dar lugar a confusión entre identificadores y cadenas de caracteres. El lenguaje QML no requiere comillas para los identificadores y prohíbe expresiones de cadena más complejas para ellos.
Ejemplo
import QtQuick
Item {
id: "root"
}Para solucionar esta advertencia, elimina las comillas:
import QtQuick
Item {
id: root
}© 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.