I want to move selected items from QTreeview (populated by QFileSystemModel) to a QListBox. I have managed to get all selected items in a QMdelIndex list, but I cant add this to QListbox since QListBox->addItems(QStringList) only accepts QStringList.
Please guide me through.
QItemSelectionModel selectiveModel=ui->treeView->selectionModel();
QModelIndexList list=selectiveModel.selectedIndexes();
ui->inputImageLstBox->addItems(list);


Reply With Quote


isplayRole, model->fileName(index));
Bookmarks