Please start with taking a look at QAbstractItemView and QItemSelectionModel docs. These two classes provide signals when double clicking or when the selection changes.