You can either upgrade to a newer Ubuntu release (the last one contains Qt 4.7.0), find a backport repository with Qt 4.7 compiled for your release or download the source tarball and build Qt yourself, it's very simple.