your loop must be like these line

Qt Code:
  1. for(i=0;it1!=lis.end();it1++);
  2. {
  3. out<<(*it1).id;
  4. out<<(*it1).name;
  5. }
To copy to clipboard, switch view to plain text mode