Added QT interface code.