Hi all,
How to import other qml files in Qt Quick?
I have created a directory naming core.In this directory,I have a file naming waterpage.qml.I have edited qmldir file,its contents are "WaterPage WaterPage.qml"
In the mainpage.qml,i have coded the following codes:
import "core"
Page{
WaterPage{id:waterpage}
}
But when I run the project, Igot the following error:
Cannot assign to non-existent property "waterpage"
waterpage{id:waterpage}
Why this problem happened?
Thanks for advice.





