fix to support for qt4