adding QT middleware