Catch double click in QTableView's unused area
问题 My application starts with an empty table, and I want to imlement different methods to add items. One should be by double-clicking the table's unused area (or "background") that is not occupied by any cells. When a cell is double-clicked, I want the default behavior. I've found way to do this by re-implementing QAbstractScrollArea::mouseDoubleClickEvent() method in my TestTable class: #include <QMouseEvent> #include <QTableView> class TestTable : public QTableView { Q_OBJECT signals: void