Win32: ported to Qt5