I'm trying to import a qml file inside the program's resource file but i dont know what i'm doing wrong because it doesn't works. My program's structure is
The file in question is a simple QML rectangle for now:
Headers.qml:
import QtQuick
Rectangle{
color: "red"
width: 400
height: 600
}
In main.qml i've tried to import in multiple ways for example import "qrc:///Components/Headers.qml" as Rect
and use it like
Item{
Rect{}
}
but without success, in all cases the message i got is: QQmlComponent: Component is not ready
What i'm doing wrong ?
i've tried multiple import tag and implementation but in all cases it returned QQmlComponent: Component is not ready