Proper fix for qt4