how to import other qml files?
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.
Re: how to import other qml files?
First letter if the element should be in caps. check it is the issue? save waterpage.qml as Waterpage.qml
Re: how to import other qml files?
I think this is duplicate post by you.. I have given answer on other post in Qt Quick Category.
Find it on below link
[url]http://www.developer.nokia.com/Community/Discussion/showthread.php?235392-how-import-other-qml-files[/url]
Also my request to you, Please do not post on two category.
Thanks,
Chintan.
Re: how to import other qml files?
Thanks to kkrish and chintandave_er,and I will never post on two category.