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

Jacob Floyd cognifloyd at gmail.com
Sat Jul 26 23:22:08 BST 2014


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
* have two copies of PyQt4 on the same system, one for Qt4 and the other
for Qt5?

I want this so that I can test the FakeVim Qt widget[4] in all three
combinations:
* PyQt4 with Qt4
* PyQt4 with Qt5
* PyQt5 with Qt5

Cheers,
Jacob Floyd

[1] http://pyqt.sourceforge.net/Docs/PyQt4/qt_v5.html
[2] http://stackoverflow.com/a/16243129
[3]
http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#co-existence-with-pyqt4
[4] https://github.com/hluk/FakeVim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140726/85d24811/attachment-0001.html>


More information about the PyQt mailing list