Added support for qt4