Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QEvent derived classes



  • Is the documentation for QEvent::Type and the subclasses it corresponds to exhaustive?

    For example, the documentation says QKeyEvent corresponds to KeyPress, KeyRelease and ShortcutOverride. If I'm handling an event in event() or eventFilter(), if I get a QKeyEvent, is it guaranteed to be one of those types?



  • @esoteric

    At least the default ones should be... (one of those).
    Custom, registrated user events should have the type QEvent::User - QEvent::MaxUser and an ID between 1000 and 65535



  • @esoteric

    At least the default ones should be... (one of those).
    Custom, registrated user events should have the type QEvent::User - QEvent::MaxUser and an ID between 1000 and 65535


Log in to reply