One nice "feature" in scratchbox is that if you start python as "python" it will be python2.3 where qt doesn't exist. Start python as "python2.5" and it will find your libraries.