[PyQt] Use newer version of qt

Detlev Offenbach detlev at die-offenbachs.de
Sun Jul 26 10:37:52 BST 2009


On Sonntag, 26. Juli 2009, Jesse Aldridge wrote:
> I ran make install on the Qt 4.5.2 source.  It installed to
> "/usr/local/Trolltech/Qt-4.5.2".  Ubuntu 9.04 comes with qt 4.5.0, which is
> installed in "/usr".  What's a clean way to make my pyqt programs use the
> 4.5.2 version of Qt?

I am using virtualenv to setup a virtual Python environment for exactly the 
same purpose. In addition to this, I ammending the PATH variable to include 
the path to the newer Qt version first. For eric4 a commandline could look 
like 

PATH=/usr/local/Trolltech/Qt-4.5.2/bin:$PATH ~/pyqt45env/bin/python 
~/pyqt45env/lib64/python2.6/site-packages/eric4/eric4.py

Note: ~/pyqt45env is my virtual environment set up using virtualenv.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the PyQt mailing list