fix compatible qt4 vs qt5