Details
Description
Minimal example
from PySide6.QtWidgets import QWidget, QApplication class Window(QWidget): def nativeEvent(self, eventType, message): print(eventType, message, message.toBytes()) return super().nativeEvent(eventType, message) app = QApplication() window = Window() window.show() app.exec()
message always has Size 0 and message.toBytes() is always empty:
b'windows_generic_MSG' shiboken6.Shiboken.VoidPtr(Address 0x00000088B40D9D80, Size 0, isWritable False) b'' b'windows_generic_MSG' shiboken6.Shiboken.VoidPtr(Address 0x00000088B40DAF60, Size 0, isWritable False) b'' b'windows_generic_MSG' shiboken6.Shiboken.VoidPtr(Address 0x00000088B40DAF60, Size 0, isWritable False) b'' b'windows_generic_MSG' shiboken6.Shiboken.VoidPtr(Address 0x00000088B40DAF60, Size 0, isWritable False) b'' b'windows_generic_MSG' shiboken6.Shiboken.VoidPtr(Address 0x00000088B40DAF60, Size 0, isWritable False) b''
Is this intentional or a bug?
Attachments
Issue Links
- relates to
-
PYSIDE-790 nativeEvent is not implemented
-
- Closed
-