Right Click in QTableView
I am using activated() to open a file in one of my columns, but that only works with the enter key. The only way I could find to allow using a mouse was to subclass QTableView and use mousePressedEvent(). This seems to be working, but it also seems too simple, and I am unsure if I did it right, or if I should not have done something more. All I did was:
Code:
{
if(event->button() == Qt::RightButton)
emit activated(index);
else
}
Is that the proper way to do it?
Re: Right Click in QTableView
Re: Right Click in QTableView
Thanks for the conformation. I think I have this part of my application roughed out enough to move on, and have started the next part.