Hi,
I am new in Qt and I i have a QTreeWidget and QTreeModel and I dont know how to get the selected filename when I click on the file in Tree Widget. Please send code If you can. (I really dont understand the model/view architecture.) Thanks a lot.
Qt Code:
  1. tree = new QTreeView(dockWidget);
  2. QDirModel *model = new QDirModel(tree);
  3. tree->setModel(model);
To copy to clipboard, switch view to plain text mode