Hi,

I am using QTableView class. I want when user double clicks on the item (e.g. row = 1, column = 1) dialog appears on the screen.

I wrote the following:
Qt Code:
  1. MainWindow::MainWindow(/* PARAMS */)
  2. {
  3. ...
  4. connect(tableView, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(showDialog(const QModelIndex &)));
  5. ...
  6. }
To copy to clipboard, switch view to plain text mode 

but the slot isn't called .

Why double click signal isn't emitted?

thanks,
Hasmik.