I wrote this code:
The problem i have found when going through the Debug:Qt Code:
Download_xml *Other = new Download_xml(str); QVector<Movie *> new_ml = Other->ml();To copy to clipboard, switch view to plain text mode
when new_ml is being assigned a value, Other->ml(); is empty.
The thing is, that i thought when i write:
Download_xml *Other = new Download_xml(str);
new class would be automatically created but instead, it is created only after all those 3 lines of code. What's why when I assign the value to new_ml it is empty. How do i assign to new_ml the right value?
Bookmarks