[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] =?utf-8?q?Bug_in_QAbstractNativeEventFilter_in_PyQt_5=2E1?=
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2013-12-29 17:54:17
Message-ID: 16ee1156e5dea291a1acde6162bf18ad () www ! riverbankcomputing ! com
[Download RAW message or body]

On 11-12-2013 8:11 am, Klemetti, Antti wrote:
> Hi,
>
> I already posted the code snippet, but here is a simplified version
> including the main function that installs the event filter to the
> QApplication:
> ------
> import sys
> from PyQt5.QtCore import QAbstractNativeEventFilter
> from PyQt5.QtWidgets import QApplication
>
> class WinEventFilter(QAbstractNativeEventFilter):
>         def nativeEventFilter(self, eventType, message):
>             return False, 0
>
> if __name__ == "__main__":
>     app = QApplication(sys.argv)
>     win_event_filter = WinEventFilter()
>     app.installNativeEventFilter(win_event_filter)
>     sys.exit(app.exec_())
> -----
>
> Whoever calls the WinEventFilter.nativeEventFilter,
> from the PyQt framework crashes when the function returns.

Should be fixed with tonight's SIP snapshot.

Thanks,
Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic