O tipo é instanciado recursivamente
Essa categoria de aviso é denominada “ [type-instantiated-recursively] ” pelo qmllint.
O tipo não pode ser instanciado recursivamente
O que aconteceu?
Um componente se instanciou a si mesmo.
Por que isso é ruim?
O componente precisa de si mesmo para se instanciar, criando um loop infinito. O QML Runtime irá gerar um erro nesse componente.
Exemplo
// MyComponent.qml
import QtQuick
Item {
MyComponent {}
}Para corrigir esse aviso,
- Substitua o componente problemático por outro, caso tenha sido um erro.
- Adiar a instanciação para mais tarde, usando, por exemplo, a Criação Dinâmica de Objetos QML a partir de JavaScript.
© 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.