migrated to qt5