You need to create your model on the heap:Qt Code:
TreeModel *model = new TreeModel(file.readAll()); file.close(); ui->navigationTreeView->setModel(model); //ui->navigationTreeView->show();To copy to clipboard, switch view to plain text mode
You need to create your model on the heap:Qt Code:
TreeModel *model = new TreeModel(file.readAll()); file.close(); ui->navigationTreeView->setModel(model); //ui->navigationTreeView->show();To copy to clipboard, switch view to plain text mode
Bookmarks