connect(qTblVwSearchDocs, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(searchDocEnter(QModelIndex)));connect(qTblVwSearchDocs, SIGNAL(clicked(QModelIndex)), this, SLOT(checkDoc(QModelIndex)));
#include "Widgets.h"TableView::TableView(QWidget *parent) : QTableView(parent){}void TableView::mouseDoubleClickEvent ( QMouseEvent *event ){ emit(doubleClick(this->indexAt(QPoint(event->pos().x(), event->pos().y())))); event->accept();}