Missing QEvent.Type members
Phil Thompson
phil at riverbankcomputing.com
Thu Jun 8 16:39:52 BST 2023
On 07/06/2023 21:29, Florian Bruhin wrote:
> 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.
Fixed - thanks.
Phil
More information about the PyQt
mailing list