Missing QEvent.Type members

Florian Bruhin me at the-compiler.org
Wed Jun 7 21:29:06 BST 2023


Hey,

The following QEvent::Type members are documented in Qt6:
https://doc.qt.io/qt-6/qevent.html#Type-enum

but absent from PyQt 6.5.1:

    QEvent::Quit = 20
    QEvent::NativeGesture = 197
    QEvent::EnterEditFocus = 150
    QEvent::LeaveEditFocus = 151

The last two require QT_KEYPAD_NAVIGATION defined which isn't the
default.

I noticed the issue because I was converting event types to strings for
debugging in an event filter, and noticed 197 popping up with the issue
I'm trying to debug.

I then found the others by writing a quick throw-away script to compare
them against the C++ sources, and manually ignoring the remaining 24
undocumented/deprecated ones.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230607/3d1fb54d/attachment.sig>


More information about the PyQt mailing list