[SOLVED] QTreeview Double Clicked "The program unexpectedly finished"
Unsolved
General and Desktop
-
hi ```
I get error (QSortFilterProxyModel: index from wrong model passed to mapToSource)
void MainWindow::on_treeView_doubleClicked(const QModelIndex &index)
{if(index.isValid())
{
QModelIndex mapped=filter->mapToSource(model->index(dir));qDebug()<<model->filePath(mapped); }
}
-
oh
maybe its
mapToSource(index)