enthought / enthought/pyface

Fix creating new QEvent types in PyQt6

Open
#1,099 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
115
Forks
54
PR merge metrics
No merged PRs in 30d

Description

To handle trait change events which are dispatched via the ui, Pyface (and in deprecated code, TraitsUI) define a new event type using the construct:
```
QtCore.QEvent.Type(QtCore.QEvent.registerEventType())
```
This doesn't work on PyQt6. Ideally there is some cross-backend invocation which will work, but at a minimum we need to use an appropriate method for PyQt6 when in that backend. It may be sufficient to check the value of the type, for example.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.