Migrate to qt5