16,213
社区成员
发帖
与我相关
我的任务
分享
XmlListModel{
id: guestrueModel
source: ""
query: "/rss/channel/item"
XmlRole { name: "title"; query: "title/string()" }
XmlRole { name: "titlePhoto"; query: "titlePhoto/string()" }
XmlRole { name: "buWei"; query: "buWei/string()" }
XmlRole { name: "buWeiWord"; query: "buWeiWord/string()" }
XmlRole { name: "dongZuo"; query: "dongZuo/string()" }
}
ListView{
id:guesture_view
width: 480
height: 680
model: GuestureModel{
source: "qrc:/images/info.xml"
}
delegate: Rectangle{
id: rec
border.color: "white"
border.width: 5
radius: 5
width: screen.width; height: 150
BorderImage {
source: "qrc:/images/photo_back1.png"
border.left: 5; border.top: 5
border.right: 5; border.bottom: 5
}
ToolIcon{
platformIconId: "toolbar-next"
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
}
AnimatedImage{
id: guesture
source: titlePhoto
width: 140; height: 140
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
cache: false
}
Text{
text: title
//color:"#FFFFFF"
anchors.horizontalCenter: parent.horizontalCenter
anchors.horizontalCenterOffset: 20
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 35
horizontalAlignment: Text.AlignJustify
}
}