Hi all,

I am a newbie to qt,using it little before.Now I have a question of importing other files.
I have created a directory naming core.In this directory,I have a file naming 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.