Tipo que no se puede crear
qmllint escribe esta categoría de advertencia como « [uncreatable-type] ».
El espacio de nombres debe comenzar con una letra mayúscula
¿Qué ha pasado?
Has utilizado un objeto QML de un espacio de nombres en minúsculas.
¿Por qué es un error?
El lenguaje QML prohíbe los espacios de nombres en minúsculas.
Ejemplo
import QtQuick as quick
quick.Item { ... }Para solucionar la advertencia, cambia el nombre del espacio de nombres para que empiece con mayúscula:
import QtQuick as Quick
Quick.Item { ... }El tipo «Singleton» no se puede crear
¿Qué ha pasado?
Has intentado instanciar un objeto QML a partir de un tipo singleton.
¿Por qué es un error?
El lenguaje QML prohíbe la instanciación de singletons.
Ejemplo
import QtQuick
Item {
Qt { // note: Qt is a singleton type
id: qt
}
property string someProperty: qt.uiLanguage
}Para solucionar la advertencia, utiliza el singleton directamente sin instanciarlo:
El tipo no se puede crear
¿Qué ha pasado?
Has intentado instanciar un objeto QML a partir de un « uncreatable type ».
¿Por qué es un error?
Los tipos no creables están marcados específicamente para impedir su instanciación. Es posible que estés utilizando incorrectamente un tipo que solo debería emplearse como tipo adjunto o como interfaz.
Ejemplo
Uso incorrecto de un tipo adjunto
import QtQuick
Item {
Keys {
onPressed: function (key) { ... }
}
}Para solucionar la advertencia, utiliza el tipo adjunto « Keys » en lugar de instanciarlo:
import QtQuick
Item {
Keys.onPressed: function (key) { ... }
}Uso incorrecto de una interfaz
import QtQuick
Item {
property PointerHandler myHandler: PointerHandler {}
}Para solucionar la advertencia, utiliza un tipo derivado más específico, como TapHandler:
import QtQuick
Item {
property PointerHandler myHandler: TapHandler {}
}© 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.