first working port to Qt5