mirgrated to qt5