Componente de nível superior
Essa categoria de aviso é denominada “ [top-level-component] ” pelo qmllint.
O tipo de nível superior do QML não pode ser “Component”
O que aconteceu?
Você usou o tipo “ Component ” como tipo de nível superior no seu arquivo QML.
Por que isso é ruim?
Seu arquivo QML já define um componente por si só. Usar um tipo ` Component ` como tipo de nível superior irá envolver seu componente em outro componente desnecessário.
Exemplo
import QtQuick
Component {
Item { ... }
}Para corrigir esse aviso, remova o envoltório extra do `Component`:
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.