Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Issue with EvenFilter being used by the wrong table
Qt 6.11 is out! See what's new in the release blog

Issue with EvenFilter being used by the wrong table

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 229 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DIRi
    wrote on last edited by DIRi
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • D DIRi

      This post is deleted!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @DIRi said in Issue with EvenFilter being used by the wrong table:

      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 timetable1() and selectionmenu(). You need classes to have two separate functions both named eventFilter(). Your two eventFilter() methods are indented inside functions/methods def timetable1/selectionmenu(). I'm not even sure what that does in Python.

      return QtCore.QObject.event(source,event)

      I would expect the end of an eventFilter() to be

      return super().eventFilter(obj, event)
      

      Basically I suggest you go back and read about eventFilter() and 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

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved