[PyQt] Compile PyQt4 to support both Qt4 and Qt5?

Phil Thompson phil at riverbankcomputing.com
Sun Jul 27 09:45:55 BST 2014


On 26/07/2014 11:22 pm, Jacob Floyd wrote:
> Hello all,
> 
> I see that PyQt4 can be built with either Qt4 or Qt5[1] by configuring 
> it
> with the right version of qmake[2]. There is also a way to have PyQt4 
> and
> PyQt5 installed on the same system[3].
> 
> However is there a way to either:
> * have PyQt4 provide bindings for both Qt4 and Qt5 (I'm guessing that's 
> a
> no), or

Correct.

> * have two copies of PyQt4 on the same system, one for Qt4 and the 
> other
> for Qt5?

Yes, but in different Python installations.

Phil


More information about the PyQt mailing list