Re: [PyQt] Qt message handler has wrong signature with Qt5

2013-04-09 Thread Phil Thompson
On Wed, 03 Apr 2013 02:42:45 +0100, Baz Walter wrote: > On 03/04/13 01:17, Phil Thompson wrote: >> On Wed, 03 Apr 2013 00:16:49 +0100, Baz Walter wrote: >>> Hello >>> >>> For Qt4, QtCore.qInstallMsgHandler installs a Qt message handler with >>> the following signature: >>> >>> void myMsgHan

Re: [PyQt] Qt message handler has wrong signature with Qt5

2013-04-02 Thread Baz Walter
On 03/04/13 01:17, Phil Thompson wrote: On Wed, 03 Apr 2013 00:16:49 +0100, Baz Walter wrote: Hello For Qt4, QtCore.qInstallMsgHandler installs a Qt message handler with the following signature: void myMsgHandler(QtMsgType, const char *); Using PyQt4 with Qt4, this correctly results in

Re: [PyQt] Qt message handler has wrong signature with Qt5

2013-04-02 Thread Phil Thompson
On Wed, 03 Apr 2013 00:16:49 +0100, Baz Walter wrote: > Hello > > For Qt4, QtCore.qInstallMsgHandler installs a Qt message handler with > the following signature: > > void myMsgHandler(QtMsgType, const char *); > > Using PyQt4 with Qt4, this correctly results in the second argument > bei

[PyQt] Qt message handler has wrong signature with Qt5

2013-04-02 Thread Baz Walter
Hello For Qt4, QtCore.qInstallMsgHandler installs a Qt message handler with the following signature: void myMsgHandler(QtMsgType, const char *); Using PyQt4 with Qt4, this correctly results in the second argument being passed as a python bytes object (for both the v1 and v2 apis). Howe