hi,
so I wanted to separate my data models as component(s) so it wouldn't cramped up on main.qml
so i created a file called "xmlmodels.qml" and put it in the components folder and say with content on it,
and then my "main.qml" kinda looks like thisCode:import QtQuick 1.0 XmlListModel { id: xmlModel source: "http://www.mysite.com/feed.xml" query: "/rss/channel/item" XmlRole { name: "title"; query: "title/string()" } XmlRole { name: "pubDate"; query: "pubDate/string()" } }
but then when i run it, it would say,Code:import QtQuick 1.0 import "components" ListView { id:homelv anchors.fill: parent model: xmlModel delegate: some_delegate } ... ...
ReferenceError: Can't find variable: xmlModel
any idea, on why it can't see the xmlModel variable? but all other QML components that's not XMLlistmodel can be loaded and referenced without a problem.





