dear all,

i have some problem, which is described by code below :

Qt Code:
  1. void lists::removeList()
  2. {
  3. QStringList temp = this->readListDoc();
  4. QStringList removes = this->ui->ListPic->selectedItems();
  5. //this->ui->ListPic->clear();
  6. }
To copy to clipboard, switch view to plain text mode 

ListPic is a QListWidget, and the function selectedItems() suppose to return a QList<QListWidgetItem*>. The problem is i want to use QList<QListWidgetItem*> as a QStringList.

the error give statement like this
conversion from 'QList<QListWidgetItem*>' to non-scalar type 'QStringList' requested.

how i can solve this problem?