initial port to qt5