Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Issue with EvenFilter being used by the wrong table
DIRi last edited by DIRi
This post is deleted!
JonB last edited by JonB
the problem is that timetable1 uses the eventfilter after selectionmenu rather the one afteri tself.
I don't know what you think you are doing in this code. You have functions (
def ...) for each of
selectionmenu(). You need classes to have two separate functions both named
eventFilter(). Your two
eventFilter()methods are indented inside functions/methods
selectionmenu(). I'm not even sure what that does in Python.
I would expect the end of an
return super().eventFilter(obj, event)
Basically I suggest you go back and read about
installEventFilter()and look at examples --- doubtless there are Python ones, e.g. https://doc.qt.io/qtforpython/overviews/eventsandfilters.html#event-filters and https://doc.qt.io/qtforpython/PySide6/QtCore/QObject.html#PySide6.QtCore.PySide6.QtCore.QObject.installEventFilter