QT5 working

Reworked the project to work with the latest SDK version.