migrate to qt5