Start of port to Qt5.