improve for qt5 and linux