My slot is defined in the MainWindow class which is derived from MainWindow. This slot has the same argumnts as doubleclick signal has. I want to mention that I have defined a new model and this model is used in QTableView.