Skip to content

BaseEventFilter

Qt Base Class: QObject

Signature: QObject(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
Object
prettyqt.core.object

Subclasses

Class Module Description
AnimatedToolTipEventFilter prettyqt.eventfilters.animatedtooltipeventfilter
AutoSizeColumnsEventFilter prettyqt.eventfilters.autosizecolumnseventfilter
EventCatcher prettyqt.eventfilters.eventcatcher
HoverIconEventFilter prettyqt.eventfilters.hovericoneventfilter
ListViewGridResizeEventFilter prettyqt.eventfilters.listviewgridresizeeventfilter
SectionAutoSpanEventFilter prettyqt.eventfilters.sectionautospaneventfilter
SliderMoveToMouseClickEventFilter prettyqt.eventfilters.slidermovetomouseclickeventfilter
TextUpdateEventFilter prettyqt.eventfilters.timelabeleventfilter

⋔ Inheritance diagram

graph TD
  1473367044288["eventfilters.BaseEventFilter"]
  1473299782816["core.Object"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473299782816 --> 1473367044288
  1473299815024 --> 1473299782816
  140713234304496 --> 1473299815024
  1473288842240 --> 1473299782816
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: Object

Source code in prettyqt\eventfilters\baseeventfilter.py
class BaseEventFilter(core.Object):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        if not self.objectName():
            self.setObjectName(type(self).__name__)

    @contextlib.contextmanager
    def applied_to(self, obj):
        obj.installEventFilter(self)
        yield obj
        obj.removeEventFilter(self)

⌗ Property table

Qt Property Type Doc
objectName QString