I set it to both DecorationRole and DisplayRole so that I can display both the file icon and the file name. I also tried to display the file name only by setting it to DisplayRole only and that didn't work either.
If you look at my slot below, is it suppose to do what I want it to do? Because I am not too sure.
Qt Code:
void MainWindow::on_btnSearch_clicked() { proxyModel->setFilterFixedString(patternStr); }To copy to clipboard, switch view to plain text mode
Bookmarks