Connect old code to QT