So i had a problem showing the right data after parsing xml. I found a way, but now i need help from u guys:
My main.cpp calls for list.cpp (here is the important part):
Qt Code:
  1. List::List(bool first, QWidget *parent) :
  2. QWidget(parent)
  3. {
  4. if(first == true)
  5. {
  6. QString str = "http://www.forumcinemas.lv/rss/xml/movies/";
  7. Download_xml *Other= new Download_xml(str);
  8. this->hide();
  9. }
  10. else
  11. {
  12. layout = new QVBoxLayout(this);
  13. listWidget = new QListWidget(this);
  14. layout->addWidget(listWidget);
  15. this->setFocus();
  16. }
To copy to clipboard, switch view to plain text mode 

As u can see, i call for download_xml, where the xml parsing will take place.
Here is download_xml.cpp part.
Qt Code:
  1. void Download_xml::parseXml()
  2. {
  3. QVector<Movie *> movie_list;
  4. List *list = new List(false);
  5.  
  6. ...
  7.  
  8. _ml = movie_list;
  9. list->completeList(_ml);
  10. }
To copy to clipboard, switch view to plain text mode 

and here is the list.cpp function part:
Qt Code:
  1. void List::completeList(QVector<Movie *> ml)
  2. {
  3.  
  4. QVector<Movie *> new_ml = ml;
  5. for (int i = 0; i<new_ml.size(); i++)
  6. {
  7. listWidget->insertItem(i, "");
  8. listWidget->setItemWidget(listWidget->item(i), new Custom_Widget
  9. (new_ml[i]->name(), new_ml[i]->date(), new_ml[i]->about(), new_ml[i]->picture()));
  10. listWidget->item(i)->setSizeHint(QSize (350,470));
  11. listWidget->setSpacing(1);
  12. }
To copy to clipboard, switch view to plain text mode 

The problem is, i can't see the list that is created after the parsing in XML takes place. I run through the debug, and i think that the list is created and even shown, but in background. In front all u can see is the first list, that is created empty.
That's why I ask your help: either to show the list, that is created after parsing in front, or help me rewrite the code in some way it would work better...