Importaciones no utilizadas
Esta categoría de advertencia se escribe [unused-imports] por qmllint.
Importación no utilizada
¿Qué ha ocurrido?
Ha utilizado una sentencia import para importar un módulo QML, pero no ha utilizado ninguno de sus tipos.
¿Por qué es malo?
La sentencia import establece una dependencia con un módulo QML que en realidad no es necesaria. Esto afecta a la legibilidad del código y al rendimiento del motor y las herramientas QML, ya que les obliga a procesar un módulo QML innecesario.
Ejemplo
import QtQuick
import QtQuick.Controls
Item {}Para corregir esta advertencia, elimine la importación no utilizada:
import QtQuick
Item {}© 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.