Reputation: 881
I'm having a table with 100 datas. I need to receive mouse press event while clicking on the table.
Here is the code:
ui->tableWidget->viewport()->installEventFilter(this);
bool Dbtable::eventFilter(QObject *obj, QEvent *event)
{
if(event->type() == QEvent::MouseButtonPress)
{
debugLog("# TABLE WIDGET IS PRESSED");
return ;
}
}
Now the table is not visible.
Could any one help me in solving this?
Upvotes: 1
Views: 1809