geleven
8th April 2010, 16:26
dear all,
i have some problem, which is described by code below :
void lists::removeList()
{
QStringList temp = this->readListDoc();
QStringList removes = this->ui->ListPic->selectedItems();
//this->ui->ListPic->clear();
}
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?
i have some problem, which is described by code below :
void lists::removeList()
{
QStringList temp = this->readListDoc();
QStringList removes = this->ui->ListPic->selectedItems();
//this->ui->ListPic->clear();
}
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?