convert Qt application to Qt5