Вот как то так:
C++ (Qt)
Rectangle {
width: parent.width
height: parent.height
color : "transparent"
Keys.onPressed: {
if (event.key==Qt.Key_Escape) {
music_menu.focus=true;
topartist_menu.focus=false;
}
}
XmlListModel {
id: itemmodel
source: "http://ws.audioscrobbler.com/2.0/?method=geo.gettopartists&country=spain&api_key=fef91516474dea0dca023e9281fb5c11"
query: "/lfm/topartists/artist"
XmlRole {
name: "title"
query: "name/string()"
}
XmlRole {
name: "image"
query: "image[4]/string()"
}
}
ListView {
id: gridView
height: 200
width:200
model: itemmodel
delegate:TopArtist{}
}
}