Closed Wolfmyths closed 7 months ago
For an Example:
import PySide6.Widgets as qtw import PySide6.QtGui as qtg class ModContextMenu(qtw.QMenu): def __init__(self, parent) -> None: super().__init__() action = qtg.QAction('Enable', self) self.addAction(action)
How can I set this up to trigger QEventFilter so if the mouse button pressed isn't left click, cancel the event from firing?
I tried setting up the QEventFilter from within this class and it never was fired.
There is a fix in place for this issue but I want to refactor it because there would be a lot less code using the QEventFilter
Found a workaround
For an Example:
How can I set this up to trigger QEventFilter so if the mouse button pressed isn't left click, cancel the event from firing?
I tried setting up the QEventFilter from within this class and it never was fired.
There is a fix in place for this issue but I want to refactor it because there would be a lot less code using the QEventFilter