[PyQt] Creating a QWinmigrate mofules for PyQt5 using SIP

Phil Thompson phil at riverbankcomputing.com
Thu Jun 21 21:36:19 BST 2018


On 20 Jun 2018, at 5:58 pm, Andrew Cunningham <pyqt at a-cunningham.com> wrote:
> 
> I eventually solved the issue by just replacing HWND with long

My previous suggestions were based on the (incorrect) assumption that PyQt5 defined HWND. PyQt4 does, but PyQt5 doesn't.

The correct answer is the add something like...

typedef struct HWND__ *HWND;

...to the .sip file.

Phil


More information about the PyQt mailing list