Try this:
Just make sure clicking outside any item clears the selection.Qt Code:
connect(view->selectionModel(), SIGNAL(selectionChanged(const QItemSelection &, const QItemSelection &)), this, SLOT(yourSlotGoesHere()));To copy to clipboard, switch view to plain text mode
Bookmarks