[PyQt] Creating a QWinmigrate mofules for PyQt5 using SIP

Phil Thompson phil at riverbankcomputing.com
Mon Jun 18 18:05:26 BST 2018


On 18 Jun 2018, at 5:18 pm, Andrew Cunningham <pyqt at a-cunningham.com> wrote:
> 
> Hi Phil,
> I tried that , 
> py> QtCore.PYQT_CONFIGURATION
> {'sip_flags': '-t WS_WIN -t Qt_5_7_0'}
> 
> And in configure.py 
> 
> sip_cmd = " ".join([
>     config.sip_bin,"-c", ".", "-b", build_file,
>     "-t", "WS_WIN", "-t", "Qt_5_7_0",
>     basename + ".sip"
> ])
> 
> I still get 
> sip: HWND is undefined
> 
> My .sip files looks like this, should I be adding something else?
> 
> %Module QtWinMigrate 0
> 
> %Platforms {WS_WIN}

Remove the above line, although I'm not sure if it will make a difference.

Phil


More information about the PyQt mailing list