changed complete code to qt4...