Why don't you just populate the list you have instead of creating a new one?
Why don't you just populate the list you have instead of creating a new one?
That was the first thing i tried. Problem is - i cannot call the mexthod completeList from Download_xml, without an object. And I have no idea how to call this method for the list that has already been created... Can u help me with code?
Just return a list of QListWidgetItem objects and then put them into the list when you have access to the list.
what about something like this (untested):
Qt Code:
void function() { QVector<Movie*> vec = ParseXml("http://www.forumcinemas.lv/rss/xml/movies/"); FillListWidget(listWidget, vec); listWidget->show(); }To copy to clipboard, switch view to plain text mode
Bookmarks