updated it for windows and qt5