Added compability with qt4
Adding compability with qt4