Porting to Qt5.