merge Qt5 and Qt4 support