Hi,
Is your first question "How you should do to display the data which are get
from the XML" ?
I think you should add "delegate" property and some codes to do it.
import QtQuick 2.0
import Sailfish.Silica 1.0
import QtQuick.XmlListModel 2.0
Page{
id: root
XmlListModel{
id:noteXml
source:"http://www.w3schools.com/xml/note.xml"
query:"/note"
XmlRole{name: "body"; query: "body/string()"}
}
SilicaListView{
id:noteView
width: parent.width
height: parent.height
anchors.centerIn: parent
header: PageHeader{
title: "Note"
}
model:noteXml
delegate: BackgroundItem {
id: delegate
Text {
font.pixelSize: Theme.fontSizeLarge
color: Theme.primaryColor
text: body
}
}
}
}
Best regards,
--
R.Kake!
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to [email protected]