void ComicView::unzipdone(QString namepath){ QDir dir(namepath); uint i = 1; QStringList filters; filters << "*.jpg" << "*.png" << "*.bmp"; dir.setNameFilters(filters); foreach (QFileInfo mitm, dir.entryInfoList()) { ui->listWidget->addItem("picture "+QString::number(i)); i++; } connect(ui->listWidget, SIGNAL(currentRowChanged(int)), &m_imageviewer, SLOT(picindex(int))); //error}