Port to Qt5.
Still ensuring compatibility with Qt4 as no MinGW build yet.