QEvent.Type(QEvent.registerEventType()) fails

Phil Thompson phil at riverbankcomputing.com
Wed Jan 26 16:29:18 GMT 2022


On 26/01/2022 12:30, Matthieu Dartiailh wrote:
> Hi,
> 
> In PyQt 6.2.2, QEvent.Type(QEvent.registerEventType()) fails saying
> that the integer that was picked by QEvent.registerEventType() is not
> a valid value. Is this something that could be fixed ?

No. Type is an enum and so has a fixed set of members. The following 
works as you would expect...

QEvent(QEvent.registerEventType())

Phil


More information about the PyQt mailing list