Awesome, thanks for the help jpn!
I did what you said, and its nearly working . I added
def mousePressEvent(self, event):
if not self.table.itemAt(event.pos()):
self.table.clearSelection()
def mousePressEvent(self, event):
if not self.table.itemAt(event.pos()):
self.table.clearSelection()
To copy to clipboard, switch view to plain text mode
It works when I click anywhere on the interface, but not on the whitespace of the table, or other widgets. Has that got something to do with calling the base class? I don't understand the last comment you made. Do I have to make the table aware of mouse events?
Bookmarks