[Qt-qml] "QML supports network transparency by using URLs"
Jason H
scorp1us at yahoo.com
Sun Jul 11 06:55:42 CEST 2010
Text {
source: "http://iscaliforniaonfire.com"
}
Does not work.
Before you tell me to use a model, let me point this out. I was trying to make a
crawler/ticker, like on the news stations.
When I tried to use a model, they were uniformly spaced, and that's not
acceptable.
It would be cool if I could specify source for any string, that could ever be
used (performance implications are left to the coder) as well as specify a XPath
query It might be cool also specify an XPath query too, sot that
Text {
source: "http://iscaliforniaonfire.com"
sourceQuery: "/body/H1/text()"
}
It may be good to make a Document element type:
Document {
id: californiaFireStatus
source: "http://iscaliforniaonfire.com"
query{
id:yesno; query: "/body/H1/text()"
}
query{
id:title; query: "/head/title"
}
}
Text {
source: californiaFireStatus.yesno
}
Or something like that. I think my only option now is to fetch it into a model
and then glue it together?
More information about the Qt-qml
mailing list