Found the solution to my problem by reading
http://www.qtcentre.org/forum/showth...e=hybrid&t=530

I had QtCore4.dll and QtGui4.dll in my Windows\System32 folder. Works fine after removing those dlls.

Thanks anyway.