Check carefully all the pieces of code I gave you (escpecially archiv.cpp).
It asks the current index from the view and returns it's data, there is no need to keep track of clicked items.. And you didn't store that clicked item anywhere anyway (and neither should you store model indexes, you are advised to use QPersistentModelIndex if you really need to)..
Bookmarks