Qt UI does not work in Ubuntu Hardy.

Created by Ville M. Vainio
Keywords:
Qt Hardy
Last updated by:
Ville M. Vainio

Leo's Qt ui doesn't work with Ubuntu Hardy out-of-the-box, because hardy's Qt version is too old.

Here's a guide on how to use Leo Qt ui with Ubuntu 8.04 "Hardy". It involves downloading and
installing the latest version PyQt, and installing Qt 4.4 from hardy backports.

Get Qt 4.4 from backports
=========================

Add this line to your /etc/apt/sources.list::

    deb http://archive.ubuntu.com/ubuntu hardy-backports main universe multiverse restricted

Do apt-get update, apt-get upgrade. Now, "apt-cache policy libqt4-dev" should show you that it's installed
from hardy-backports.

SIP
===

Download sip from::

    http://www.riverbankcomputing.co.uk/software/sip/download

(I downloaded sip-4.8.2.tar.gz)

tar xzf sip-4.8.2.tar.gz
cd sip-4.8.2
python configure.py
make
sudo make install

PyQt
====

Download PyQt from::

    http://www.riverbankcomputing.co.uk/software/pyqt/download

( I downloaded PyQt-x11-gpl-4.5.4.tar.gz)

tar xzf PyQt-x11-gpl-4.5.4.tar.gz
cd PyQt-x11-gpl-4.5.4
python configure.py

Ensure that it's using the right Qt and sip versions by checking the output::

    Qt v4.4.0 free edition is being used.
    SIP 4.8.2 is being used.

make
sudo make install

Now, you should be able to launch Leo using Qt ui with no problems.