Ubuntu 9.10 has php 5.2.*
About the error, as the log says it seems that you are trying to use the QApplication class but that class is not yet loaded
make sure that before line 23 of your prepend.inc.php file the QApplication class was declared.
I had the same incompatibility issues and i also got empty page without errors in my log (in Ubuntu 10.04) so i decided to update my qcodo version from 0.3.x to last stable release and now all is working well.