hasmik
9th December 2009, 12:52
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:
MainWindow::MainWindow(/* PARAMS */)
{
...
connect(tableView, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(showDialog(const QModelIndex &)));
...
}
but the slot isn't called :(.
Why double click signal isn't emitted?
thanks,
Hasmik.
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:
MainWindow::MainWindow(/* PARAMS */)
{
...
connect(tableView, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(showDialog(const QModelIndex &)));
...
}
but the slot isn't called :(.
Why double click signal isn't emitted?
thanks,
Hasmik.