Dear all,

i want to ask, how we can populate a QListView with item which is read from a QString?

my code below didn't work..
Qt Code:
  1. QStringList listing;
  2. QListView ListPic;
  3.  
  4. for (int i = 0; i < listing.size(); i++)
  5. {
  6. QString temp = listing.at(i);
  7. ui->ListPic->currentIndex().data() = temp;
  8. }
To copy to clipboard, switch view to plain text mode 

Thank you for the help