Only add 'widgets' to QT in the project file in Qt5 - Qt4 doesn't have it and using it results in a warning.