Porting the project to Qt5