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:
Is that the proper way to do it?Qt Code:
{ if(event->button() == Qt::RightButton) emit activated(index); else }To copy to clipboard, switch view to plain text mode
Bookmarks