Migrated to Qt5