Updated for Qt5 on Windows 7.