Changes for Qt4->Qt5 migration

Qt4 will no longer be supported in the future, all our target platforms fully support Qt5. So might as well make the switch now.