You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
754 B

import QtQuick
import QtQuick.Controls
import QtQml.XmlListModel
Item {
x: 190
y: 51
XmlListModel {
id: newsModel
source: "http://www.radiotangra.com/news/rss.html"
query: "/rss/channel/item"
XmlListModelRole { name: "title"; elementName: "title"; attributeName: ""}
XmlListModelRole { name: "link"; elementName: "link"; attributeName: "" }
}
ListView {
id: newsList
anchors.fill: parent
anchors.topMargin: 38
anchors.leftMargin: 39
anchors.rightMargin: 27
anchors.bottomMargin: 17
model: newsModel
delegate: NewsDelegate {}
ScrollBar.vertical: ScrollBar {
policy: ScrollBar.AlwaysOn
}
}
}